Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reliable way of getting a Soundcloud track playback count via the API?

Tags:

soundcloud

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 Bug 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?

like image 714
Virgiliu Avatar asked Aug 05 '16 05:08

Virgiliu


People also ask

How are SoundCloud plays counted?

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.

How to see stats on SoundCloud?

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.

Does SoundCloud have API?

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.

Can you see who listened to your track on SoundCloud?

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.


1 Answers

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.

like image 96
Hash Avatar answered Oct 23 '22 18:10

Hash