# Google AI Overview Scraper (`datahamster/google-ai-overview-scraper`) Actor

Google AI Overview scraper: for many queries and countries in one run, see if Google shows an AI Overview, its full text, sections and bullets, cited sources (title, domain, URL, position) and People also ask. Track if your domain is cited and get alerts when that changes.

- **URL**: https://apify.com/datahamster/google-ai-overview-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** SEO tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.68 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google AI Overview Scraper

Google AI Overviews for a list of queries in one or more countries: one row per query and country that says whether Google showed an AI Overview, its full text, the same answer split into sections and bullets, every cited source with its title, domain, page URL and position, and the People also ask questions. Add your own domains and every row also says whether the AI Overview cites them and at which position.

**Try it:** the prefilled example returns 10 rows in about 31 seconds and costs about $0.047 in total ($0.028 of GOOGLE_SERP proxy usage plus 9 AI Overview results). Results cost $2.10 per 1,000 AI Overviews, plus about $2.50 per 1,000 checks of GOOGLE_SERP usage paid by you (every query x country, with or without an AI Overview).

Coverage: one Google results page per query and country, read through Apify's own GOOGLE_SERP proxy with one plain request, no browser. On 2026-11-18 Google showed an AI Overview for 85% of 84 test queries in 14 countries (us, gb, ca, au, in, sg, de, fr, es, it, pl, br, jp, nl), in the country's own language. Google cites some sources only by site: the page `url` is filled for 55% of sources (423 of 770 in our tests), `domain` and `siteUrl` always. 48 countries are supported.

**Why this one** (compared with apify/google-ai-overviews-scraper and johnvc/Google-AI-Overview-API, the two most-used AI Overview actors, checked 2026-11-18):

- **Many queries in many countries in one run.** `queries` x `countries` checks every query in every country, each on its own Google domain, location and language. apify/google-ai-overviews-scraper takes only a list of queries, with no country or language field. johnvc's takes one `gl` country per run. Measured: 84 query x country checks in 14 countries in 3 runs, no request blocked.
- **Citation tracking with alerts.** Put your domains in `targetDomains` and each row says `targetCited`, `targetBestPosition`, which of your pages are cited (`targetCitations` with URL and position) and whether the answer text names your brand (`targetMentionedInText`). In monitor mode a scheduled task returns only the queries whose AI Overview appeared or disappeared, or where your domain entered or left the sources, with a webhook or Telegram alert. johnvc's README says "Each run is a snapshot. The Actor returns rows; it does not keep a history for you". The apify actor has no domain field at all.
- **People also ask and structured sections.** Every row carries Google's People also ask questions and the answer split into `sections` (heading, text, bullets) and `textBlocks` (paragraphs, lists, tables with the sources each block cites). Neither leader returns People also ask.

### What you get

Real rows from a run of the prefilled input (5 queries, United States and United Kingdom, `targetDomains: ["nordvpn.com", "hubspot.com"]`, 2026-11-19):

| query | country | AI Overview | sources | your domain cited | best position | named in text |
|---|---|---|---|---|---|---|
| what is a vpn | us | shown | 9 | yes | 1 | nordvpn.com |
| best crm for small business | us | shown | 10 | yes | 2 | hubspot.com |
| how to start a podcast | us | shown | 13 | no | | |
| what is a vpn | gb | shown | 12 | yes | 2 | |
| best crm for small business | gb | shown | 7 | no | | hubspot.com |
| how to start a podcast | gb | pending | 0 | unknown | | |

One row, shortened (`textBlocks` and the last sources left out):

