Rate limit headers
Every response includes headers describing your current budget:
Read these headers to pace your requests before you hit the limit.
When you exceed the limit
Once you exceed the limit, the API returns429 Too Many Requests with a Retry-After header telling you how many seconds to wait before retrying:
Handling limits gracefully
1
Watch X-RateLimit-Remaining
Slow down as
Remaining approaches zero rather than sending requests until you’re rejected.2
Respect Retry-After on 429
When you get a
429, wait the number of seconds in Retry-After before retrying; don’t retry immediately.3
Back off on repeated 429s
If you keep hitting the limit, add exponential backoff and consider batching work or spreading it over time.