How to access the user stream?

New to SoundCloud API.

Say I'm a registered user. I upload a couple of tracks and they appear on my page when I enter soundcloud at: https://soundcloud.com/stream

Using the API, now I can access the data re my loaded tracks.

If I follow other users, these user tracks will also appear on https://soundcloud.com/stream . However, I could not find in the API Docs any way to access the data for my tracks + user tracks that I follow. Any way to do this?

+6
source share
2 answers

SoundCloud documentation seems to be updated: user actions, indicated as โ€œitems in the user input panelโ€, can be retrieved. You can even get certain types of items on this toolbar.

When you process a GET request with this URL $ curl 'https://api.soundcloud.com/me/activities?limit=1&oauth_token=A_VALID_TOKEN' , you have a JSON or XML file (see at the bottom of the answer) that contains The data you requested. In this URL, you can replace /me/activities with these expressions:

/me/activities provides users with the latest action

/me/activities/all matches the above (recent actions) /me/activities/tracks/affiliated - these are the last tracks from users to which the login to the system follows (stream)
/me/activities/tracks/exclusive - the latest exclusive shared tracks
/me/activities/all/own - recent actions for registered users.

JSON responses follow this pattern:

 { "next_href": "https://api.soundcloud.com/...?cursor=81923e19...", "collection": [ { "type": "comment", "created_at": "2011/07/21 09:55:19 +0000", "tags": "own, affiliated", "origin": { ... } }, ... ] } 

The XML responses follow this:

 <?xml version="1.0" encoding="UTF-8"?> <activities next-href="https://api.soundcloud.com/me/activities?cursor=0fc02662-1d76-11e0-8c9a-48ea6afb1384" type="array"> <activity> ... </activity> ... </activities> 

For deeper and more accurate information about this feature, check out the SoundCloud API reference documentation .

+10
source

Thanks for your question. We do not currently offer a public API for this type of mixed data.

0
source

All Articles