Web search
web_searchSearch the web and return structured JSON with organic results, AI overviews, and 'people also ask' questions. Supports geo-targeting, caching, and localization.
Instructions
Google search results parsed into structured JSON. Returns organic results, AI overview (if present), and 'people also ask' questions.
Cost: 1 credit base. No multipliers. Use expiration=0 for always-live results; default expiration=1 (day) reuses cached SERPs. Localize with country, subdivision, city, language, display.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (max 255 chars) | |
| country | No | ISO 3166-1 alpha-2 country code | |
| city | No | City name for geo-targeting | |
| subdivision | No | ISO 3166-2 subdivision code (e.g. 'TN' for Tennessee). Case-insensitive. Ignored if `city` is set. | |
| max_results | No | Max organic results to return (default 10) | |
| expiration | No | Days the cached result is reused (0 = always live; default 1). | |
| language | No | Search language. Common name (e.g. 'spanish'), two-letter ISO code (e.g. 'es'), or Google code. Case-insensitive. | |
| display | No | UI display language. Same format as `language`. |