Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Soundcloud API - Extracting tracks reposted by a user

Tags:

api

soundcloud

As reposts where introduced in the new soundcloud website, is it also possible to extract tracks reposted by a given user through the API ?

Thanks in advance for your help

like image 257
user2079074 Avatar asked Feb 16 '13 19:02

user2079074


People also ask

How do I get oauth tokens on SoundCloud?

You have first to authorize with your client_id, client_secret and a redirect_url then in the redirect_url (which the soundcloud server will call it should be some script on your server) you can get the token from the GET parameter "code". Then in the next step you can exchange the code for an access token.


2 Answers

Replace User Id, limit and offset with what you need:

Updated:

https://api-v2.soundcloud.com/stream/users/<userId>/reposts?limit=50&offset=0

Old answer:

https://api-v2.soundcloud.com/profile/soundcloud:users:<userId>?limit=50&offset=0
like image 181
Sebastien Horin Avatar answered Sep 30 '22 21:09

Sebastien Horin


The API endpoints which give you reposts are not yet part of the public API. The only reason for this is that we haven't yet fully decided on a format and so on -- basically, once it's part of the documented API, then we have a complete responsibility never to break that backwards compatibility, and we can't quite promise that yet.

like image 28
nickf Avatar answered Sep 30 '22 21:09

nickf