Skip to content

Commit 66a287d

Browse files
KaydeeDeejhutchings1dcpena
authored
Create 2025-09-03-rate-limiting-improvement.mdx (#24896)
* Create 2025-09-03-rate-limiting-improvement.mdx Rate Limiting Improvement Changelog * Update src/content/changelog/fundamentals/2025-09-03-rate-limiting-improvement.mdx Co-authored-by: Justin Hutchings <[email protected]> * Update src/content/changelog/fundamentals/2025-09-03-rate-limiting-improvement.mdx Co-authored-by: Justin Hutchings <[email protected]> * Update src/content/changelog/fundamentals/2025-09-03-rate-limiting-improvement.mdx Co-authored-by: Justin Hutchings <[email protected]> * Update src/content/changelog/fundamentals/2025-09-03-rate-limiting-improvement.mdx Co-authored-by: Justin Hutchings <[email protected]> * Update src/content/changelog/fundamentals/2025-09-03-rate-limiting-improvement.mdx Co-authored-by: Justin Hutchings <[email protected]> * Update src/content/changelog/fundamentals/2025-09-03-rate-limiting-improvement.mdx Co-authored-by: Denise Peña <[email protected]> --------- Co-authored-by: Justin Hutchings <[email protected]> Co-authored-by: Denise Peña <[email protected]>
1 parent 4dd46e4 commit 66a287d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Introducing new headers for rate limiting on Cloudflare's API
3+
description: Cloudflare's API handles rate limiting automatically in the SDKs and how to respond appropriately in your code.
4+
products:
5+
- fundamentals
6+
date: 2025-09-03
7+
---
8+
Cloudflare's API now supports rate limiting headers using the pattern developed by the [IETF draft on rate limiting](https://ietf-wg-httpapi.github.io/ratelimit-headers/draft-ietf-httpapi-ratelimit-headers.html). This allows API consumers to know how many more calls are left until the rate limit is reached, as well as how long you will need to wait until more capacity is available.
9+
10+
Our SDKs automatically work with these new headers, backing off when rate limits are approached. There is no action required for users of the latest Cloudflare SDKs to take advantage of this.
11+
12+
As always, if you need any help with rate limits, please contact Support.
13+
14+
### Changes
15+
#### New Headers
16+
17+
**Headers that are always returned:**
18+
- X-RateLimit-Limit: Total Number of requests the caller can make
19+
- X-RateLimit-Remaining: Number of requests before Rate Limit kicks in
20+
21+
**Returned only when a rate limit has been reached (error code: 429):**
22+
- Retry-After: Number of Seconds until more capacity is available, rounded up
23+
- X-RateLimit-Reset: RFC 1123 Formatted Date as to when more capacity is available
24+
25+
#### SDK Back offs
26+
- All SDKs will automatically respond to the headers, instituting a backoff when limits are approached.
27+
28+
### GraphQL and Edge APIs
29+
These new headers and back offs are only available for Cloudflare REST APIs, and will not affect GraphQL.
30+
31+
### For more information
32+
* [Rate limits at Cloudflare](https://developers.cloudflare.com/fundamentals/api/reference/limits/)

0 commit comments

Comments
 (0)