Skip to content

Rate limits

Anonymous public API requests are rate limited per visitor IP. Requests with a valid API key use the key as the rate-limit identity and receive higher limits.

BucketDefault per minuteApplies to
global600All public requests covered by a route policy
html240Public HTML pages
read600General public API reads
search180/api/repos search requests with q
search_suggest120/api/search/suggest
heavy180Metrics endpoints
embed120Embed endpoints
mutation60Public non-GET API operations
bot120Requests with bot-like user agents

Authenticated public API requests currently receive five times the listed bucket limit.

Rate-limited and successful public API responses can include:

RateLimit-Limit
RateLimit-Remaining
RateLimit-Reset
RateLimit-Policy
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-Reset
X-RateLimit-Bucket
X-RateLimit-Authenticated
Retry-After

If you receive 429, wait at least Retry-After seconds before retrying. Clients that ignore this will continue to hit the same one-minute window.