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

Límite de frecuencia

Límite de frecuencia: un limitador real de ventana fija (5 peticiones cada 60 segundos por cliente) para probar el manejo de 429 y Retry-After. Los clientes se identifican por la cabecera X-Client-Id o, sin ella, por IP.

Petición de ejemplo

Make a rate-limited request that counts toward the limit. Referencia completa y botón Send (en inglés).

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