Search code examples
javascriptcakephpsoundcloudsoundmanager2

Get sound informations on SoundCloud API


I'm a French student working on UX. I'd like to develop a web app based on SoundCloud Stream with some conditions : I wanna classify the sounds by their tags (categories) to create automatics playlists.

For the moment, I don't figure out, how to catch those informations through the SoundCloud API. I'm used to work with cakephp.

Have you ever try something like this ?

Thx you everyone.


Solution

  • SoundCloud provides an API which will give you all the information you need. Though I've never used it, there's a PHP SDK which might be useful to you.

    From there, if you want to get the stream information (that is, the same tracks you get when, while logged in, you see when you go to soundcloud.com/stream), you'll need to do authentication first. Information about that is here: http://developers.soundcloud.com/docs/api/reference#connect

    After that, make a request to one of the /me/activities endpoints described here http://developers.soundcloud.com/docs/api/reference#activities and you'll get some information about the tracks. A track will contain tag_list which you can then parse into individual tags and create a playlist or do whatever you want.