Web search
web_searchSearch the web and get Google's top results as clean JSON: title, URL, snippet and date for each, plus the direct answer when Google shows one. Optional filters: freshness (past hour, day, week, month or year), include_domains or exclude_domains (up to 5 sites each), and type "news" for news articles with publisher and date. Up to 10 results. To get the pages' full text in the same call, use search_and_read.
$0.003 USDC per call over x402. Failed calls cost nothing. Call without payment to get a quote.
When to use: You need sources or facts and don't have URLs yet; the snippets often answer it on their own. Use instead: search_and_read when you also need the full text of the top pages in the same call; crypto_news for crypto coverage with a mood read. Parameters: query is required. num: 1-10 results, default 5. country: two-letter code for local results. freshness, include_domains and exclude_domains narrow the results and can combine; very narrow filters can return nothing (refused free). type "news" searches news articles only. Returns: results[] with position, title, url, snippet and date (publisher for news), the answer box when Google shows one, and the filters applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num | No | How many results, 1-10 (default 5). | |
| type | No | "news" searches news articles instead of the whole web. | |
| query | Yes | What to search for. | |
| country | No | Two-letter country code, e.g. "us". | |
| payment | No | Base64 x402 payment payload. Omit it to receive a quote; sign that and call again. | |
| freshness | No | Only results from the past hour, day, week, month or year. | |
| exclude_domains | No | Never results from these sites. | |
| include_domains | No | Only results from these sites, e.g. ["reuters.com"]. |