9

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.

kmdent
  • 1,505
  • 15
  • 29

4 Answers4

14

Spotify play history is not available through any API.

Disclaimer: I'm a Spotify employee.

iKenndac
  • 18,537
  • 3
  • 32
  • 50
  • Do you plan on making it available in the future? – kmdent Sep 17 '13 at 16:49
  • 2
    Highly unlikely in the short term, as in, it's not planned as far as I know. (I'm also a Spotify employee). There is however a twist. If you are interested in getting _your_ play history and _you_ have scrobbled all of your plays to last.fm, you could extract all of it using http://www.last.fm/api/show/user.getRecentTracks – jooon Sep 24 '13 at 17:34
  • What about getting access through the Facebook Open Graph? – elgehelge Jun 25 '14 at 07:46
  • 2
    is this still unsupported ? – Mariano Latorre Jun 30 '15 at 19:45
  • @MarianoLatorre et al. as mentioned by mrowa44 below, this is possible now! – Michael Jul 08 '17 at 02:51
10

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}"
mrowa44
  • 306
  • 5
  • 10
  • This endpoint only gives access to the "recently played" list. Is there a way to get the full playing history by dates? – arnon cohen May 18 '21 at 13:47
1

It doesn't look like it.

The JavaScript Web API doesn't have a method for authentication.

The libspotify C API will handle authentication, but I don't see anything about a user's history. I could be missing it, as I'm not a C expert.

Black Sheep
  • 6,016
  • 7
  • 28
  • 47
cpastore84
  • 464
  • 2
  • 7
1

Users can connect Spotify to Last.fm, which does store and give access to a user's play history.

ejain
  • 2,980
  • 1
  • 29
  • 47