SoundCloud, download or transfer the file via api

I am trying to use download_url to get a file from soundcloud.

I either get "redirected" or "401 unauthorized", how can I upload / transfer it to the client side?

thanks

+4
source share
2 answers

If you get a 401 response, then you must specify your client_id in the request. It may also be that this is a private sound, in which case you will also need to include oauth credentials.

The actual answer to success is redirection, as the stream files are accessible from another server, but only with special time access tokens (included in the redirection response). Basically, just follow the redirect and you will have your flow.

+4
source

You are using the wrong URL structure ... Try this, its working (I tested): http://api.soundcloud.com/tracks/773150/download?client_id= {Your identifier is here}

Should you use? Instead and up to client_id

+1
source

All Articles