Announcements
The Spotify Stars Program: Celebrating Values Week!

Help Wizard

Step 1

NEXT STEP

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