Announcements

Help Wizard

Step 1

NEXT STEP

Use of include_groups

Solved!

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.

Reply

Accepted Solutions
Marked as solution

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.

View solution in original post

2 Replies
Marked as solution

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.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random