google_ai_mode
Retrieve country- and language-specific AI Mode answers with full text, structured blocks, resolved source URLs, and per-paragraph citations for research and monitoring.
Instructions
Google AI Mode Scraper
Real Google AI Mode answers (udm=50 tab) rendered in Android Chrome, for any country and language: full answer, structured blocks, resolved source URLs and per-paragraph citations. From $0.0018 per answer ($0.003 on Free/Starter). Uncited answers are flagged; failed and empty queries are free.
Pricing (pay per event, billed to your Apify account): AI Mode search completed: $0.003; platform usage billed to your account.
Runs on Apify as subimpact/google-ai-mode-scraper.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gl | No | Two-letter country code for the market whose AI Mode answers you want, e.g. ae (UAE), my (Malaysia), sg (Singapore), id (Indonesia), au (Australia), us. Works on both backends. | us |
| hl | No | Language code for Google's interface and answer, e.g. en, ar, ms, id, zh-CN. Write your queries in the same language. In markets where English is not the main search language (e.g. id, th) use the local language: English queries there often get generic/US answers. | en |
| udm50 | No | [legacy http backend only] Appends udm=50. NOTE: the forced shell currently returns no answer browserlessly (Google requires a real browser for the folwr stream) — defaults OFF. | |
| backend | No | android (default) = real AI Mode tab (udm=50) rendered in Android Chrome: full answer, structured blocks, resolved source URLs. http = legacy browserless SERP fetch (only returns AI answers Google embeds in the classic results page; uses gl/hl/location/udm50/retry options below). | android |
| queries | Yes | Queries to get Google AI Mode answers for. Each query is run on the real AI Mode tab (udm=50) in a real Android Chrome browser. | |
| location | No | Google canonical location name, e.g. 'Dubai,Dubai,United Arab Emirates' or 'Kuala Lumpur,Federal Territory of Kuala Lumpur,Malaysia'. Leave empty to use the main city of the chosen country (Dubai, Kuala Lumpur, Singapore, Jakarta, Sydney, ...). Type none to send no location. | |
| _maxItems | No | How many dataset items to return to the model (1-1000, default 50). Truncates the response only; it does not change what the Actor collects or charges for. | |
| skipCache | No | By default, a question that was answered for the same country, language and location in the last hour may be served from our cache (marked cached: true, with cached_at). Turn this on to always fetch a fresh answer from Google, for example when tracking how answers change. Fresh answers take longer under heavy load. | |
| concurrency | No | Parallel queries (1-30). On the android backend this is capped automatically to the size of the browser pool. | |
| _maxChargeUsd | No | Per-run spending cap in USD (default 0.5). Passed to Apify as the run option maxTotalChargeUsd, so the run stops when it reaches this charge. | |
| retryDeferred | No | [legacy http backend only] When the answer is deferred, re-fetch through the folsrch async endpoint. ON by default (recovery rate ~90%). | |
| captureRawHtml | No | [legacy http backend only] Save raw SERP HTML to the key-value store for every query (for corpus/debugging). Adds storage cost. | |
| retryDeferredMaxFetches | No | [legacy http backend only] Upper bound on recovery fetches per query (1-5). |