Developers
API rate limits
How many requests an API key can make each minute, the headers that show your usage, and how to back off after a 429.
Reviewed
On this page
Crate limits how fast each API key can send requests, so one busy integration can't slow down your store. The limit is the same on every plan.
The limits
| Limit | Value | Counted per |
|---|---|---|
| API requests | 120 a minute by default | API key. Two keys have two separate allowances, subject to the network limit. |
| API requests from one network address | 600 a minute | IP address, across all keys. |
| License key checks | 60 a minute | License key, for the validate, activate and deactivate calls. |
Every request counts, including one that returns an error and one you are retrying.
Read your usage
Responses completed by an API controller can include these advisory headers:
| Header | Meaning |
|---|---|
X-RateLimit-Limit |
Requests allowed each minute. |
X-RateLimit-Remaining |
Requests left in the current minute. |
X-Crate-Api-Call-Limit |
Requests used out of the limit, such as 37/120. |
Use them to pace requests. Other limits can reject a request before the remaining count reaches zero.
When you go over
The request throttle answers 429 Too Many Requests before the API controller runs. The Retry-After header gives the seconds to wait. This response has Content-Type: text/plain and Cache-Control: no-store; the controller usage headers above may be absent. The body is plain text:
HTTP/1.1 429 Too Many Requests
Retry-After: 60
Too many requests. Wait 60s and try again.The per-license-key limit answers in JSON with an errors string and a Retry-After header in seconds:
{ "errors": "Too many requests for this key. Try again in a minute." }Stay under the limit
- Ask for bigger pages. One request with
limit=250replaces five requests of 50. See Pagination. - Don't poll for changes. Use webhooks and fetch the record when an event arrives.
- Spread bulk jobs over the minute. Sending 120 requests in the first second leaves none for the next 59.
- After a
429, wait forRetry-After, then retry. Wait longer each time if you have to retry again. - Give each integration its own key, so one busy script can't use up the others' allowance.
Troubleshooting
Next steps
Was this helpful?
Still need a hand?
Tell us the task you were trying to complete and the message you saw. Include your store name or order reference when relevant. Keep passwords, API secrets and card details private.
Contact Crate