Reputation: 273
I'm trying to retrieve all the playlists from my account via
http://api.soundcloud.com/users/145295911/playlists?client_id=xxxxxx
, as the API reference shows.
However, I can only retrieve recent 50 playlists instead of all of my playlists. I've been looking for this but it seems like no one has had this issue before. Is there a way to get all of them?
Upvotes: 0
Views: 216
Reputation: 463
Check out the section of their API on pagination.
Most results from our API are returned as a collection. The number of items in the collection returned is limited to 50 by default with a maximum value of 200. Most endpoints support a
linked_partitioning
parameter that will allow you to page through collections. When this parameter is passed, the response will contain anext_href
property if there are additional results. To fetch the next page of results, simply follow that URI. If the response does not contain anext_href
property, you have reached the end of the results.
Upvotes: 2