Ahmad El Batanouni
Ahmad El Batanouni

Reputation: 35

SoundCloud Api - unable to get all the favorites of a certain user

I'm trying to get all the favorites of a certain user. I used /users/{id}/favorites, but the returned list always has the last 50 favorited tracks, and I couldn't find a "next_href" or anything to get the rest.

Is there any way to get the whole list? Or is it just me who made something wrong and it's working perfect for everybody?

Upvotes: 2

Views: 617

Answers (1)

cucko
cucko

Reputation: 1436

you need to make batch page requests with offset=0,50,100,etc parameter in the url. and join the results when all pages (tracks) are loaded.

Upvotes: 4

Related Questions