Skip to content

Commit 38dd35a

Browse files
authored
Create 2025-09-03-rate-limiting-improvement.mdx
Rate Limiting Improvement Changelog
1 parent 4f4126b commit 38dd35a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Introducing new headers to Rate Limiting for Core APIs at Cloudflare
3+
description: New headers and a backoff introduced for SDKs for Rate Limiting for Core APIs
4+
products:
5+
- fundamentals
6+
date: 2025-09-03
7+
---
8+
With the increased demand on Core APIs at Cloudflare, we recognize that reaching a rate limit without warning and being forced to wait for the time out can be frustrating. To ensure greater predictability when calling Cloudflare's Core APIs, we have introduced standardized headers to help you understand when you are approaching a rate limit, 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 will also be working with these new headers, responding with a back off when rate limits are being approached. There is nothing that needs to be enable on your end - these back offs will happen on their own.
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 in effect for Cloudflare Core APIs, and will not effect GraphQL or Edge APIs.

0 commit comments

Comments
 (0)