Rate limits
How many calls fit per minute and per day, the headers that show what is left and how to wait.
Each key has a per-minute limit for reads and another for writes. The organization also has a daily limit, shared by all of its keys.
| Limit | Operations plan | Management plan |
|---|---|---|
| Reads (GET), per key | 60 per minute | 300 per minute |
| Writes (POST and PATCH), per key | 20 per minute | 100 per minute |
| Daily volume, per organization (24 hours from the first call) | 10,000 per 24 hours | 100,000 per 24 hours |
On every plan there is also, per IP address, a ceiling of 600 calls per minute and a limit of 10 attempts per minute without a valid key (missing, malformed or unknown).
The window starts at the first call and lasts 60 seconds (24 hours for the daily limit); then the counter starts over. Use Retry-After and X-RateLimit-Reset to know when to try again.
Headers
| Header | What it tells you |
|---|---|
X-RateLimit-Limit | The per-minute limit of the key for this kind of call (read or write). |
X-RateLimit-Remaining | How many calls still fit in the current minute. |
X-RateLimit-Reset | Seconds until the minute starts over. |
Retry-After | Only on the 429 response: seconds to wait before repeating. |
The X-RateLimit-* headers come on responses to authenticated and counted calls, including errors such as 403 PERMISSION_DENIED, 404, 409, 422 and 429. They do not come on 401, on 403 BILLING_FEATURE_REQUIRED, on 413 and on 503, and may be missing on 500.
The 429 of the per-IP ceiling and the one of the limit of attempts without a valid key carry X-RateLimit-Limit and X-RateLimit-Remaining of that limit, without X-RateLimit-Reset. On those, use Retry-After.
When you get a 429
- Wait the seconds in
Retry-Afterbefore repeating. Do not retry in a tight loop before that: the calls keep being refused until the window starts over. - Watch
X-RateLimit-Remainingto slow down before it reaches zero. - The first item of
detailstells which limit was hit:fieldequal toscopeandcodeequal tominute(the key limit) orday(the daily limit of the organization). The429of the per-IP ceiling and the one of the limit of attempts without a valid key carry nodetails. - On a
429of the daily limit, theX-RateLimit-*headers still describe the minute counter of the key: the wait time is the one inRetry-After. - To make fewer calls, use filters and pages of up to 100 items.
{
"code": "RATE_LIMITED",
"message": "The request limit was exceeded. Try again later.",
"details": [
{ "field": "scope", "message": "O limite por minuto desta chave foi excedido.", "code": "minute" }
],
"requestId": "0197c1d2-8a2e-7f10-9c4b-3e5d6a7b8c90"
}If the limit control is briefly unavailable, the response is 503 RATE_LIMIT_STORE_UNAVAILABLE. Wait a few seconds and try again.