[GH-ISSUE #871] Spotipy's current_user_playlists() returns less results than Spotify's /me/playlists #536

Closed
opened 2026-02-27 23:23:12 +03:00 by kerem · 1 comment
Owner

Originally created by @JohanVanHoye on GitHub (Oct 17, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/871

When I call Spotipy's current_user_playlists() endpoint with offset 0 and limit 50, it returns 24 results for my current user.
This is less than the 42 items I see in the Spotify GUI.
And indeed, Spotify's endpoint https://developer.spotify.com/console/get-current-user-playlists/?limit=50&offset=0 returns the 42 playlists seen in the Spotify client.
I'm not sure what causes Spotipy's current_user_playlists() API endpoint not to return the missing 18 items.
This is with Spotipy v.2.20. at the time of reporting this issue.

Originally created by @JohanVanHoye on GitHub (Oct 17, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/871 When I call Spotipy's current_user_playlists() endpoint with offset 0 and limit 50, it returns 24 results for my current user. This is less than the 42 items I see in the Spotify GUI. And indeed, Spotify's endpoint https://developer.spotify.com/console/get-current-user-playlists/?limit=50&offset=0 returns the 42 playlists seen in the Spotify client. I'm not sure what causes Spotipy's current_user_playlists() API endpoint not to return the missing 18 items. This is with Spotipy v.2.20. at the time of reporting this issue.
kerem closed this issue 2026-02-27 23:23:12 +03:00
Author
Owner

@JohanVanHoye commented on GitHub (Oct 24, 2022):

Found that this issue was scopes-related. I had only scoped playlist-modify-private, which returns as many results as playlist-read-collaborative. Both scopes of playlist-read-private and playlist-read-collaborative were needed to return all results.

<!-- gh-comment-id:1289113273 --> @JohanVanHoye commented on GitHub (Oct 24, 2022): Found that this issue was scopes-related. I had only scoped playlist-modify-private, which returns as many results as playlist-read-collaborative. Both scopes of playlist-read-private and playlist-read-collaborative were needed to return all results.
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#536
No description provided.