Rate limits and quotas
How we record API calls, and how limits work on deployments that enforce them.
The hosted API is free with no usage cap today. We may introduce fair-use rules and usage
limits later with notice. The API does not send RateLimit-* or Quota-* headers while
enforcement is off, and usage does not trigger HTTP 429. The separate agent registration caps
still apply. See agent registration.
Check your plan and the calls recorded this month in the console. Each authenticated
request admitted under /v1 counts as one call, including journey searches, pages, conditional
requests that return 304, and calls that fail after admission. Requests refused by authentication
or the meter do not count. The API records calls in the background when enforcement is off.
The console can lag behind live traffic, and counts can be incomplete if writes fail or the
queue fills.
If enforcement is on
With enforcement on, Free accounts have 1,000 calls per UTC calendar month and 30 calls per key per UTC minute. The monthly quota is shared across all keys on the account, including calls made from the console. It resets at 00:00 UTC on the first of the month. Creating or revoking a key does not reset the quota. The per-minute limit resets at the next UTC minute boundary. Calls made from the console share their own per-minute limit.
Response headers
These headers describe the limits and remaining calls at the time the meter handles the request.
| Header | Meaning |
|---|---|
RateLimit-Limit |
Calls allowed per key per UTC minute |
RateLimit-Remaining |
Calls left in the key’s current minute |
RateLimit-Reset |
Whole seconds until the next minute |
Quota-Limit |
Calls allowed across the account per UTC calendar month |
Quota-Remaining |
Calls left across the account this month |
Quota-Reset |
Whole seconds until the next UTC month |
When to retry
With enforcement on, an exhausted limit returns HTTP 429 with application/problem+json. Use code or type
to tell which limit applies. Problem type URIs have the base https://triptopology.com/docs/problems/.
| Code | When to retry |
|---|---|
rate_limit_exceeded |
After the next minute starts |
monthly_quota_exceeded |
After the next month starts |
Wait at least Retry-After seconds. If both limits are exhausted, the API returns
monthly_quota_exceeded. A 429 never returns partial results or consumes a call.
HTTP 503 usage_unavailable means the API could not confirm whether to admit the request.
Honor its Retry-After and use bounded backoff. The call may already have been recorded if
the connection failed during commit.