Collecting Statistics from Soundcloud

268 views
Skip to first unread message

John Heery

unread,
Feb 17, 2011, 7:03:11 AM2/17/11
to SoundCloudAPI
Hello
I was wondering is there a simple way of pulling statistics from
soundcloud based on a username?

Ideally I'd like to get data such as: no of tracks, no of loved
tracks, no of plays etc.
Any ideas/suggestions? thanks

SoundCloud API Support

unread,
Feb 17, 2011, 7:27:54 PM2/17/11
to soundc...@googlegroups.com
Hi John,

I suggest you have a look at the API wiki, particularly this[1] page,
which lists all the data you can currently get about Users, Tracks,
Playlists etc.

What you mention in your question is directly available by just
issuing a GET to /users/{user-id} or /tracks/{track-id}

Greets,
Lorenzo // API Team

> --
> You received this message because you are subscribed to the Google Groups "SoundCloudAPI" group.
> To post to this group, send email to soundc...@googlegroups.com.
> To unsubscribe from this group, send email to soundcloudap...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/soundcloudapi?hl=en.
>
>

Johan Uhle

unread,
Feb 17, 2011, 11:17:45 PM2/17/11
to soundc...@googlegroups.com
I think this is the page Lorenzo meant:
https://github.com/soundcloud/api/wiki/03-Representations

Cheers,
Johan

--
Johan Uhle
API Developer, SoundCloud

Mail: jo...@soundcloud.com
Skype: johan.uhle
Cell: +49 1577 1743814
http://soundcloud.com/diskodna
http://twitter.com/freenerd
Rosenthalerstraße 13, 10119 Berlin, Germany

What is SoundCloud?
http://soundcloud.com/tour

Send me a track?
http://soundcloud.com/diskodna/dropbox

Limited registered at Company House, Cardiff, UK. Registered Office:
London, UK. Company Number 6343600
Managing Director: Alexander Ljung
Local Branch Office Berlin, Germany: AG Charlottenburg, HRB 110657B

John Heery

unread,
Mar 24, 2011, 11:55:17 AM3/24/11
to soundc...@googlegroups.com, Johan Uhle
Thanks for these tips but I'm afraid I'm still a bit lost.

Am I correct in saying that I need to create a php page which issues a GET to http://api.soundcloud.com/me?consumer_key=my_consumer_key ?
If I currently try this with my consumer key I get an xml doc returned saying : <error>401 - Unauthorized</error>

If there's a basic walkthough tutorial to get started on this I'd really appreciate it
thanks
J

SoundCloud API Support

unread,
Mar 28, 2011, 5:12:05 AM3/28/11
to soundc...@googlegroups.com
Hi John,

on SoundCloud there are public and private resources. To access
private ones, you will need to be authenticated. This can be done with
OAuth2. Several libraries exist to make authentication easier (e.g.
PHP [1] and jQuery [2]). Read more about authentication here [3].

/me is obviously a private resource that needs authentication.

But I assume, that it might be sufficient for you to only access
public resources, thus you will not need authentication then. To
access a specific user, you can use the public resource GET
/users/{user-id} [4]. To get the user-id, you can use the resolver
[5].

Hope this helps you. You should also browse and read a bit in the
documentation [6], to get a better understanding of the API.

Best,
Johan // SoundCloud API Developer

[1] https://github.com/mptre/php-soundcloud/
[2] https://github.com/soundcloud/SoundCloud-API-jQuery-plugin/
[3] https://github.com/soundcloud/api/wiki/02-Authentication
[4] https://github.com/soundcloud/api/wiki/10.1-Resources%3A-users
[5] https://github.com/soundcloud/api/wiki/12-Resolver
[6] https://github.com/soundcloud/api/wiki/

Reply all
Reply to author
Forward
0 new messages