During the alpha phase, we implement rate limiting to ensure fair usage and
optimal performance for all users.
- 60 requests per minute
Rate Limiting Headers
MileIQ’s API rate limiting is in conformance with the IETF standard:| Header Name | Description | 
|---|---|
| X-RateLimit-Limit | The maximum number of requests that the consumer is permitted to make per minute. | 
| X-RateLimit-Remaining | The number of requests remaining in the current rate limit window. | 
| X-RateLimit-Reset | The time at which the current rate limit window resets in UTC epoch seconds. | 
| Retry-After | The number of seconds to wait before retrying the request again. | 
429 Too Many Requests response code if the rate limit is exceeded.
Best Practices
To handle rate limiting gracefully in your applications:- Implement retry logic with exponential backoff.
- Check for 429 status codes in API responses.
- Respect the ‘Retry-After’ header when provided in the response.
- Monitor the X-RateLimit-*headers to track your usage and adjust your request rate accordingly.
- Consider using a rate limiting library or implementing a request queue to manage your API calls.