SoundCloud
artworks:
https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/western_vinyl/jessica-risker-cut-my-hair
https://i1.sndcdn.com/artworks-000308141235-7ep8lo-t500x500.jpg
placeholder:
https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/pdis_inpartmaint/harold-budd-perhaps-moss
https://soundcloud.com/images/fb_placeholder.png
avatars:
https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/pdis_inpartmaint
https://i1.sndcdn.com/avatars-000274827119-0dxutu-t500x500.jpg
How to get client_id
First, make a request like this:
GET / HTTP/2
Host: soundcloud.com
In the HTML response, you should see several JavaScript assets, like this:
<script crossorigin src="https://a-v2.sndcdn.com/assets/2-b0e52b4d.js"></script>
<script crossorigin src="https://a-v2.sndcdn.com/assets/49-4b976e4f.js"></script>
If you download asset 2, you should see this in the response:
?client_id=fSSdm5yTnDka1g0Fz1CO5Yx6z0NbeHAj&
If you download asset 49, you should see this in the response:
client_id:"fSSdm5yTnDka1g0Fz1CO5Yx6z0NbeHAj"
From my testing, asset 2 was smaller. The client_id
seems to last at least a
year:
https://github.com/flyingrub/scdl/commit/08317287