ohnu93
ohnu93

Reputation: 273

Retrieve all of a user's playlist from SoundCloud limited to 50?

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

Answers (1)

blockhead
blockhead

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 a next_href property if there are additional results. To fetch the next page of results, simply follow that URI. If the response does not contain a next_href property, you have reached the end of the results.

Upvotes: 2

Related Questions