```json
{
  "query": "what is a vpn",
  "countryCode": "us",
  "languageCode": "en",
  "aiOverviewStatus": "shown",
  "hasAiOverview": true,
  "text": "A VPN (virtual private network) creates an encrypted connection, often called a \"tunnel\", between your device and a remote server over the internet. ...\n## How It Works\n- Encryption & Tunneling: Your device encrypts data before sending it through a secure tunnel to a VPN server.\n- IP Masking: The VPN server forwards your request to the destination website, which sees the server's IP address and location instead of yours. ...",
  "sections": [
    {"heading": "How It Works", "text": "", "bullets": ["Encryption & Tunneling: ...", "IP Masking: ...", "Trust Shift: ..."]},
    {"heading": "Common Usage Examples", "text": "", "bullets": ["Public Wi-Fi Protection: ...", "Remote Work & Business Networks: ...", "Location & Content Access: ...", "Avoiding ISP Throttling: ..."]}
  ],
  "sources": [
    {"position": 1, "title": "What is a VPN? Virtual private network meaning", "siteName": "NordVPN", "domain": "nordvpn.com", "url": "https://nordvpn.com/what-is-a-vpn/", "siteUrl": "https://nordvpn.com", "snippet": "A VPN (virtual private network) creates an encrypted tunnel over the internet, ..."},
    {"position": 2, "title": "What is a VPN? How VPNs work & when to use one | Proton VPN", "siteName": "Proton VPN", "domain": "protonvpn.com", "url": "https://protonvpn.com/what-is-a-vpn", "siteUrl": "https://protonvpn.com", "snippet": "# What is a VPN? VPN stands for virtual private network ..."}
  ],
  "sourceCount": 9,
  "sourcesStatus": "found",
  "citedDomains": ["nordvpn.com", "protonvpn.com", "surfshark.com", "youtube.com", "fortinet.com", "reddit.com"],
  "targetDomains": ["nordvpn.com", "hubspot.com"],
  "targetCited": true,
  "targetBestPosition": 1,
  "targetCitations": [{"domain": "nordvpn.com", "position": 1, "title": "What is a VPN? Virtual private network meaning", "url": "https://nordvpn.com/what-is-a-vpn/"}],
  "targetMentionedInText": ["nordvpn.com"],
  "peopleAlsoAsk": ["Is there a downside to using a VPN?", "How do I turn on VPN?", "Can I use a VPN for free?", "..."],
  "requests": 1,
  "searchUrl": "https://www.google.com/search?q=what+is+a+vpn&hl=en&gl=us&uule=w+CAIQICINVW5pdGVkIFN0YXRlcw"
}
```

`aiOverviewStatus` is `shown`, `not_shown` (Google showed none for this query) or `pending` (Google deferred the answer and the second request did not bring an overview either, so the actor cannot tell whether one exists). Pending rows are not charged as results. Some queries come back deferred on most requests, mostly commercial ones such as `best crm for small business` or `best running shoes`; expect those to stay pending often.

### Use cases

- AI search visibility (AEO, GEO): which of your money keywords trigger an AI Overview and whether it cites you, in every market you sell in.
- Competitor citations: `citedDomains` and `sources` show who Google cites instead of you.
- Content research: what the AI Overview says, in which structure, and which pages it trusts.
- Alerts: a daily monitor task tells you the day a query starts showing an AI Overview, or the day your domain drops out of it.

### Input

| Field | What it does |
|---|---|
| `queries` | One Google search per line. Every query runs in every country. |
| `countries` | One or more of 48 Google countries (default `us`). |
| `languageCode` | Optional interface language for every country (e.g. `en`). Empty = each country's own language. |
| `targetDomains` | Optional: your domains, e.g. `hubspot.com`. Subdomains count. |
| `retryPending` | Ask once more when Google defers the answer (default on; the extra request is one more GOOGLE_SERP request in usage). |
| `concurrency` | Searches at the same time, 1-10 (default 10). |
| `maxItems` | Stop after this many query x country checks. |
| `mode` | `scrape` (default) or `monitor`. |

Monitor mode: run it as a saved task on a schedule. The first run records the state of every query x country and returns nothing. Later runs return a row only when `hasAiOverview` or `targetCited` changed (a loss, overview gone or your domain no longer cited, is reported only after a second fresh request agrees, because overviews flicker between requests), with `changeType: "changed"`, `changedFields` and the `previous` values. A query or country you add later is recorded silently on its first run and reported from then on; changing `targetDomains` starts a new baseline. A deferred (`pending`) answer is never treated as a disappearance. Optional `webhookUrl` or Telegram fields send each change. If a monitor run dies without releasing its state, the next runs end as `overlapping_run` until that run's timeout passes; give the task a new `monitorStateId` to start fresh.

### Pricing

- $2.10 per 1,000 AI Overviews found (`result`); $1.89 on Silver, $1.68 on Gold and above. Rows for queries without an AI Overview, or still pending, are not charged as results, but their request still costs GOOGLE_SERP usage.
- Monitor mode: $0.005 per run (`monitor-check`) and $2.10 per 1,000 changed rows.
- Platform usage is paid by you: mostly the GOOGLE_SERP proxy at about $0.0025 per request, so about $2.50 per 1,000 checks (one request per query and country, two when Google deferred the answer, two in monitor mode when a loss is rechecked), plus a little compute. All in, a found AI Overview costs about $0.0046 and a check without one about $0.0025. The leaders' Store prices include their platform usage, so compare totals: apify/google-ai-overviews-scraper charges $0.003 per found overview and johnvc/Google-AI-Overview-API $0.0027 per retrieval on the free plan.

If the actor saved you time, a short review on the Store page helps other users find it.

### Related actors

