如何使用 SoundCloud API 获得超过 350 个收藏夹?

How to get more than 350 favorites with SoundCloud API?

我的 soundcloud 上有大约 600 个赞(我的个人资料:https://soundcloud.com/bogem/likes),我试图获得我喜欢的完整列表。 但我无法获得超过 300 个收藏:

$ curl 'https://api.soundcloud.com/users/75306957/favorites?client_id=HIDDEN&limit=150&offset=300'
{"errors":[{"error_message":"403 - Forbidden"}]}

甚至授权:

$ curl 'https://api.soundcloud.com/me/favorites?client_id=HIDDEN&limit=150&oauth_token=HIDDEN&offset=300'
{"errors":[{"error_message":"403 - Forbidden"}]}

我做错了什么或者有什么限制吗?

您需要使用 linked_partitioning pagination method,它会 return 您一个包含您喜欢的 collection 对象,以及一个 next_href 给您 URL 分页到。

a blog post about dropping support for offset-based pagination.