API Rate Limit Calculator

Size a request rate that fits inside a quota, retries included.

What you provide

Retries count against the quota. 1.1 assumes about one request in ten is retried.

Result

3.33 requests a second per client, one every 300 ms

Two things break a plan that looks fine as an average. Fixed windows reset on the clock rather than sliding, so firing a full allowance at the end of one window and again at the start of the next sends double the intended rate in a couple of seconds. And retries count against the quota, which means a burst of failures can consume the budget that would have let them succeed. Read the response headers instead of guessing: most APIs return the remaining count and a reset time, and honouring the Retry-After header on a 429 is more reliable than any client-side schedule.

Diagnostic telemetry
Quota
1,000 per 60s
Average rate
16.67 req/s
Safe rate (20% held back)
13.33 req/s
Per clientAcross 4 clients
3.33 req/s
Interval between requests
300 ms
Requests including retries
5,500
Time to finish the job
6.9 min
Windows consumed
5.5

What this cannot tell you

  • Planning arithmetic on the numbers you enter. It does not call any API or read your usage.
  • Providers enforce limits differently, using fixed windows, sliding windows or token buckets. The safe rate here is deliberately conservative because a fixed window can allow double the average rate across a boundary.

Take this with you

API Rate Limit Calculator on RunTheTests — free browser-based devops tools, no sign-up.