Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get play count of a track from Spotify API

Tags:

Is it possible to get the play count of a song (for the current user)? I only found Toplist and the Track class, but neither tells me how often a user listened to a song.

like image 522
TomTasche Avatar asked Jan 05 '14 14:01

TomTasche


People also ask

How do you get play count on Spotify?

#1 – Open up the Spotify app or web browser. #2 – Type in the artist you are looking for in the search engine. #3 – Click through to the profile of the artist. #4 – Under the “Popular” section, you will see play counts to the right of each song.

How does Spotify count plays on each track?

Spotify classifies a single stream of a song when it has been listened to for 30 seconds or more. If you restart the song, whether by having it on repeat or clicking it again, it will count as another play after 30 seconds have been listened to again.

Does Spotify allow scraping?

Scraping Spotify DataTo use the API, simply create a free Spotify account to use with their API and head to the Spotify API dashboard where you can access your client ID and secret. You can then use the Authentication Endpoint to get your access_token , which you'll need to access other Spotify API endpoints.


2 Answers

As far as I know there is no way to retrieve that data at the moment.

like image 77
José M. Pérez Avatar answered Oct 26 '22 04:10

José M. Pérez


This is not possible through the Spotify API right now. The Last.fm API does offer information similar to this, as a potential work-around.

like image 45
LucasMoore Avatar answered Oct 26 '22 04:10

LucasMoore