[GH-ISSUE #1107] Get Artist's Albums now expects "include_groups" param instead of "album_type" #658

Closed
opened 2026-02-28 00:00:37 +03:00 by kerem · 1 comment
Owner

Originally created by @NickyReid on GitHub (May 17, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1107

Describe the bug
Spotify Web API used to accept album_type param when getting artists albums, even though the docs say the name of the param is include_groups. Today they have updated the API to align with the docs, so the album_type param in artist_albums is no longer working. I have tested locally replacing the param with include_groups and it works.

def artist_albums(self, artist_id, album_type=None, country=None, limit=20, offset=0):
        trid = self._get_id("artist", artist_id)
        return self._get(
            "artists/" + trid + "/albums",
            include_groups=album_type,
            country=country,
            limit=limit,
            offset=offset,
        )

This works.

Link to issue on Spotify dev community

Originally created by @NickyReid on GitHub (May 17, 2024). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1107 **Describe the bug** Spotify Web API used to accept album_type param when getting artists albums, even though the docs say the name of the param is include_groups. Today they have updated the API to align with the docs, so the [album_type](https://github.com/spotipy-dev/spotipy/blob/028539e08a5d9d14646ff5118ab3bd80c7458c1f/spotipy/client.py#L423) param in artist_albums is no longer working. I have tested locally replacing the param with include_groups and it works. ``` def artist_albums(self, artist_id, album_type=None, country=None, limit=20, offset=0): trid = self._get_id("artist", artist_id) return self._get( "artists/" + trid + "/albums", include_groups=album_type, country=country, limit=limit, offset=offset, ) ``` This works. [Link to issue on Spotify dev community](https://community.spotify.com/t5/Spotify-for-Developers/Get-Artist-s-Albums-no-longer-accepts-quot-album-type-quot/m-p/6074975#M13945)
kerem 2026-02-28 00:00:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dieser-niko commented on GitHub (May 17, 2024):

I'll update it right away. It seems that Spotifys Documentation change was at least more than a year ago, according to the wayback machine.

<!-- gh-comment-id:2117211962 --> @dieser-niko commented on GitHub (May 17, 2024): I'll update it right away. It seems that Spotifys Documentation change was at least more than a year ago, according to the wayback machine.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#658
No description provided.