Skip to main content
GET
Google AI Mode search

Authorizations

x-api-key
string
header
required

Query Parameters

q
string
required

Search query for AI-generated response

gl
string
default:us

Country code

hl
string
default:en

Language code

include_html
boolean
default:true

Include the raw answer_html body (can be 100s of KB). Set false for just text_blocks + markdown.

Response

Successful Response

Response for GET /api/v1/ai-mode/search.

query
string
required
text_blocks
AiTextBlock · object[]
references
AiReference · object[]
language
string
default:en
country
string
default:us
markdown
string | null

Compact Markdown rendering of the whole answer.

answer_html
string | null

Raw answer body HTML (script/style stripped). Omitted when include_html=false.