Help Wizard

Step 1

NEXT STEP

Spotify rate limit

Spotify rate limit

Hi,

 

I am creating a widget for Twitch streamers to use in their streaming software to show their currently playing spotify track on stream. This will require me to call the spotify api every 3.5 seconds to make it feel fast and smooth. What will happen if I hit the rate limit and is it possible to increase that limit?

 

Kind regards,

 

Stephan

Reply
1 Reply

Answering to both of your questions:

1º - If you hit the rate limit, it will return a 429 error. In the header of that error, you'll have the amount of time you need to wait before requesting again (under 'retry-after'). Keep in mind the time you need to wait is in milliseconds.

2º - There are two ways of increasing your rate limit:

  • Reducing the number of times you request the API (which maybe is not an option)
  • Applying your app to be a commercial app (I think). With that, you'll be able to have more privileges using the API. But according to multiple posts by other users, this seems to not be working the way it should work.

I hope it helped!

Suggested posts