X-RateLimit-* headers, and a refused request returns 429 rate_limited with a Retry-After header.
Limits
How the limits are counted:
- Per key. Each key has its own counters, so one key using its allowance does not use another key’s.
- A workspace ceiling. Every key in a workspace also counts toward a workspace ceiling of five times your plan’s daily allowance. On the Starter plan, for example, each key can make 10,000 requests a day and all keys together 50,000. A single key can never reach the ceiling on its own.
- Per address without a key. Anonymous requests are counted by a salted hash of the client address. The address itself is not stored.
- Every request counts, whatever the endpoint and whether it succeeds, once the key has been verified. Requests rejected for a bad key (
401) or for a key without Read or Admin (403) are refused before counting, and so is an MCP batch of more than 20 requests. - REST and MCP share the allowance. A key used for both the REST API and the MCP server spends one daily allowance. Each JSON-RPC request in a
POSTto the MCP endpoint counts once, and a batch may hold at most 20 requests; notifications are free. A batch that needs more requests than the key has left today is refused whole and costs nothing, while smaller requests still go through. - The day resets at midnight UTC. The burst window is a fixed 10-second window, aligned to the clock.
- A refused burst does not spend the day. When the burst limit refuses a request, the daily counter is not increased.
- The workspace ceiling counts after the key’s day. A request the workspace ceiling refuses still counts against its key’s day. Both reset at the same midnight UTC, so this only shows in
X-RateLimit-Remaining.
Response headers
Every API response, successful or not, carries these headers once the request has been counted. Responses to requests refused before counting (401, 403 for a key’s scope) do not:
The headers are exposed to browsers through CORS, so fetch from a web page can read them.
When you hit a limit
A refused request returns429 with the error envelope. The message says which limit refused it:
Retry-After is the seconds until the current 10-second window ends. For the daily allowance and the workspace ceiling, it is the seconds until midnight UTC. When the workspace ceiling refuses a request, X-RateLimit-Remaining is 0; the other headers still describe the key’s own day.
Retry correctly
Wait forRetry-After seconds, then send the same request again. Do not retry in a tight loop: every retry inside the window is refused again.
- Send requests one after another rather than in large parallel batches. 20 requests per 10 seconds is two a second on average.
- Cache reports you show to many people. Responses are marked
private, no-store, so CrispStats will not cache them for you. - Ask for what you need in one call: a breakdown with
limit=100costs the same as one withlimit=10. - Watch
X-RateLimit-Remainingand slow down before it reaches zero.
Collector limits
The collector atin.crispstats.com has its own limits, separate from the API’s. They are counted per minute in each Cloudflare location, so traffic served from several locations gets each limit in each of them.
Proxied traffic is never counted by your proxy’s own address alone, so sites whose proxies share a host’s outgoing addresses do not share a limit. The visitor address is the one your proxy forwards in
X-Forwarded-For.
Over a limit, a browser event is dropped and still answered with 202, so a page never sees an error. GET /id still answers, with an id that is not linked to the visit. Server events get 429 with { "error": "rate_limited" }, and GET /check gets 429 with { "ok": false, "error": "rate_limited" }. See the collector reference.
Next steps
Plans and limits
Compare daily API allowances and other plan limits.
Errors
Handle 429 and every other error code.
Query parameters
Pagination bounds that decide how many requests a full export takes.