Getting Spotify play history through either the Web API or libspotify
Asked Answered
G

4

11

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.

Galata answered 16/9, 2013 at 23:2 Comment(0)
C
16

Spotify play history is not available through any API.

Disclaimer: I'm a Spotify employee.

Coquette answered 17/9, 2013 at 10:28 Comment(5)
Do you plan on making it available in the future?Galata
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 last.fm/api/show/user.getRecentTracksPteridology
What about getting access through the Facebook Open Graph?Sinter
is this still unsupported ?Straighten
@MarianoLatorre et al. as mentioned by mrowa44 below, this is possible now!Intelligible
P
11

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}"
Phenice answered 6/3, 2017 at 20:22 Comment(2)
This endpoint only gives access to the "recently played" list. Is there a way to get the full playing history by dates?Weeny
Unfortunately, with this method you can only get the 50 last played tracks, not the entire history. I tested it.Arnaldo
M
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.

Morea answered 16/9, 2013 at 23:49 Comment(0)
N
1

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

Naamana answered 31/12, 2014 at 21:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.