Skip to main content

The MotorMetrics API implements rate limiting to ensure fair usage and protect against abuse.

Limits#

LimitValue
Requests per minute60
ScopePer IP address

Response Headers#

Every API response includes rate limit information in the headers:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed per window
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the limit resets

Rate Limit Exceeded#

When you exceed the rate limit, the API returns a 429 Too Many Requests response:

Best Practices#

  1. Cache responses - Data updates monthly, so cache aggressively on your end
  2. Use conditional requests - Check Last-Modified headers when available
  3. Implement exponential backoff - When rate limited, wait before retrying
  4. Batch requests efficiently - Fetch only the data you need

Example: Handling Rate Limits#