Hey everyone,
I’m trying to find a way to access my Spotify listening history. I’ve been exploring their JavaScript and C APIs, but I’m unsure which one to rely on or if it’s even feasible.
I recall coming across some old examples online; however, those used an outdated API version. Does anyone know if there’s a current method to obtain this data via the latest API?
I would appreciate any advice or shared experiences on using the Web API or libspotify. Many thanks in advance for any support!
i’ve played around with spotify’s api recently. unfortunately, they don’t provide full listening history anymore. you can only get the last 50 tracks played thru the ‘recently played’ endpoint. it’s kinda frustrating but that’s the best we got now. maybe try last.fm for more extensive history tracking?
As someone who’s worked extensively with Spotify’s API, I can confirm that retrieving full listening history is no longer possible through official channels. The Web API’s ‘Get Recently Played Tracks’ endpoint is indeed limited to the last 50 tracks. For more comprehensive data, you might consider implementing a custom solution that periodically polls this endpoint and stores the data locally. This approach requires more effort but can build a more extensive history over time. Alternatively, integrating with Last.fm’s scrobbling feature could provide a more complete picture of your listening habits, though it requires setting up from the moment you start using it.