Skip to content

Errors

Error responses return an HTTP status code and a JSON object. Handle errors by code; message is human-readable and subject to change.

{ "message": "query is required", "code": "invalid_request" }
Status code Meaning Retry
400 invalid_request Invalid parameter, malformed JSON, or unknown request fields. No, fix the request
401 unauthorized Missing, invalid, expired, or revoked API key. No
402 insufficient_credits Insufficient available credits. After adding credits
403 forbidden Account is suspended. No
404 query_not_found No query with this ID exists on your account. No
404 not_found Unknown route; check the path and HTTP method. No
429 rate_limited Rate limit exceeded. After Retry-After seconds
429 too_many_inflight Too many concurrent unfinished tasks. When active queries finish
429 quota_exceeded Daily task quota reached. After Retry-After seconds
500 internal_error Unexpected server error. Yes, with backoff
503 upstream_unavailable Result is temporarily unavailable for reading. Yes, shortly

Upstream gateway errors (such as 502) may return non-JSON bodies.

Pass an Idempotency-Key header on every query submission. If a network timeout leaves the outcome uncertain, retry with the same key to retrieve the original query without a duplicate charge.

A query can finish while individual tasks fail. Task failures do not return HTTP error codes; inspect tasks[].status (failed or unavailable) and tasks[].error instead. Failed and unavailable tasks are never charged.