How to use SoundCloud API in Java (Android App)

Dan picture Dan · Sep 30, 2014 · Viewed 19.4k times · Source

I am researching for a project and was wondering if I can use SoundCloud API for making and app that streams music with SoundCloud. I could not find any official source from SoundCloud to privde a Java solution.

Any idea?

Answer

Dhinakaran Thennarasu picture Dhinakaran Thennarasu · Sep 30, 2014

Go to Soundcloud developer site

Click on My Apps.. Sign in Register your new app Once you register you will have client id and client secret. Note it

https://api.soundcloud.com/tracks/"TRACK ID"/stream?client_id="YOUR CLIENT ID"

This API url will give you the sound file you want to play. You can use this url and parse the track id to play according to your need.

You can play around the url with different stuffs like getting user details,playlists.

Refer this link for more API reference