spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
981 stars 79 forks source link

Spotify Snapshot ID keeps changing between requests #858

Open brodin opened 6 years ago

brodin commented 6 years ago

The snapshot_id for a playlist has previously been constant if there is no "change" to the playlist between two requests – this is no longer the case for playlists published by Spotify. Is this a bug or intentionally?

Running the following request six times gives you different snapshot_id every time.

curl -X "GET" "https://api.spotify.com/v1/users/spotify/playlists/37i9dQZF1DX7z4zw9BLij9?fields=snapshot_id" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer XXXXX"

yhV9wWQxgGO1ZgJ6QQBgnOoWipRNqLhhlVi2N0IUk9vQ7c/TC9nowB6DIQYRFAy8Lls5NACknEg=
yhV9wWQxgGOoPN+8/MHVPOoWipRNqLhhlVi2N0IUk9vQ7c/TC9nowB6DIQYRFAy8Lls5NACknEg=
yhV9wWQxgGMz9N5uLx+fCeoWipRNqLhhlVi2N0IUk9vQ7c/TC9nowB6DIQYRFAy8Lls5NACknEg=
ghfTK7otFOo+qQjRDHkPQOoWipRNqLhhlVi2N0IUk9vQ7c/TC9nowB6DIQYRFAy8Lls5NACknEg=
ghfTK7otFOrC1V+v3ry/YuoWipRNqLhhlVi2N0IUk9vQ7c/TC9nowB6DIQYRFAy8Lls5NACknEg=
ghfTK7otFOpFjz6I/0CmZ+oWipRNqLhhlVi2N0IUk9vQ7c/TC9nowB6DIQYRFAy8Lls5NACknEg=

Running it for any playlist not published via the spotify user gives you the same snapshot_id every time.

curl -X "GET" "https://api.spotify.com/v1/users/b858992/playlists/2ZONg885GRx1XlgcsNVzLk?fields=snapshot_id" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer XXXXX"

arKQRWjbEqFQRp+ThVkOuOpfdjfFZtHkdnQbTEAwdccpy+/1JoiS9OB0k2yJ3ofu
arKQRWjbEqFQRp+ThVkOuOpfdjfFZtHkdnQbTEAwdccpy+/1JoiS9OB0k2yJ3ofu
arKQRWjbEqFQRp+ThVkOuOpfdjfFZtHkdnQbTEAwdccpy+/1JoiS9OB0k2yJ3ofu
arKQRWjbEqFQRp+ThVkOuOpfdjfFZtHkdnQbTEAwdccpy+/1JoiS9OB0k2yJ3ofu
arKQRWjbEqFQRp+ThVkOuOpfdjfFZtHkdnQbTEAwdccpy+/1JoiS9OB0k2yJ3ofu
arKQRWjbEqFQRp+ThVkOuOpfdjfFZtHkdnQbTEAwdccpy+/1JoiS9OB0k2yJ3ofu
hughrawlinson commented 6 years ago

Thanks for the report, I'll look into it

brodin commented 6 years ago

What was the result of your investigation @hughrawlinson ?

saeppl89 commented 5 years ago

Anything new about this? We've got the same issue here with some of spotify's official playlists.

OneBobone commented 5 years ago

I am also curious/disturbed by this. If you Base64decode you will notice that there are two parts to the SnapshotID separated with a ",". The first part changes continuously, the second part appears stable. Unclear for how long? I hav a feeling that the first part is some measure in seconds.

hughrawlinson commented 5 years ago

Hi, can you give some examples of playlists that exhibit this behavior? And can you explain a bit more about the impact this is having on your apps?

vladmiller commented 4 years ago

@hughrawlinson I am also experiencing the same behaviour. Here are some samples:

https://open.spotify.com/playlist/37i9dQZF1DX2S9rTKTX6JP https://open.spotify.com/playlist/37i9dQZF1DX76Wlfdnj7AP

If you base64 decode snapshot_id, it's a timestamp comma separated with some looks-like md5 value. Timestamp part keeps changing for each request. Both playlists seem to be from Spotify, however, I do not experience the same issue with other Spotify playlists in my account.

Thank you for looking into it and please keep us posted on the issue.