v1

latestOpenAPI 3.1.02026-07-26180242448.0 KB
Google AI Mode

Google AI Mode search

Get AI-generated search results from Google AI Mode.

Currently returns HTTP 501. As of 2026 Google has repurposed the historical udm=50 parameter — it now opens the Visual Search history prompt, not a dedicated AI Mode surface. There is no standalone /search?udm=50 URL that returns AI-only content anymore; AI Overview blocks are rendered inside regular SERPs instead, gated on query + user + geolocation signals.

Recommended workaround: call /v1/google/search?q=<query>&ai_overview=true. The main SERP endpoint already parses the ai_overview block when Google includes one in the response, and the ai_overview=true flag automatically chases the deferred page_token follow-up fetch when Google serves the overview lazily. That's the exact data this endpoint was originally meant to return.

This route remains registered so the product catalog, docs, and SDKs don't break — it will be re-enabled if/when Google ships a stable dedicated AI Mode surface again.

get/v1/google/ai-mode/search

Query parameters

qstring required

Search query for AI-generated response

Search query for AI-generated response

glstring

Country code

Country code

hlstring

Language code

Language code

include_htmlboolean

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

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

Response

Successful Response

querystring required
languagestring
countrystring
markdownstring nullable

Compact Markdown rendering of the whole answer.

answer_htmlstring nullable

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