Skip to main content

Overview

APIs often enforce rate limits to prevent abuse and ensure stability. This section explains how rate limits work, the relevant headers, and how to handle cases when the limit is exceeded.

Rate limit Headers

The API provides the following headers in each response to help you manage your request quota:

Example Headers

When the limit is reached

If you exceed the allowed number of requests, the API responds with HTTP 429 Too Many Requests.

Example Response

Headers:
Body:

Best practices for handling rate limits

  • Always check x-ratelimit-remaining before making requests.
  • Respect the retry-after header to avoid being blocked.
  • Implement exponential backoff or request queuing.
  • Cache responses when possible to reduce unnecessary requests.