Skip to main content
POST
Ask Google AI Mode a question and get its answer with the sources it cites
Sends a question to Google AI Mode a question and returns its answer with the sources it cites.

Request

query is required.

Response

If successful, the response body contains the standard envelope. data contains Google’s answer in answer and the pages it cites in sources. The following example is a real response, truncated: each list shows one item and long strings are cut.
For every field, see the response schema on this page.

Optional parameters

Billing

Each successful request consumes 2 credits, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

This method is not paginated. A single request returns the complete result.
  • Google Search: Accepts the same query. Searches Google and returns results, the AI Overview, the knowledge panel and related questions.

Authorizations

Authorization
string
header
required

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

Body

application/json
query
string
required

The question to ask, worded the way a person would ask it.

Required string length: 1 - 2000
country
string

ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted.

Pattern: ^[A-Za-z]{2}$
language
string

Two-letter language code like en or pt. Any case is accepted.

Pattern: ^[A-Za-z]{2}$

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required