Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Monitor Playlist updates with web API?

Monitor Playlist updates with web API?

I'm using the web api to provide updates to a chat when songs are added or removed to a specific playlist. Today, I am polling every few minutes to look for any changes in the playlist. Is there any api to get a delta either by polling or by a hook?


I would preferably like to get info on who did the change to the playlist.

Reply
3 Replies

Hi! There is no publicly available Webhook or WebSocket today, but it is something we are considering.

Hi, what's the status on this?

In the meantime, what are the rate limits to playlist/<id> and playlist/<id>/tracks endpoints? I'm currently grabbing a two page playlist every 2 minutes to compensate for the lack of events. When I had the interval to 2 polls every 10 seconds, I remember not getting 429, but some other error (no response?) and being blocked for hours.

I have tried to use snapshot_id to avoid having to grab the full playlist when polling, but it does not seem to update reliably.
edit: It looks like it can take at least a minute for the snapshot ID to change.

edit: I tried looking up the playlist/<id> endpoint every 10 seconds, so 3 requests per 30 second window. Interestingly, this works for 1-2 days before getting HTTP 429 error responses. So the error code is right, but the rolling 30 seconds window seems to be a lie, since I kept the same rate over a lot of 30 second windows.

Suggested posts

Staff
Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random

Type a product name