Skip to main content
Piloterr
Back to library

Google AI Mode API

Scrape real-time Google AI Mode answers: text_blocks, references, and shopping_results.

Active3 credits = 1 requestGET/v2/google/search/ai

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

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.

QuickstartLink to Quickstart

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

ParametersLink to Parameters

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

Response fieldsLink to Response fields

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

NotesLink to Notes

  • 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

Main use casesLink to Main use cases

  • 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

Related APIs

Expand your data capabilities with these complementary tools.

Google Flights Search/v2/google/flights-search

Extract detailed flight data from Google Flights for travel, market analysis, and more with our efficient API.

GET1 credit = 1 request
Google Images/v2/google/images

Google Images Scraper API – bringing the power of visual search to your fingertips.

GET1 credit = 1 requestActive
Google Jobs/v2/google/jobs

Extract job listings from Google Careers for enhanced recruitment and market analysis.

GET1 credit = 1 requestActive
Google Maps/v2/google/maps

Extract comprehensive company data from Google Maps for enhanced business insights.

GET3 credits = 1 requestActive
Google News/v2/google/news

Extract real-time news articles from Google News with advanced filtering by topic, location, language, and pagination.

GET1 credit = 1 requestMaintenance
Google Scholar/v2/google/scholar

Extract academic research data from Google Scholar efficiently.

GET1 credit = 1 request
Google Search/v2/google/search

Scrape real-time Google search results with organic listings, knowledge graph, related searches, and advanced filters.

GET1 credit = 1 requestActive
Google Search Autocomplete/v2/google/search/autocomplete

Retrieve real-time Google Search autocomplete suggestions for any query, with support for language and country localization.

GET1 credit = 1 requestActive
Google Shopping/v2/google/shopping

Search Google Shopping and retrieve structured product listings with prices, ratings, merchants, and product IDs.

GET1 credit = 1 requestActive
Google Trends/v2/google/trends

Leverage Google Trends API for real-time market insights and trend analysis.

GET1 credit = 1 request
Google Videos/v2/google/videos

Scrape video results from Google Videos search including YouTube, Reddit, and other video platforms, with location and language support.

GET1 credit = 1 requestActive

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included