Getting a SoundCloud API client ID

天大地大妈咪最大 提交于 2019-12-03 15:31:39

Simple.. Go to any tracks that you can download on soundcloud, press f12 and look at networks tab, click download and it will show you something like

https://api.soundcloud.com/tracks/322109493/download?client_id=2t9loNQH90kzJcsFCODdigxfp325aq4z&oauth_token=2-274121-85658-y9KQYyZ6qG9oT2uvPq

Grab that client_id, replace it and amend the url from download? to stream?.. use streams? if you want a list of urls in json format

http://api.soundcloud.com/tracks/294324164/stream?client_id=2t9loNQH90kzJcsFCODdigxfp325aq4z

See this user's solution for a way to do this without a CLIENT ID which you can no longer get from soundcloud: https://stackoverflow.com/a/27461646/179571

As no one else has mentioned it, in Google Chrome under DevTools F12, you can grab your client_id from the Network tab on reload. Many items listed here reference the SoundCloud API and require your client_id to access it. Simply click any item in the list that isn't an image/base64 item (like something that begins with id?...), then look in the Request URL for the client_id.

It's the simplest way to grab the ID; now that you know how, don't do anything illegal k thx.

For those thinking this is the same as the other answer mentioning a download link, this method skips that entirely as many songs are no longer downloadable from SoundCloud itself, but from external sources that are linked instead.

You can apply for a client ID by filling in the SoundCloud Application Registration form.

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