Rate limiting
Rate limits for API requests are enforced on a per-server basis. If the number of requests to the server reaches the request limit within the specified time window, no further requests are accepted until the timer expires. After the timer expires, a new time window begins with the next accepted request.
The response to each HTTP request includes headers that you can use to determine whether you are close to the rate limit:
Retry-after: The time to wait before trying the request again (in seconds)X-Ratelimit-Limit: The total number of requests allowed within the time windowX-Ratelimit-Remaining: The number of requests remaining in the current time windowX-Ratelimit-Reset: The time the current timer expires (in UNIX epoch time)
HTTP status code 429 indicates that the rate limit has been exceeded.