New in 2.4: Test runs you can trust See what's new →

Rate limiting

Rate limit: a real fixed-window limiter (5 requests per 60 seconds per client) for testing 429 and Retry-After handling. Clients are identified by the X-Client-Id header, or by IP without it.

Example request

Make a rate-limited request that counts toward the limit. Full reference and a Send button.

cURL
curl -X GET "https://api.testingapis.com/api/RateLimit" \
  -H "X-Client-Id: docs-demo"
Run in Studio
Response · 200 OK
{
  "message": "Request allowed.",
  "clientId": "id:docs-demo",
  "used": 1,
  "remaining": 4,
  "limit": 5,
  "windowSeconds": 60
}