Search Google
webscraping_ai_serpSearch Google and get parsed JSON results—titles, links, snippets, related searches, and pagination—from a fixed location so repeat searches and later pages stay consistent.
Instructions
Search Google and get parsed results as JSON: organic_results (position, title, link, domain, displayed_link, snippet, date), related_searches, search_information (including spelling corrections) and pagination. 10 results per page; position restarts at 1 on every page. Every search runs from one fixed location (location, lat and lon, or uule; otherwise the capital of the gl country), so repeats and later pages stay consistent. pages fetches up to 5 consecutive pages in one call as one de-duplicated list. Priced per results page returned (see https://webscraping.ai/docs#serp); failed searches are not charged. Use it to find pages, then read them with webscraping_ai_text or the other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query. | |
| gl | No | Two-letter country code for the search, e.g. us, gb, de. Defaults to the country of location, lat/lon or uule, otherwise us. | |
| hl | No | Two-letter language code for the results, e.g. en, de, fr (en by default). | |
| lat | No | Latitude of the search origin in decimal degrees, from -90 to 90. Requires lon; cannot be combined with location or uule. | |
| lon | No | Longitude of the search origin in decimal degrees, from -180 to 180. Requires lat; cannot be combined with location or uule. | |
| page | No | Results page number, 10 results per page (1 by default). | |
| uule | No | Google-encoded location (w+CAIQICI… or a+…). Cannot be combined with location, lat or lon. | |
| pages | No | Number of consecutive results pages to fetch in one call, starting at page, from 1 to 5 (1 by default). Duplicates across pages are removed, position counts through the combined list and each result gets a page field. | |
| engine | No | Search engine to query (google by default). | |
| radius | No | Radius in meters around location or lat/lon, from 1 to 1000. | |
| location | No | Where the search runs from: a location name such as Austin,Texas,United States or Austin, TX, or an id from webscraping_ai_serp_locations. Large cities also match local names, e.g. Москва. An unknown name returns an error and is not charged. Cannot be combined with uule, lat or lon. | |
| disable_content_sandboxing | No | Return the raw result without the external-content security boundaries that guard against prompt injection (false by default). |