通过Web API或libspotify获取Spotify的播放历史记录

Getting Spotify play history through either the Web API or libspotify

本文关键字:播放 历史 记录 Spotify 获取 Web API libspotify 通过      更新时间:2023-09-26

有没有办法使用他们的js或C API获取我的Spotify播放历史记录?我看到了几个例子,但那是使用他们过时的 API 版本。

Spotify 播放历史记录无法通过任何 API 获得。

免责声明:我是Spotify的员工。

最近添加了对此的支持: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}"

看起来不像。

JavaScript Web API 没有身份验证方法。

libspotify C API 将处理身份验证,但我看不到有关用户历史记录的任何信息。我可能会错过它,因为我不是 C 专家。

用户可以将Spotify连接到 Last.fm,这确实存储并可以访问用户的播放历史记录。