I'm using the /tracks
API endpoint to retrieve song stats like playback count and favorite count. I've noticed that the playback count in the API is not the same as the one on the website.
Here's an example
I found a workaround here https://stackoverflow.com/a/36985629/287491 but it seems that using it might be against the Soundcloud ToS although I didn't find the specific article in the ToS. On top of that I'd rather not use an undocumented API as it may change or be removed without notice.
What would be the proper way to retrieve the real playback count for a track?
Plays - We count a play once the play button is clicked. If a listener is logged into their SoundCloud account, their plays will be tracked in real-time. If they are not logged in, their plays will be updated within 24 hours. We don't count self-plays on your own tracks, since those are your own plays.
You can access your data through Insights on mobile: From your Profile, Library or More menu just tap the Insights bar graph icon – and if you're reading this from your phone, you can drive straight in here. There you'll see an overview of your total plays by day, week, month and year.
To access the SoundCloud® API, you will first need to register your app at https://soundcloud.com/you/apps using your SoundCloud® account. When you've done that, we'll issue you with a client ID and client secret. Your client ID is required for all calls to the SoundCloud® API.
SoundCloud now offers Insights for creators, allowing smaller musicians to know who's listening to their music, what music they're listening to and where they're from -- data they may not otherwise have.
As You wrote the workaround is valid but it surely violates the ToS of SoundCloud!
By the side of SoundCloud there was an attempt to clean up:
http://status.soundcloud.com/post/145855742725/stats-maintenance#note-container
Your is after their update (August 3rd, 2016 ), so it is a bug. My recommendation is to ask help on the forum, (stat special part), they seem to reply in this topic little to no time.
Update: the API worked as intended on 2017.10.09.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With