Getting Spotify Game History via Web API or libspotify

Is there a way to get my Spotify replay history using either their js or C API? I saw some examples, but this used their outdated version of the API.

+4
source share
4 answers

Spotify play history is not available through any API.

Disclaimer: I am a Spotify employee.

+10
source

This is not like that.

The JavaScript Web API does not have an authentication method.

The libspotify C API will handle authentication, but I don’t see anything in the user history. I could skip this since I'm not an expert C.

+1
source

Support for this has been added recently: https://developer.spotify.com/web-api/web-api-personalization-endpoints/get-recently-played/

curl -X GET "https://api.spotify.com/v1/me/player/recently-played" -H "Authorization: Bearer {your access token}" 
+1
source

Users can connect Spotify to Last.fm, which saves and provides access to the user's playback history.

0
source

Source: https://habr.com/ru/post/1502514/


All Articles