Overview
The FoxReach API enforces rate limits to ensure fair usage and platform stability. Rate limits are applied per API key using a sliding window counter.Limits
| Plan | Limit |
|---|---|
| Default | 100 requests per minute per API key |
Rate Limit Headers
Every API response includes rate limit information in the headers:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed per minute |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp when the current window resets |
Exceeding the Limit
When you exceed the rate limit, the API returns a429 Too Many Requests response:
Retry-After header indicating how many seconds to wait:
Handling Rate Limits
Retry with Backoff
The simplest approach is to respect theRetry-After header:
Monitor Remaining Requests
Proactively slow down when you’re approaching the limit:Batch Operations
Instead of making many individual requests, use pagination efficiently:Best Practices
- Cache responses when possible to reduce the number of API calls
- Use webhooks instead of polling for real-time updates
- Batch operations to minimize the number of requests
- Implement exponential backoff for retries after rate limit errors