Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get a specific snapshot of a playlist from the Spotify Web API?

Tags:

api

spotify

According to the Spotify docs, updates to a playlist result in a new revision, having its own snapshot_id.

In the docs for getting a playlist and for getting a playlists tracks, though, there is no documentation for how to specify a snapshot.

Furthermore, there doesn't seem to be a way to discover past snapshots.

So, is there a (perhaps undocumented) way to discover existing snapshot_ids, and view a playlist as it once was given a snapshot_id?

like image 930
AndrewH Avatar asked Nov 18 '15 00:11

AndrewH


People also ask

What kind of data can you get from Spotify API?

Based on simple REST principles, the Spotify Web API endpoints return JSON metadata about music artists, albums, and tracks, directly from the Spotify Data Catalogue. Web API also provides access to user related data, like playlists and music that the user saves in the Your Music library.

How do I mass copy a playlist on Spotify?

To select all songs, hold CTRL/CMD + A. Then, drag and drop them to a chosen playlist or do a right click and choose "Add to playlist". This will be helpful when you want to add a playlist to another playlist on Spotify.


1 Answers

Very good question and it makes me curious of what you're building! I work on the Web API, and I can tell you that it isn't supported. The reason the Web API uses snapshots is to support concurrent changes - e.g. if you retrieve a playlist and want to remove one of its tracks, you want to be sure that the correct track is removed even though a change has occurred since you retrieved it.

Hope this helped!

like image 150
Michael Thelin Avatar answered Sep 18 '22 02:09

Michael Thelin