how to get a stream from a simple soundcloud URL?
First of all you need to create your own app on sound cloud
After creating app you git
Now you can call soundcloud APIs, but you need to know the userId or PlaylistId or TrackId
To know ID of user we can use /resolve function
Assume user link is
https://soundcloud.com/a-salem-2
TO know user ID we use resolve function as below
http://api.soundcloud.com/resolve.json?url=https://soundcloud.com/a-salem-2&client_id=YOUR_CLIENT_ID
That will give you userId, In my case it was [75258312]
To get user tracks
https://api.soundcloud.com/users/75258312/tracks.json?client_id=YOUR_CLIENT_ID
Hope that help :)
![Fred Guth](https://i.stack.imgur.com/cW2xE.png?s=256&g=1)
Fred Guth
I founded and was CEO of company with over 100 employees sold to Accenture. Then I decided that I needed to go back to programming just for fun.
Updated on June 17, 2022Comments
-
Fred Guth about 2 years
I am using Javascript to create yet another custom player for SoundCloud and SoundManager2.
I am able to play a stream from a URI like api.soundcloud.com/tracks/1928712958, but I would like to use a Soundcloud url (like http://soundcloud.com/damianmarley/skrillex-damian-marley-make-it) as the input.
How can I do it?