Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/fundamentals/api/reference/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ sidebar:

import { Render } from "~/components";

<Render file="api-rate-limits" product="fundamentals" />
<Render file="api-rate-limits" product="fundamentals" params={{showHeading: true}} />
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ Servers use this status code to prevent excessive API requests from overloading

### Cloudflare-specific information

- **Cloudflare API limits**
#### Cloudflare API limits

<Render file="api-rate-limits" product="fundamentals" />

- **Website end users**
#### R2 managed public buckets

Cloudflare applies rate limiting to requests for R2 managed public buckets accessed via `r2.dev`. This helps protect customers from abuse and overuse of public buckets. For details, refer to [Rate limiting on managed public buckets through `r2.dev`](/r2/platform/limits/#rate-limiting-on-managed-public-buckets-through-r2dev).

#### Website end users

Cloudflare will generate a `429` response when a request is being [rate limited](https://www.cloudflare.com/rate-limiting/). If visitors to your site encounter this error, it will be visible in the [Rate Limiting Analytics](/waf/reference/legacy/old-rate-limiting/#analytics) dashboard.

13 changes: 9 additions & 4 deletions src/content/partials/fundamentals/api-rate-limits.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
---
{}
params:
- showHeading?
---

## API token limits
import { AnchorHeading } from "~/components";

{props.showHeading && (
<AnchorHeading title="API token limits" depth={2} />
)}

| Type | Limit |
| ----------------------- | ----------------------------------- |
| Client API per user | 1200/5 minutes |
| Client API per user | 1,200/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 |

:::note
The global rate limit for the Cloudflare API is 1200 requests per five minute period per user, and applies cumulatively regardless of whether the request is made via the dashboard, API key, or API token.
The global rate limit for the Cloudflare API is 1,200 requests per five minute period per user, and applies cumulatively regardless of whether the request is made via the dashboard, API key, or API token.

If you exceed this limit, all API calls for the next five minutes will be blocked, receiving a `HTTP 429 - Too Many Requests` response.
:::
Expand Down
Loading