What is the RateLimit-Limit header?
The RateLimit-Limit response header (defined in emerging IETF drafts) indicates the maximum request quota allowed for a client in their current rate-limiting window.
API Usage & Best Practices
- Replacing custom headers: Historically, APIs used custom headers like
X-RateLimit-Limit. IETF is standardizing this underRateLimit-Limit. - Define windows: Provide details in seconds or parameters if needed, or simply return the integer count.
Examples
HTTP/1.1 200 OKRateLimit-Limit: 100