Errors and limits
Copy pageView as MarkdownThe 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.
| Field | Meaning |
|---|---|
error.code | The error’s name, one of the codes below. |
error.message | What happened, in words a person can read. |
error.details | Present when there is more to say: the failing fields, the limit and what was used, or when it resets. |
request_id | On a search that failed after it started: quote it when you write to support. |
Status codes
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The request or a setting in it is not valid. The message names each failing field and why, and details lists them. |
| 400 | unsupported_filter | The way a source is reached could not apply a required filter. |
| 401 | unauthorized | The 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. |
| 402 | payment_required | Only 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. |
| 403 | forbidden | A 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. |
| 404 | not_found | No such route: the API serves no such address or method. openapi.json lists the routes. |
| 409 | already_subscribed | The account still has a monthly subscription from before credit. Cancel it under Manage billing, then add credit. |
| 409 | invalid_request | Making 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. |
| 410 | gone | This route was retired. |
| 429 | daily_limit_reached | The 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. |
| 429 | cap_reached | The 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. |
| 429 | rate_limited | More 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. |
| 429 | provider_error | A provider rate-limited the search. details.provider_code is rate_limited. |
| 500 | internal_error | A failure on Grounder’s side that nothing planned for. Try again in a minute. |
| 502 | billing_unavailable | Billing didn’t answer. Try again in a minute. |
| 503 | no_provider_available | Every matching source failed. details.calls gives the outcome of each server call. |
| 503 | topic_unavailable | Grounder could not match the question to a source. Try again in a moment. This search was free. |
| 503 | capacity_reached | Free 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. |
| 503 | provider_error | A provider failed or refused the search, with its own reason in details.provider_code. |
| 503 | internal_error | Grounder 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. |
| 503 | billing_unavailable | Billing 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
| Limit | Value | How it works |
|---|---|---|
| Free searches a day | 50 | In 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 x402 | 120 a minute | For 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 key | 50 a day, 10 a minute | For each visitor, on POST /v1/search alone. Past the day’s, daily_limit_reached; past the minute’s, rate_limited. |
| Requests a minute | 120 | On each key, in a one-minute window. A search answers with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. |
| Monthly caps | None until you set them | Set 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.