Errors and limits

Copy pageView as Markdown

The status codes and error codes the API returns, and the limits a request can reach.

Error format

An error is JSON with an error object. Branch on its code: it is the machine-readable name, and part of the contract.

FieldMeaning
error.codeThe error’s name, one of the codes below.
error.messageWhat happened, in words a person can read.
error.detailsPresent when there is more to say: the failing fields, the limit and what was used, or when it resets.
request_idOn a search that failed after it started: quote it when you write to support.

Status codes

StatusCodeMeaning
400invalid_requestThe request or a setting in it is not valid. The message names each failing field and why, and details lists them.
400unsupported_filterThe way a source is reached could not apply a required filter.
401unauthorizedThe search key or access token is missing, invalid, revoked or expired, the key’s account is not active, or the token lacks the search scope or is sent to an address that takes a key only (GET /v1/account). Send it as Authorization: Bearer $GROUNDER_KEY. Only POST /v1/search answers a request with none, as a free search with no sign-in.
402payment_requiredOnly where x402 is on, for a search with no key. Either the free searches don’t cover it (the day’s 50 are used, the day’s searches with no key or every free search have reached the limit, or it asks for a profile, routing_settings, a deep-research mode or a provider above a free search’s price), or a payment was sent and not taken: it is for another amount or address, has expired, was refused, was already used for a search, or did not go through. PAYMENT-REQUIRED and details.x402 say what the search costs; details.x402.reason says why a payment was not taken, and signup_url and billing_url are the way to an account instead. A search whose payment did not go through returns no results and charges nothing.
403forbiddenA search-only key asked for something past searching: your account or the cited report. It searches and reads the public catalogues. Use a key made for the account, or sign in.
404not_foundNo such route: the API serves no such address or method. openapi.json lists the routes.
409already_subscribedThe account still has a monthly subscription from before credit. Cancel it under Manage billing, then add credit.
409invalid_requestMaking a key (POST /v1/me/keys, the Search keys page) is refused: the account holds 10 active keys, or 100 keys in all, revoked ones included. Revoke a key you no longer use, then make a new one.
410goneThis route was retired.
429daily_limit_reachedThe 50 free searches for this UTC day are used and no credit you added pays for another. They reset at midnight UTC; Retry-After is the seconds left, and details carries daily_limit, used_today and resets_at, and, where you can add credit, credit with the balance and where to add more. A search with no key gets it after its visitor’s 50 for the day, with signup_url and billing_url in details.
429cap_reachedThe monthly cap on searches you set on your account page is reached. It resets on the 1st, UTC; details carries cap, limit, used and resets_at, and Retry-After is the seconds left.
429rate_limitedMore than 120 requests in a minute on one key. details carries limit and reset_at. Making keys has a limit of its own: more than 20 new keys in a minute on one account is refused with this code, with that limit in details. A search with no key has 10 a minute for each visitor, with neither link in details.
429provider_errorA provider rate-limited the search. details.provider_code is rate_limited.
500internal_errorA failure on Grounder’s side that nothing planned for. Try again in a minute.
502billing_unavailableBilling didn’t answer. Try again in a minute.
503no_provider_availableEvery matching source failed. details.calls gives the outcome of each server call.
503topic_unavailableGrounder could not match the question to a source. Try again in a moment. This search was free.
503capacity_reachedFree searches have reached today’s limit across Grounder. They open again at midnight UTC; Retry-After is the seconds left. A search with no key also gets signup_url and billing_url in details, and the day’s searches with no key are limited on their own.
503provider_errorA provider failed or refused the search, with its own reason in details.provider_code.
503internal_errorGrounder couldn’t finish the search: it couldn’t check your free searches or read your routing settings, or something failed on its side. Try again in a minute.
503billing_unavailableBilling isn’t set up yet, or a payment sent with x402 can’t be checked right now. Try again in a minute.

A code can come back with more than one status, so branch on error.code, not on the status.

Limits

LimitValueHow it works
Free searches a day50In a UTC day, which starts again at midnight UTC. Past them, a search is paid from credit you add; without any, the next search returns daily_limit_reached.
Searches paid with x402120 a minuteFor each visitor, on POST /v1/search, once the payment is sent. A search with no key that only asks for its price is one of the 10 a minute below.
Searches with no key50 a day, 10 a minuteFor each visitor, on POST /v1/search alone. Past the day’s, daily_limit_reached; past the minute’s, rate_limited.
Requests a minute120On each key, in a one-minute window. A search answers with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
Monthly capsNone until you set themSet on your account page, for searches. A search past it returns cap_reached.

A search counts once, however many sources or ways it took. The Playground uses recordings and a named-page read is free.