Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Spotify play history through either the Web API or libspotify

Is there a way to get my Spotify play history using either their js or C APIs? I saw a couple of examples, but that was using their outdated API version.

like image 622
kmdent Avatar asked Sep 16 '13 23:09

kmdent


People also ask

Is there a way to view your Spotify Play history?

To see your Spotify history on Android or iOS: Tap Home in the Spotify app. Tap the clock icon in the upper right corner. Tap and drag up to view additional history.

Does Spotify use the Web Audio API?

Spotify Web API Spotify supports OAuth 2.0 for authenticating all API requests. You can use Spotify's Web API to discover music and podcasts, manage your Spotify library, control audio playback, and much more.


2 Answers

Spotify play history is not available through any API.

Disclaimer: I'm a Spotify employee.

like image 80
iKenndac Avatar answered Sep 27 '22 02:09

iKenndac


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}"
like image 36
mrowa44 Avatar answered Sep 23 '22 02:09

mrowa44