I see that the rate limit is 40 requests every 10 seconds, so i wrote a function to make 40 requests every 10 seconds, but I'm still getting responses saying that I'm over the rate limit. I throttled it back to 40 requests every 20 seconds. How can i reset the rate limit every 10 seconds so I can loop through all of my data?
Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.
Diesen Eintrag bewerten oder zu einer Liste hinzufügen?
Kein Mitglied?
Antwort von Travis Bell
am 27. Juni 2018 um 15:50
You should use the timestamp values returned by the
X-RateLimit-Reset
andX-RateLimit-Remaining
headers. You can find some documentation about this here. This way you'll know what your limit is, and when it resets.