Skip to content

Fix: Web API Changes of February 2026#1228

Merged
dieser-niko merged 4 commits intospotipy-dev:pr/1228from
tonarec:1227-web-api-changes
Mar 3, 2026
Merged

Fix: Web API Changes of February 2026#1228
dieser-niko merged 4 commits intospotipy-dev:pr/1228from
tonarec:1227-web-api-changes

Conversation

@tonarec
Copy link
Contributor

@tonarec tonarec commented Feb 18, 2026

Closes #1227

This PR fix the Spotiy client to comply with the new changes in the API from Spotify, see the Web API Changelog

It introduces a change in the way the tracks/episodes (the so named items) are handled by Spotify.
In addition, some of the endpoints are now deprecated, and most of the enpoints related to the user's content moved to the /me/library endpoint to use URIs only.

Introduced in this PR:

  • Updated /tracks endpoints to /items
  • Switching IDs to URIs to use the /me/library endpoint here
  • Fixed playlist limit to 50 according to the API for /playlists/{playlist_id}/items here
  • Added warnings for deprecated methods

- Updated /tracks endpoints to /items
- Switching IDs to URIs for /me/library endpoint
- Fixed playlist limit to 50 (according to API)
- Added warnings for deprecated methods
@dieser-niko dieser-niko self-requested a review February 18, 2026 22:42
@tonarec
Copy link
Contributor Author

tonarec commented Feb 19, 2026

We should harden all the URLs computation by using kwargs instead of string concatenation like this:

#before
self._get("me/library?uris=" + ",".join(ulist))
#after
self._get("me/library", uris=",".join(ulist))

@tonarec tonarec marked this pull request as draft February 19, 2026 08:49
@tonarec tonarec marked this pull request as ready for review February 21, 2026 22:39
@sandrzejewskipl
Copy link
Contributor

this should be merged and released asap

@tonarec
Copy link
Contributor Author

tonarec commented Mar 3, 2026

@dieser-niko you are marked as reviewer.
Can you take a look at the PR please?

This is an important bugfix as many projects depends on spotipy.

Copy link
Member

@dieser-niko dieser-niko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.
Sorry it took so long, but I've been busy. However, I still wanted to mark myself as a reviewer as a sort of reminder.

@dieser-niko
Copy link
Member

dieser-niko commented Mar 3, 2026

I'm going to merge this into a separate branch because I want to run tests as well
Edit: could have done it better by just pushing this to the branch instead of merging...

@dieser-niko dieser-niko changed the base branch from master to pr/1228 March 3, 2026 16:30
@dieser-niko dieser-niko merged commit fa7049e into spotipy-dev:pr/1228 Mar 3, 2026
7 of 12 checks passed
brunodoamaral added a commit to brunodoamaral/spotify-mcp that referenced this pull request Mar 6, 2026
Address deprecated endpoints on Spotfy API. See spotipy-dev/spotipy#1228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web API Changes

3 participants