Retrieving the “recommended” playlist via API call?

心不动则不痛 提交于 2019-11-26 14:39:46

问题


for any given song, e.g.

https://soundcloud.com/shesthequeen/i-dont-wanna-know

SoundCloud has a "recommended" playlist that usually start playing after that song is finished:

https://soundcloud.com/shesthequeen/i-dont-wanna-know/recommended

How can I retrieve this "recommended" playlist via the SoundCloud API? Is there a way? Which connector should I use? I'd like to avoid scraping HTML.

Thanks in advance, Mary


回答1:


Looks like that this will be a new subresource of the upcoming tracks endpoint in the next API version.

GET /tracks/{id}/related    

These are the API calls:

https://api-v2.soundcloud.com/tracks/102113299/related?anon_user_id=36331428&limit=10&offset=0&linked_partitioning=1

https://api-v2.soundcloud.com/tracks/102113299/related



来源:https://stackoverflow.com/questions/26388089/retrieving-the-recommended-playlist-via-api-call

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!