- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Premium Family
Country
Switzerland
Device
PC, iPhone
Operating System
Windows 10 2004, iOS 13.5.1
My Question or Issue
According to https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-playlists-tracks, the /tracks endpoint of the Playlists API returns a limit of 100 items, wrapped in a Paging object.
On success, the response body contains an array of track objects and episode objects (depends on the additional_types parameter), wrapped in a paging object in JSON format and the HTTP status code in the response header is 200 OK.
However, if you try it out in the Web Console, you will see that the response body does not use a Paging object, even if there are more than 100 items on the playlist.
https://developer.spotify.com/console/get-playlist-tracks/
Instead, a simple JSON object is returned that contains an Items array of the first 100 tracks on the playlist (or whatever limit is specified).
You can use the offset parameter to get the next tracks, but you need to build the URI yourself and keep requesting more until you get an empty array back.
Solved! Go to Solution.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page