Skip to main content

Overview

Use Web Search when you need ranked search results and want to decide what to do with them yourself. It does not call an LLM. For generated answers with citations, use the Answer API. For full page content after search, combine Web Search with the Scraper API.

Endpoint

POST /api/v2/web_search

Quickstart

Search Types

Request Parameters

HTTP requests use snake_case. The TypeScript SDK uses camelCase, for example searchType and domainFilter.

Response

Common Patterns

Search then scrape

Pricing

Web Search costs $0.002 per request.

Errors

See Errors & Refunds for the shared error format.

More Examples

Search + Scrape Pipeline

Find pages, scrape full content, then answer with sources.

Answer API

Use search results directly with an LLM.