Reputation: 7855
I'd like to know if it's possible (and if yes: how) to fetch statistics for our soundcloud tracks via the soundcloud API.
I know that i can get the current playback count of my tracks but is it possible to get the playback count of yesterday and so on to draw a custom graph ?
Or do i have to poll the api and record the data myself?
Upvotes: 2
Views: 1729
Reputation: 2606
Not officially. Latest and official api does not support this feature yet. It voilates the tos.
Check that question first, before you read further: soundcloud: Is api-v2 allowed to be used and is there documentation on it?
For experimental use, you can try this:
soundcloud.com/{username}/stats
Is a good starting point to take a deeper look on the networks tab in the console.
Example calls:
totals -> all tracks
plays -> individual tracks
The second call will give you, what you want - an array with the daily plays.
To make the calls working i had to manipulate the request headers.
Upvotes: 4