Skip to main content
POST /v1/search answers a query with web results an agent can read at once: each result’s address, title and snippet, a relevance score, and the passages of the page that answer the query. It holds the request open and returns the results in the same call. One endpoint serves both kinds of search; type chooses between them.

Request

The endpoint takes the fields below at the top level, beside idempotencyKey, priority and webhook, and refuses any other field with 400 VALIDATION_ERROR. It answers with the task as GET /v1/async/task/:id does: task, credits and response, or error when the search failed. A search still running after 30 seconds is answered with its task alone; read it from GET /v1/async/task/:id.

Parameters

Values out of range return 422.

Response

Limits and errors

  • Search does not open a browser, so a page that needs script to show its text returns its snippet. Pass its url to Scrape to read it in full.
  • A PDF is read for its text. A scanned PDF with no text, an encrypted one and one over 32 MiB return their snippet.
  • A search answers as long as one engine does. A search no engine could serve fails the task with that engine’s error, such as BING_HTTP_429.
  • An account can send 5 searches per second, 1 on the free plan, sub-accounts counted together. A search over the rate returns 429 RATE_LIMITED with Retry-After and is not charged. Searches take no concurrency slot. See Credits and limits.
  • Other request errors are listed in Errors.
  • Scrape to read one result’s whole page, script-drawn pages included.
  • Google Search for the results page with its ads and blocks.
  • API reference for the full request and response schema.