Extract Google AI Mode
Extract structured data from AI Mode about your brand, products, or any topic across various regions
Overview
The Google AI Mode endpoint extracts structured data from Google AI Mode with automatic detection of places, shopping cards, ads, inline products, videos, and map entries.Request parameters
Required parameters:prompt(string): The query to send to AI Mode (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 withuule. When bothlocationanduuleare omitted, cloro defaultslocationto the requested country’s canonical name (e.g.Portugalforcountry: "PT") so results pin to the country instead of the proxy’s exit IP. Passlocationoruuleexplicitly when you need city- or region-level precisionuule(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),mobileinclude.markdown(boolean): Include markdown-formatted response. Defaults tofalseinclude.html(boolean): Include raw HTML response. Defaults tofalse
Response objects
The response includes the following sections. See each subpage for the full schema and examples.Response schema
Includes common response fields plus:Core response fields
Usage examples
City-level geo-targeting
Uselocation with country to get AI Mode 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.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request parameters for monitoring AI Mode responses
The prompt to send to AI Mode
1 - 10000"What are the best laptops for programming?"
Country/region code for localized response
"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"
Optional flags for including additional response formats