Extract Google Search
Extract structured data from Google Search including organic results, People Also Ask, related searches, and optional AI Overview
Overview
The Google Search endpoint extracts structured data from Google Search results, including organic results, sponsored ads, People Also Ask questions, related searches, and optional AI Overview data.Request parameters
Required parameters:query(string): The search query to execute on Google (1-10,000 characters)
country(string): ISO 3166-1 alpha-2 country code for localized results. Defaults toUSlocation(string): Google canonical location name for geo-targeted results (e.g.,New York,New York,United States). See Google’s geo target list for all ~100,000 supported locations. Mutually exclusive withuuleuule(string): Pre-encoded Google UULE string for precise geo-targeting. Use this when you have a pre-built UULE value instead of a location name. Mutually exclusive withlocationdevice(string): Device type for search results. Options:desktop(default),mobile.pages(integer): Number of search results pages to scrape (1-10). Defaults to1include.html(boolean): Include raw HTML response. Defaults tofalseinclude.aioverview(object): Include Google AI Overview. Setmarkdown: truefor markdown formatting. Defaults tofalse(not included)include.paaAioverview(boolean): Hydrate AI-Overview-type People Also Ask items with markdown content and cited sources. Defaults tofalse
include.aioverview adds +2 credits. Enabling include.paaAioverview adds +2 credits. Using both adds +4 credits total. Each page beyond the first adds +2 credits (e.g. pages: 3 adds +4, pages: 10 adds +18). See providers for full pricing details.Requesting AI Overview
To request AI Overview data, nest theaioverview object under the include parameter:
markdown(boolean): Include AI Overview formatted as Markdown. Defaults tofalse- When
aioverviewis not included in the request, no AI Overview data will be returned
Error handling
Response objects
The response includes the following sections. See each subpage for the full schema and examples.| Section | Field | Description |
|---|---|---|
| Organic results | result.organicResults | Standard non-paid search results from Google |
| Sponsored ads | result.ads | Paid ad placements with sitelinks |
| People Also Ask | result.peopleAlsoAsk | Related questions with link or AI Overview answers |
| Related searches | result.relatedSearches | Related query suggestions |
| AI Overview | result.aioverview | Google’s AI-generated summary with sources, videos, and ads (when requested) |
result.html is also returned when include.html is true.
Usage examples
Scrape multiple pages
peopleAlsoAsk results include a page field indicating which page each question appeared on.
City-level geo-targeting
Uselocation with country to get search results targeted to a specific city or region. The location parameter accepts Google canonical location names:
UULE geo-targeting
For advanced geo-targeting, useuule with a pre-encoded Google UULE string instead of location. This is useful when you generate your own UULE values for precise location control:
location and uule are mutually exclusive: provide one or the other, not both. Use location for city-level targeting with canonical names, and uule when you need to supply a pre-encoded UULE string.Hydrate People Also Ask with AI Overview content
To get AI-Overview-type People Also Ask items with markdown content and cited sources:Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request parameters for monitoring Google search results
The search query to execute on Google
1 - 10000"best laptops for programming"
ISO 3166-1 alpha-2 country code for localized search results
"US"
Google canonical location name for geo-targeted results, in comma-separated format: 'City,Region,Country' (see https://developers.google.com/google-ads/api/reference/data/geotargets for all ~100,000 supported locations). Use alongside 'country' for city-level precision. Mutually exclusive with 'uule' — provide one or the other, not both.
"New York,New York,United States"
Pre-encoded Google UULE string for precise geo-targeting. Use this when you have a pre-built UULE value instead of a location name. Mutually exclusive with 'location' — provide one or the other, not both.
"w+CAIQICIeV2VzdCBOZXcgWW9yayxOZXcgSmVyc2V5"
Device type for search results
desktop, mobile "desktop"
Number of search results pages to scrape (1-10)
1 <= x <= 103
Optional flags for including additional response data