Use of include_groups

I noted that the PHP SDK for the Spotify API uses include_groups to list what album types should be included (all if omitted).

 

https://developer.spotify.com/documentation/web-api/reference/#/operations/get-multiple-albums doesn't mention it (there's an album_type though for a singular value).

 

https://developer.spotify.com/console/get-artist-albums/?id=&include_groups=&market=&limit=&offset= has a field for include_groups.

 

What's up with that?

 

I had used album_type before, but include_groups seems to do what I need (multiple choice of album type).

 

What values can include_groups have? Same as album_type, but more than one? The SDK documenation doesn't say either. I've found that at least album (including live, sadly), single, appears_on, compilation work and in any combination.

 

Thanks in advance.

Child Item
Child Item
Child Item

Accepted answers

https://developer.spotify.com/documentation/web-api/reference/#/operations/get-an-artists-albums says the allowed values for include_groups are: album, single, appears_on & compilation (they can be combined too). They refer to the artist's relationship to the album.

All comments

https://developer.spotify.com/documentation/web-api/reference/#/operations/get-an-artists-albums says the allowed values for include_groups are: album, single, appears_on & compilation (they can be combined too). They refer to the artist's relationship to the album.

Yes, I looked at the wrong endpoint (the one not identifying the artist). Thanks for pointing me in the right direction.

Child Item
Child Item