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

Reducing the Spotify API usage and avoiding rate limiting

Reducing the Spotify API usage and avoiding rate limiting

Hello, i'm currently creating a browser extension that needs to know the current track the user is listening to.
I'm currently using the nowPlaying endpoint but the extension needs to send a request every ~5seconds.

The user logs in using the Oauth flow with my Spotify Application and I would have thought this request would not be counted in the rate limit of my application.
However it seems it is counted as it's showing up on the dashboard.

How can I make realtime tracking viable no matter the amount of users ? Because if the amount of users increase I will rapidly hit the rate-limit. (A user sends 12 requests per min)

Reply
2 Replies

Would be neat if there was a way to subscribe to events from spotify. A "music has changes" event would be super useful to trigger other tasks.

It seems like this has been a highly requested feature for a while now, and one that Spotify is aware of, but unfortunately it seems very unlikely that they will introduce a feature like this to 3rd party developers:

 

Github Issue

Feature Request

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