Rate Limit
When a client exceeds the limit associated with it, subsequent requests are blocked.
The server responds with information about the limits used and the wait time required before sending a new request, attached to the response headers:
| Header | Example | Description |
|---|---|---|
ratelimit-limit | 60 | Request limit for the client. |
ratelimit-name | throttle_authenticated_web | Name of the throttle used. |
ratelimit-remaining | 0 | Number of requests available. |
ratelimit-reset | 1609844400 | Unix time — when the count resets. |
retry-after | 30 | Seconds until the count resets. See Retry-After. |
There are two kinds of limits: GET requests and POST requests. In both cases the count is made per hour.
Maximum limits:
- 60 requests/hour for
GET - 1000 requests/hour for
POST
If your operation needs a higher number, contact support or sales.
The count is reset in the first minute of each hour. On every request, the server returns ratelimit-limit and ratelimit-remaining.
Example of a successful response​
Date: Fri, 05 Nov 2010 12:00:00 GMT
Content-Type: application/json; charset=utf-8
ratelimit-limit: 1000
ratelimit-remaining: 486
Example of a blocked response​
When the limit is reached, the server returns HTTP 429 Too Many Requests. Wait the number of seconds in the retry-after header before the next request.
HTTP/1.1 429 Too Many Requests
Date: Fri, 05 Nov 2010 12:00:00 GMT
Content-Type: application/json; charset=utf-8
ratelimit-limit: 1000
ratelimit-remaining: 0
ratelimit-reset: 3600
ratelimit-name: throttle_authenticated_web
retry-after: 3600
{"error": "Limite de requisições POST por hora excedido para esse usuário."}
Referência: https://ietf-wg-httpapi.github.io/ratelimit-headers/draft-ietf-httpapi-ratelimit-headers.html