- [Google Search Results Scraper](https://apify.com/datahamster/google-search-results-scraper) for the organic results, ads and rank tracking of the same keywords.
- [Google Trends Scraper](https://apify.com/datahamster/google-trends-scraper) to see which of your keywords are growing.
- [Google News Feed](https://apify.com/datahamster/google-news-feed) for news on your brand and topics.
- [Website to Markdown](https://apify.com/datahamster/website-to-markdown) to fetch the cited pages as clean text.

### Limits

- One results page per query and country. Google decides per request whether to show an AI Overview, and the same query can show one today and none tomorrow; use monitor mode for trends, not single checks.
- Now and then Google shows an AI Overview whose source records cannot be read. Such a row has `sourcesStatus: "missing"`, empty `sources` and `targetCited: null` (unknown, never reported as a lost citation in monitor mode).
- Google cites some sources only by site, linked through an opaque redirect. Those sources have `domain` and `siteUrl` but `url: null`. For YouTube and Reddit sources only the site name is kept, never the channel or user name.
- People also ask holds the questions; the answers load later in a browser and are not included.
- A run where no query had an AI Overview ends with `emptyReason: "no_matches"` in RUN_SUMMARY; its rows are still in the dataset.
- The AIO_STATS record in the key-value store counts checks, overviews shown, requests and blocked searches.

### FAQ

**Is this Google AI Mode?** No. This is the AI Overview on the normal results page. Google now writes it with the same model, so the text can end with a follow-up question.

**Which countries have AI Overviews?** We saw them in all 14 countries we tested, in the local language. A country without them returns `not_shown` rows (no result charge; the check still uses GOOGLE_SERP usage).

### Changelog

- 0.1 (2026-11-18): first version. Queries x countries, sections and bullets, sources with URL and position, People also ask, domain citation tracking, monitor mode.

# Actor input Schema

## `queries` (type: `array`):

One Google search per line, e.g. "what is a vpn", "best crm for small business". Every query runs in every country below. Repeated queries run once.

## `countries` (type: `array`):

One or more Google countries. Each query runs once per country on that country's Google domain and location. Example: us, gb, in.

## `languageCode` (type: `string`):

Optional Google interface language (hl) for every country, e.g. en, de, pt-BR. Empty = each country's own language (de for Germany, pl for Poland). AI Overviews are written in this language.

## `targetDomains` (type: `array`):

Optional domains to track, e.g. hubspot.com. Each row then says whether the AI Overview cites them (targetCited, targetCitations with position and URL, targetBestPosition) and whether the answer text names them (targetMentionedInText). Subdomains count.

## `retryPending` (type: `boolean`):

true = when Google defers an AI Overview (the page shows only a 'Thinking' placeholder), ask for the page once more. The extra request costs one more GOOGLE_SERP proxy request in platform usage. Only a real overview on that second request counts; otherwise the row stays aiOverviewStatus "pending" and is not charged as a result.

## `concurrency` (type: `integer`):

How many searches run at the same time (1-10). Example: 10.

## `saveHtmlToKeyValueStore` (type: `boolean`):

true = store the raw HTML of every results page in the run's key-value store (for debugging).

## `maxItems` (type: `integer`):

Stop after this many query x country checks. Only checks with an AI Overview are charged as results; every check uses GOOGLE_SERP usage. Example: 200.

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "queries": [
    "what is a vpn",
    "best crm for small business",
    "how to start a podcast",
    "what causes inflation",
    "how to lower cholesterol naturally"
  ],
  "countries": [
    "us",
    "gb"
  ],
  "targetDomains": [
    "nordvpn.com",
    "hubspot.com"
  ],
  "retryPending": true,
  "concurrency": 10,
  "saveHtmlToKeyValueStore": false,
  "maxItems": 10,
  "mode": "scrape"
}
```

# Actor output Schema

## `results` (type: `string`):

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "what is a vpn",
        "best crm for small business",
        "how to start a podcast",
        "what causes inflation",
        "how to lower cholesterol naturally"
    ],
    "countries": [
        "us",
        "gb"
    ],
    "targetDomains": [
        "nordvpn.com",
        "hubspot.com"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/google-ai-overview-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": [
        "what is a vpn",
        "best crm for small business",
        "how to start a podcast",
        "what causes inflation",
        "how to lower cholesterol naturally",
    ],
    "countries": [
        "us",
        "gb",
    ],
    "targetDomains": [
        "nordvpn.com",
        "hubspot.com",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/google-ai-overview-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "what is a vpn",
    "best crm for small business",
    "how to start a podcast",
    "what causes inflation",
    "how to lower cholesterol naturally"
  ],
  "countries": [
    "us",
    "gb"
  ],
  "targetDomains": [
    "nordvpn.com",
    "hubspot.com"
  ],
  "maxItems": 10
}' |
apify call datahamster/google-ai-overview-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datahamster/google-ai-overview-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oCvw6nujRqxy1LVZa/builds/bvPPWC5rRe4zPjMUl/openapi.json
