Query Google AI Mode for a natural-language question or search query. The response always includes search_parameters, text_blocks, references, and shopping_results.
This endpoint is active . The response shape may evolve.
Pair with Google Search when you also need organic listings.
POST https://api.piloterr.com/v2/google/search/ai
Content-Type: application/json
{"query": "what is mozilla firefox", "gl": "us", "hl": "en"}
GET and POST are supported. On GET, pass parameters in the query string. On POST, send the same fields as a JSON body.
GET https://api.piloterr.com/v2/google/search/ai?query=what+is+mozilla+firefox&gl=us&hl=en
Parameter
Type
Required
Description
query
string
yes
Question or search query for Google AI Mode.
location
string
no
City-level location (mutually exclusive with uule)
uule
string
no
Google-encoded location (mutually exclusive with location)
gl
string
no
2-letter country code e.g. us, fr, gb
hl
string
no
2-letter language code e.g. en, fr, de
Field
Type
Description
search_parameters.engine
string
Always google_ai_mode
search_parameters.q
string
Echoed search query
search_parameters.gl
string
Country code
search_parameters.hl
string
Language code
search_parameters.location
string
Human-readable location when set
search_parameters.uule
string
Encoded location when set
text_blocks[]
array
Always present. Types: paragraph, heading, list, ordered_list
text_blocks[].snippet
string
Block text. Headings also include level
text_blocks[].list[]
array
Items for list and ordered_list. Optional title, snippet, snippet_links, reference_indexes, shopping_result
reconstructed_markdown
string
Markdown reconstruction. Omitted when the answer is empty
references[]
array
Always present
references[].title
string
Source title
references[].link
string
Cited page URL. A Google redirect is resolved; the destination is not re-encoded
references[].source
string
Source site name
references[].index
number
0-based citation index
references[].snippet
string
Source excerpt, when present
references[].source_icon
string
Favicon URL, when present
references[].thumbnail
string
Thumbnail URL, when present
shopping_results[]
array
Always present. Product cards, or []
shopping_results[].title
string
Product name
shopping_results[].product_link
string
Product URL as returned, often a Google Shopping prds link
shopping_results[].source
string
Seller or source label, when present
shopping_results[].thumbnail
string
Image URL, when present
shopping_results[].price
string
Display price, when Google includes it
shopping_results[].extracted_price
number
Numeric price, when present
shopping_results[].old_price
string
Previous display price, when present
shopping_results[].extracted_old_price
number
Numeric previous price, when present
shopping_results[].rating
number
Star rating, when present
shopping_results[].reviews
number
Review count, when present
shopping_results[].index
number
0-based product index
error
string
Only when the AI Mode page could not be fetched
Status: active. Response structure may evolve.
Cost: 3 credits per call
location and uule are mutually exclusive: use only one at a time
Unset location / uule are omitted from search_parameters
A fetched page with no answer content returns empty text_blocks, references, and shopping_results, without error
HTTP 400 when query is missing
HTTP 500 on fetch or parse failure
Archive AI Mode answers for a keyword set
Extract cited domains and links for citation checks
Pull structured summaries for research pipelines
Compare AI Mode answers over time, country, and language
This is not an official API. Piloterr is an independent data provider and is not affiliated with, endorsed by, or sponsored by Autom or its owners. All trademarks belong to their respective owners.