Skip to content

Monitor your Doppio usage: Rate-Limits and Quotas

Monitoring your Doppio API usage helps you avoid interruptions and stay within your subscription limits. This guide explains the headers returned in each response so you can track both quota usage and rate limits.

Every response includes headers that can help you monitor usage:

Rate-limit headers

These headers help you understand your current request rate and avoid accidental throttling.

Header NameDescription
X-RateLimit-LimitThe maximum number of requests per minute you are allowed.
X-RateLimit-RemainingThe number of requests left for the time window.
X-RateLimit-ResetThe number of seconds remaining until the rate limit resets.
Retry-AfterThe number of seconds you should wait before making another request. Present when the rate limit has been exceeded.

Usage headers

These headers help you track your monthly usage so you know how much quota remains on your subscription.

Header NameDescription
x-doppio-subscription-limitYour subscription limit for the current month
x-doppio-current-month-usageYour current usage for the month
x-doppio-remaining-usageThe number of requests remaining 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"
    }
}

All rights reserved