Request cost and error codes
This page covers how much of the daily quota a call uses and the machine-readable labels an error carries. For status codes, Retry-After and a retry pattern, see Rate limits and errors.One call, one request#
Every call to a data endpoint uses one request from the account's daily quota, whatever the response size, except a batch call, which uses one request per item: the batch name screen and the NetAtlas bulk lookups (see below). /api/v1/... and /api/v2/... draw on the same counter at the same price.
A call counts once the key is accepted. Each of these uses one request:a 404 for an identifier that resolves to nothing;
a 422 for a bad parameter.
A call that fails on our side is given back to the daily quota:any 5xx, a 502 from a failing upstream included;
a 429 that is not your daily quota, when an upstream source or a busy server limited the call.
The API's own 429, for a spent quota or for a temporarily reduced limit, is not given back, with one exception: a batch call refused because it holds more items than are left is not charged, and its request is given back (see Quota headers below).Giving back a call that failed on our side has limits, and past them the call stays counted:at most the plan's daily limit is given back in one UTC day, and while our usage counter is unavailable at most the reduced share each server then enforces (see Quota headers below);
a call whose client disconnects before the response is not given back;
when our usage counter is slow to answer, the call may stay counted.
The request of a refused batch is given back outside that daily limit, however many batches are refused in a day, and it does not use up what a later failure of ours can still get back. Its give-back is tried before the 429 is sent; when the give-back fails or our usage counter is slow to answer, it may stay counted, and the count the 429 names then counts it as spent. When a call starts before midnight UTC and is refused after it, its request is given back to the day before, where it was counted, and the count the 429 names is the new day's, which never held that request. A call that stops before the key is accepted does not count:a 401 for a missing or unknown key;
a 404 for a path that does not exist;
a 422 for a request body that is not valid JSON.
System endpoints (/health, /about, /services, /sources) are public and never count.
Calls through Sugra MCP draw on the same quota; the MCP page lists what each of its tools costs.Every response to a data call made with an accepted key carries the counter, errors included, though a 500 for an unexpected server error can come without it:x-ratelimit-limit: 5000
x-ratelimit-remaining: 4213
x-ratelimit-reset: 2026-09-27T23:59:59Z
x-ratelimit-limit is the plan's daily requests.
x-ratelimit-remaining is what is left for the account today, all keys together.
x-ratelimit-reset is the end of the current UTC day.
x-ratelimit-refunded: 1 comes only on a failed response whose request was given back to the daily quota.
On a failed response that carries x-ratelimit-refunded: 1, x-ratelimit-remaining still counts the call, because the counter is read before the call runs; later responses count the request as returned. Treat a failed response without that header as counted. It is, with one rare exception: when our usage counter is slow to answer, the give-back can still land after the response went out, and a later response shows it. The 429 that refuses a batch call is the exception: the give-back of its request is tried before the response, and x-ratelimit-refunded: 1 shows that give-back completed. Its x-ratelimit-remaining counts that request as returned only when the give-back landed on the same day's count: a call that started before midnight UTC and is refused after it is given back to the day before, and its x-ratelimit-remaining is the new day's count, which never held that request (see below). A call refused because the day's quota, or that server's share, is already spent is not such a refusal: its request stays counted.The 429 for a spent quota carries the counter too, with x-ratelimit-remaining: 0. A call that stops before the key is accepted (a 401 for a missing or unknown key, a 404 for a path that does not exist, a 422 for a body that is not valid JSON) and a system endpoint carry no rate-limit headers.A batch name screen (POST /api/v1/entity/screen/batch) uses one request per item. A batch larger than what is left today is refused whole with a 429 that screens nothing, also when another call spends part of what was left at the same moment. The give-back of its request is tried before the 429 is sent, and the response carries x-ratelimit-refunded: 1 when that give-back completed; without that header, the give-back failed or our usage counter was slow to answer, and the request may stay counted. A call made when the day's quota, or that server's share, is already spent is refused before the batch is looked at, and its request stays counted. How that 429 reads depends on what is left as the batch is refused:With some of the day's quota left on our usage counter, the detail names the requests the batch needs and how many are left, for example This batch needs 30 requests, one per item, and 9 are left today. Send a batch of 9 items or fewer., and says so when the batch is also more than the plan's daily limit. x-ratelimit-remaining carries the count the detail names. That count is exact as the batch is refused: it counts the refusal's own request as returned only when the response carries x-ratelimit-refunded: 1, and never passes the plan's daily limit, so a batch of that many items or fewer goes through now, unless another call spends the quota first. Retry-After counts to the reset, when the day's quota is restored.
With nothing left, the 429 is the one for a spent quota above, with x-ratelimit-remaining: 0.
While our usage counter is unavailable, the detail says the limit is temporarily reduced and names the requests the batch needs and how many are left of that server's share, which x-ratelimit-remaining carries too (see below).
To screen more names than are left today, split them: send a batch no larger than what is left now, wait for the reset when nothing is left, and send the later batches after the following daily resets, no more than the plan's daily limit each day. A batch larger than the plan's daily limit never fits in one day, whenever it is sent.Rarely, while our usage counter is unavailable, each server enforces a conservative share of the daily limit instead, and x-ratelimit-remaining counts that share rather than the account's day. A 429 in that state says the limit is temporarily reduced and carries Retry-After: 60, even when the day's quota is not spent. When the server's share is spent, it carries x-ratelimit-remaining: 0. When a batch call holds more items than the share has left, it is refused whole, and the give-back of its request is tried before the 429 is sent, with x-ratelimit-refunded: 1 when it completed. Its detail then names the requests the batch needs and how many are left of the share, for example Rate limit temporarily reduced (upstream cache unavailable). This batch needs 20 requests, one per item, and 11 are left of this server's conservative per-worker quota of 12. Send a batch of 11 items or fewer, or try again shortly., and x-ratelimit-remaining carries that count, exact as the batch is refused, on a NetAtlas bulk lookup as on a batch name screen. With nothing left of the share, the 429 is the one for a spent share. Wait and retry: the full limit returns when the counter does.Error labels#
Branch on the status code first. Where a body carries a stable label, it is in one of these places.code on a 401#
The body names the case in code: missing_api_key, invalid_api_key, or unauthorized for any other authentication failure. reason explains it in words. See Authentication for a full body.detail.error on upstream failures and on endpoint families#
A failing upstream answers with a typed object whose detail.error is one of upstream_error, upstream_shape_unexpected, upstream_unreachable, upstream_deferred, upstream_timeout, lane_busy, upstream_too_large or upstream_rejected_request. The table in Rate limits and errors says which of them a retry helps.Several endpoint families use the same place for their own cases, for example on the ETF, options and SEC filing endpoints:{
"detail": {
"error": "unknown_symbol",
"symbol": "XYZQ",
"hint": "GET /api/v1/etf/snapshot/universe lists the covered symbols."
}
}
The label names the case and the status says what to do. A 4xx such as unknown_symbol or invalid_symbol_format will not change on retry. A 503 such as snapshot_not_available or universe_not_initialised usually clears after a backoff.detail.code on NetAtlas endpoints#
The network endpoints (/api/v1/network/...) answer with {"detail": {"code": "...", "message": "..."}}:| Status | code |
|---|
| 400 | INVALID_IP, INVALID_PREFIX, BAD_PREFIX, INVALID_HOST, INVALID_SOURCE, INVALID_PREFER, INVALID_RESOURCE, MISSING_QUERY, QUERY_TOO_SHORT, MISSING_FILTER, BLANK_FILTER, BAD_FILTER, BAD_COUNTRY, BAD_TYPE, MISSING_ASN |
| 404 | ASN_NOT_FOUND_IN_ATLAS, DOMAIN_NOT_FOUND_OR_UNSUPPORTED_TLD |
| 502 | UPSTREAM_FAILED, RESOLVER_FAILED |
| 503 | ATLAS_DEGRADED, HIJACK_SOURCE_DEGRADED |
The bulk lookups (POST /api/v1/network/bulk/ip and /bulk/asn) answer 200 and report failures per item:A failed item carries error with the same code and message, or INTERNAL.
An item left when the time budget ran out carries "unprocessed": true, and the response sets partial to true.
Each address or ASN in a bulk lookup uses one request, and the x-ratelimit-cost header names the total. A batch larger than what is left today is refused whole with a 429 before any item is looked up:With some of the day's quota left on our usage counter, the detail names the requests the batch needs and how many are left, for example This batch needs 11 requests, one per item, and 10 are left today. Send a batch of 10 items or fewer., and x-ratelimit-remaining carries that count, also when another call spent part of what was left at the same moment. A batch larger than the plan's daily limit is refused the same way, and its detail says it cannot go through in one call.
While our usage counter is unavailable, the detail says the limit is temporarily reduced and names how many are left of that server's share (see Quota headers above).
With nothing left, the 429 is the one for a spent quota, with x-ratelimit-remaining: 0.
When the day's quota, or that server's share, is already spent, the call is refused before the batch is looked at, and its request stays counted, as on any such 429.
Any other refused batch is not charged: the give-back of its request is tried before the 429 is sent, and the response carries x-ratelimit-refunded: 1 when that give-back completed; without that header, the give-back failed or our usage counter was slow to answer, and the request may stay counted. The count the 429 names is exact as the batch is refused, the same as on a batch name screen: it counts that request as returned only when the header is there.endpoint_removed on a 410#
A removed endpoint answers 410 with a Deprecation: true header and points to its replacements:{
"detail": {
"error": "endpoint_removed",
"message": "The economic events calendar was removed.",
"see": ["/api/v1/macro/releases", "/api/v1/ons/releases"]
}
}
It needs no key and does not count.response_shape_invalid on a 500#
The API produced an answer its own schema refuses. The body carries "error": "response_shape_invalid", the route, and a retry_hint. The same request returns the same answer until we fix it, so do not retry it in a loop. Modified at 2026-11-14 17:16:40