Appearance
Monitor your Doppio usage: Rate-Limits and Quotas
Monitoring your Doppio API usage is essential to ensure uninterrupted access and to stay within your subscription limits. This guide helps you understand the headers returned in every response which indicate your usage and any rate limits imposed.
In every response we return the following headers:
Rate-Limits related headers
To prevent any unintentional service disruptions, it's vital to be aware of the rate limits. These headers help you gauge your current API request frequency.
Header Name | Description |
---|---|
X-RateLimit-Limit | The maximum number of requests per minute you are allowed. |
X-RateLimit-Remaining | The number of requests left for the time window. |
X-RateLimit-Reset | The number of seconds remaining until the rate limit resets. |
Retry-After | The number of seconds the you should wait before making another request. Shown when the rate limit has been exceeded. |
Doppio usage related headers
Keep track of your monthly usage with these headers. This way, you'll always know how many requests you have left before hitting your subscription's limit.
Header Name | Description |
---|---|
x-doppio-subscription-limit | Your actual subscription limit for the month |
x-doppio-current-month-usage | Your current usage for this month |
x-doppio-remaining-usage | The number of requests left for the month |
Manually check your doppio usage with the statistics route
Route
Method: GET
Route: api.doppio.sh/v1/statistics
Response:
js
{
"data": {
"month": "11",
"year": "2023",
"totalCallCount": "10223",
"successCount": "10223",
"failureCount": "0"
}
}