Skip to main content
POST
Google AI Mode API

Google AI Mode

AI Mode is the conversational tab in Google Search that writes a complete answer instead of listing links. Send a query and get that answer as Markdown, plus the deduplicated list of sources it cites with titles, domains and excerpts. Track what Google tells people about your category, check whether your pages are among the sources, and compare answers across countries and languages.
Provide a search query in query. The defaults are United States (2840) and English (en). Each request costs 2 credits and returns one row with the answer and its sources.

Standard Result Fields

Task results use the stable SocQ fields below. Source-specific field names and formats are normalized without inferring or enriching values that the source did not provide. To request a smaller field set, use fields for MCP queries, _result_fields for typed tools, or --result-fields in the CLI. Declared fields remain present when their value is null. The following example shows the response format for a completed task. Actual data depends on your query.

Completed Task Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Provide a search query in query. The result is one row with the full Google AI Mode answer in Markdown and every source it cites.

query
string
required

Search query, as typed into the search box.

Minimum string length: 1
callback_url
string<uri>
language
string
Minimum string length: 1
language_code
string
Required string length: 2 - 10
location_code
integer

Search market location code.

Required range: x >= 1
location_name
string

Search market location name.

Minimum string length: 1

Response

Task accepted

code
integer
data
object