Rate limits

Each endpoint allows this many requests per minute:

Every response carries these headers:

HeaderMeaning
X-RateLimit-LimitRequests allowed in the current minute.
X-RateLimit-RemainingRequests left in the current minute.
X-RateLimit-ResetWhen the limit resets, in Unix seconds.

Over a limit you get 429 with a Retry-After header that says how many seconds to wait. Wait that long, then retry. The code is rate_limit_exceeded, or rate_limit_exceeded_global in the rare case the API as a whole is busy. If the rate limiter itself is unavailable you get 503 service_unavailable, also with Retry-After.

Link copied