Test 6: Rate Limited API

API

Test how your scraper handles HTTP 429 responses and rate limit headers.

Test Passing Criteria
API Endpoint
GET /api/test/rate-limited/data?difficulty=easy|medium|hard

Difficulty Levels

Easy
  • 30 requests per minute
  • Includes Retry-After header
  • No authentication required
Medium
  • 10 requests per minute
  • No Retry-After header
  • No authentication required
Hard
  • 5 requests per minute
  • No Retry-After header
  • Requires X-API-Key header

Response Headers

  • X-RateLimit-Limit — Maximum requests per window
  • X-RateLimit-Remaining — Requests remaining in current window
  • Retry-After — Seconds until window resets (Easy only)

Success Response (200)

{
  "data": [...],       // Array of tech facts
  "remaining": 28,     // Requests left
  "limit": 30,         // Max requests per window
  "difficulty": "easy",
  "timestamp": "2026-..."
}

Rate Limited Response (429)

{
  "error": "Rate limit exceeded",
  "retryAfter": 45,    // Only on Easy
  "remaining": 0,
  "limit": 30,
  "difficulty": "easy"
}
API Tester
Fire requests at the rate-limited endpoint and observe the responses.
Difficulty:

Responses (0)