Pular para o conteúdo

Rate limits

Atualizado em Ver como Markdown

API token limits

Type Limit
Client API per user/account token 1200/5 minutes
Client API per IP 200/second
GraphQL Varies by query cost. Max 320/5 min
User API token quota 50
Account API token quota 500

Some specific API calls have their own limits and are documented separately, such as the following:

Enterprise customers can also contact Cloudflare Support to raise the Client API per user, GraphQL, or API token limits to a higher value.

Rate limiting headers

The following headers are returned when calling REST APIs:

  • Ratelimit: List of service limit items, composed of the limit name, the remaining quota (r) and the time next window resets (t). For example: "default";r=50;t=30
  • Ratelimit-Policy: List of quota policy items, composed of the policy name, the total quota (q) and the time window the quota applies to (w). For example: "burst";q=100;w=60
  • retry-after: The number of seconds, rounded up, until more capacity is available. Note, this header is only returned when the request has exceeded the rate limit.

Cloudflare's SDKs will also automatically work with the headers and back off in response to rate limits.