Error response format
All API errors return both anerror field and a message field:
code field, a stable machine-readable identifier such as invalid_key or rate_limited. The codes are listed under each status below.
Status codes
The fetch endpoint can also return
422 (page-level fetch failure: not_found, site_gone, blocked, unsupported, or unextractable) and 503 (temporarily unavailable — retry). See content retrieval error handling.
400 — Bad request
400 — Bad request
Causes: Missing
q parameter, invalid parameter values, malformed JSON array in q.Example messages:Missing required parameter: qInvalid value for 'searchMode'Invalid value for 'effort'. Must be one of: low, medium, high, max.Request body is not valid JSON(POST requests)
413 / 415 — Request body rejected
413 / 415 — Request body rejected
Causes: A POST body larger than 256 kB (413), or a body that isn’t UTF-8 JSON (415).Fix: Send UTF-8 JSON under 256 kB. For large multi-query requests, split them into separate calls.
402 — Insufficient credits
402 — Insufficient credits
Cause: Your account has no remaining credits.Code:
insufficient_creditsMessage: Your account has insufficient credits. Please add credits to continue.If your email is not verified yet, the message asks you to verify it first. Adding credit needs a verified email. Verifying and adding a payment method also gets you the free credit described in pricing.Fix: Add credits to your account. If the message asks you to verify your email, open the link in the verification email, then add a payment method or credits. You can send a new verification email from the API Console.403 — Forbidden
403 — Forbidden
Codes:
verification_required: verify your email to continue.email_undeliverable: the account’s email can’t receive mail. Sign up with a valid email.
429 — Too many requests
429 — Too many requests
Cause: Too many requests in the current time window.Codes:
rate_limited: too many requests per second.unverified_rate_limited: lower limits apply until you verify your email.repeat_query: the same request was sent too many times in a short period.cooling_off: the key is paused briefly after many refused requests.
Retry-After header, then retry. See rate limits for monitoring usage.500 — Internal server error
500 — Internal server error
Cause: An unexpected error on our side.Fix: Retry with exponential backoff. If it persists, contact support.
Handling errors in code
Check the HTTP status code before parsing the response body:Retry with exponential backoff
For transient errors (429, 500, 503), retry with increasing delays:
Troubleshooting
Next steps
Rate limits
Rate limit headers and monitoring.
Authentication
API key management and security.

