Limits and quota
The API has a requests-per-minute limit and a monthly quota, both per company. Every response says how much is left.
How the limits work
- The per-minute limit protects the API from bursts. It refills by itself over the minute.
- The monthly quota counts the month's requests and resets on the first day of the next month, in UTC.
- Both belong to the company: all API keys share the same limit and the same quota.
- The values depend on the plan. The API Premium add-on raises both.
- There is also a cap on calls in progress at the same time. A short burst waits its turn; if the wait goes past the limit, the response is
429with aRetry-Afterof 1 second.
The response headers
| Header | What it says |
|---|---|
X-RateLimit-Limit | How many requests per minute the company can make. |
X-RateLimit-Remaining | How many are left in this minute. |
X-RateLimit-Reset | When the limit refills, in Unix seconds. |
X-Quota-Used | How many requests the company has made this month. |
X-Quota-Limit | The plan's monthly quota. |
When the limit runs out
| Status | What happened | What to do |
|---|---|---|
429 | The per-minute limit was reached. | Wait for the time in the Retry-After header (in seconds) and retry. |
402 | The monthly quota ran out. | Calls come back next month or with a plan upgrade. Retrying does not help. |
429
{
"error": "too_many_requests",
"message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}Good practices
- Read
X-RateLimit-Remainingand slow down before it hits zero, instead of waiting for the429. - For large loads, use bigger pages instead of many small calls.
- Prefer webhooks to polling the same route in a loop to find out whether something changed.