TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Make a rate-limited request that counts toward the limit

GEThttps://api.testingapis.com/api/RateLimitSign in to see this endpoint's URL

Header (optional): X-Client-Id: <any id>; without it the remote IP is used. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds). The 6th request in a window gets 429 with Retry-After in seconds.

Parameters 1

NameTypeDescription
X-Client-Idheader · stringRate-limit bucket id (defaults to your IP). Use a unique value to get a fresh window.

Responses

200
Request allowed.
429
Limit exceeded; retry after the Retry-After delay.

Example

Request
curl -X GET "https://api.testingapis.com/api/RateLimit" \
  -H "X-Client-Id: docs-demo" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 4
X-RateLimit-Reset: 1790792858

{
  "message": "Request allowed.",
  "clientId": "id:docs-demo",
  "used": 1,
  "remaining": 4,
  "limit": 5,
  "windowSeconds": 60
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.