Reputation: 5156
I read a lot of things about the Soundcloud API and how you can do pretty much anything with it, like build a new interface to upload your songs etc..
I just want to get a list of the 5 last tracks added by a user. This is public data, since you don't need to login to view a user page, but everywhere I read you need to authenticate to do it...
is there not a simple way to do this?
I thought they'd be a way to call a url returning some xml or json with the link to the last tracks...?
Upvotes: 2
Views: 2125
Reputation: 21565
You can get a list of a user's tracks given their ID like this:
http://api.soundcloud.com/tracks?client_id={client_id}
To get the last 5 tracks, order by latest and set the limit at 5:
http://api.soundcloud.com/tracks?client_id={client_id}&order=latest&limit=5
Edited to add that you can also request a JSON response (instead of XML) by adding &format=json
to the end of the query string.
Upvotes: 5