I'm receiving a 429 error of "Too many requests", but I'm complying with the quota limit per day and spike arrest per second, what is wrong?

Created by Sitora Salieva, Modified on Thu, 18 Apr at 1:40 PM by Sitora Salieva

Even though there is a spike arrest limit per second, this is further divided into millisecond intervals that you must consider when programming your calls to avoid 429 errors.

As a general rule, if a spike arrest with a quota of X calls per second, the system will convert the second to milliseconds and divide it by the number of calls per second restriction; then, only one call will be able to happen inside the interval of the resulting millisecond-interval.

For example, for a quota of 5,000 calls per day, with a spike arrest of 4 calls in 5 seconds

5 second = 5,000 milliseconds

5,000 milliseconds are divided into four intervals = resulting in four intervals of 1250 milliseconds

Only one call can be triggered every 1250 milliseconds.


If the user tries to do two calls inside one of the 1250-millisecond intervals, it will trigger a 429 error. 

For example, for a quota of 250 calls per day, with a spike arrest of 1 call per 5 seconds: 1 day = 86,400,000 milliseconds 86,400,000 milliseconds are divided into 1,728,000 intervals (250 calls over 5 seconds) = resulting in intervals of approximately 50 milliseconds Only one call can be triggered every 50 milliseconds

If the user tries to do two calls inside one of the 50-millisecond intervals, it will trigger a 429 error. If the user does one call in the first interval, one call in the second interval, one call in the third interval, and two calls in the fourth interval, the last fifth call will result in a 429 error as a total of 5 calls were attempted in a period of 5 seconds.


For example, for a quota of 250 calls per day, with a spike arrest of 1 call per 5 seconds: 1 day = 86,400,000 milliseconds 86,400,000 milliseconds are divided into 1,728,000 intervals (250 calls over 5 seconds) = resulting in intervals of approximately 50 milliseconds Only one call can be triggered every 50 milliseconds

If the user tries to do two calls inside one of the 50-millisecond intervals, it will trigger a 429 error. If the user does one call in the first interval, one call in the second interval, one call in the third interval, and two calls in the fourth interval, the last fifth call will result in a 429 error as a total of 5 calls were attempted in a period of 5 seconds.


For example, for a quota of 250 calls per day, with a spike arrest of 1 call per 5 seconds: 1 day = 86,400,000 milliseconds 86,400,000 milliseconds are divided into 1,728,000 intervals (250 calls over 5 seconds) = resulting in intervals of approximately 50 milliseconds Only one call can be triggered every 50 milliseconds

If the user tries to do two calls inside one of the 50-millisecond intervals, it will trigger a 429 error. If the user does one call in the first interval, one call in the second interval, one call in the third interval, and two calls in the fourth interval, the last fifth call will result in a 429 error as a total of 5 calls were attempted in a period of 5 seconds.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article