Menu

Search

Search errors and warnings

The few ways a search fails, which to retry, and the warnings that are not failures.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

A search that fails answers with the one error shape every endpoint uses, and is never charged.

Status and codeWhenDo
400 INVALID_PARAMA field the API does not take, a value out of range, or two fields that cannot go togetherFix the request. error.message names the field
400 UNSUPPORTED_OPTIONAn option this API version does not offerLeave it out
401 AUTH_MISSING_KEY, 401 AUTH_INVALID_KEYNo Authorization header, or a key that is malformed, revoked or expiredSend a valid key
403 QUOTA_EXCEEDEDThe key has spent its monthly cap, or the call could cost more than the key has leftRaise the cap in the dashboard, or use another key
404 SPACE_NOT_FOUNDSpaces: space names no Space you can use, because it does not exist or belongs to another teamCheck the id or slug; a curated Space takes curated: before its slug
429 RATE_LIMITEDOver one of the plan's per-minute limitsWait Retry-After seconds, then retry
429 CAPACITYThe service has no room at this moment, whatever your planWait Retry-After seconds, then retry
429 INSUFFICIENT_CREDITSThe balance does not cover the most the call could costDo not retry. Add credits
500 INTERNALSomething failed on our sideRetry with a growing pause; send us the request_id if it persists
502 SEARCH_UNAVAILABLESearch could not answerWait Retry-After seconds, then retry

The rules between fields that make an INVALID_PARAM are listed under Parameters. Errors has every code of the API, a retry loop in three languages, and the error classes of the SDKs.

Warnings are not errors

A search that worked can still have something to tell you. It answers 200, and warnings lists what happened:

These are the ones met most often; Parameters lists every warning.

Read warnings before trusting that a filter held. Warnings are not errors has the shape.

Over MCP and in the SDKs

The search tool of the MCP server reports the same codes in its answer. The Python and TypeScript clients raise one error class per kind of failure and retry the ones worth retrying.

This page as Markdown ยท llms.txt