3 ms·
I've tried Spotify's (pretty excellent) API...but nowhere in its docs can I find any endpoint in which song plays is revealed. Am I missing something, or has th
by danso 12y ago
I've tried Spotify's (pretty excellent) API...but nowhere in its docs can I find any endpoint in which song plays is revealed. Am I missing something, or has the API recently been updated? Getting play count would be great for data analysis.
For example, here's the GET tracks/:id endpoint: https://developer.spotify.com/web-api/get-track/ https://developer.spotify.com/web-api/get-track/
The closest thing to a play count is the "popularity" value, which is described as thus:
> The popularity of the track. The value will be between 0 and 100, with 100 being the most popular.
The popularity of a track is a value between 0 and 100, with 100 being the most popular. The popularity is calculated by algorithm and is based, in the most part, on the total number of plays the track has had and how recent those plays are.
Generally speaking, songs that are being played a lot now will have a higher popularity than songs that were played a lot in the past. Duplicate tracks (e.g. the same track from a single and an album) are rated independently. Artist and album popularity is derived mathematically from track popularity. Note that the popularity value may lag actual popularity by a few days: the value is not updated in real time.
- burkaman 12y agoI think you're right, popularity is really the only way to do this. And 0 popularity doesn't seem to mean 0 plays, I think a song with 5 plays 2 years ago would probably have a 0 rating. This definitely seems like a project where they came up with the idea first and then got as close as they could.