# Google AI Overview Scraper - $2 / 1000 Overviews (`scrapeunblocker/google-ai-overview-scraper`) Actor

Get Google's AI Overview for any search as clean JSON: the full answer as text and Markdown (headings, lists, formulas) plus every cited source with its real page URL, title, site and snippet. Track brand visibility in AI answers. Pay only for searches that show an overview: $2 per 1000.

- **URL**: https://apify.com/scrapeunblocker/google-ai-overview-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 ai overviews

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Get **Google's AI Overview** - the AI-written answer at the top of Google search - for any search, as clean, structured JSON. You get the **full answer as plain text and as Markdown** (headings, bullet and nested lists, formulas as LaTeX) and **every source it cites, with the real page URL**, title, site name, domain and snippet. Use it to track whether your brand, site or competitors are cited in AI answers, country by country. No Google account, API key or proxies to set up.

### Features

- **The whole answer** - text and Markdown with headings and nested lists, without Google's interface chrome ("AI Mode replied", "View all", citation buttons).
- **Cited sources with real URLs** - Google links its sources through redirect links; you get the actual page URL, title, site name, domain and snippet.
- **Cited sites at a glance** - `sources`: the list of domains the overview cites, in Google's order.
- **Any country** - AI Overviews and their sources differ by country; pick the one you track.
- **Compare with rankings** - optionally add the organic results of the same search, to see who is cited vs who ranks.
- **Pay only for overviews** - searches where Google shows no AI Overview are listed in the `NO_AI_OVERVIEW` record and are not billed (unless you ask for those rows).

### Use cases

- **AI visibility / GEO tracking** - check every week whether Google's AI cites your site for your target questions.
- **Competitor monitoring** - see which competitors the AI recommends and quotes.
- **Content research** - learn which pages and formats Google's AI trusts for a topic.
- **SEO reporting** - report AI Overview presence and citations next to classic rankings.
- **Datasets** - collect AI answers and their sources for analysis.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `keywords` | array | `["how do solar panels work"]` | Google searches to check. |
| `country` | string | empty | ISO-2 country to search from, e.g. `US`. |
| `includeOrganicResults` | boolean | `false` | Add the organic results of the same search. |
| `includeSearchesWithoutOverview` | boolean | `false` | Also return rows (`hasAiOverview: false`) for searches without an overview; billed. |
| `concurrency` | integer | `3` | Searches run at the same time (1-5). |

#### Example input

```json
{
  "keywords": ["how do solar panels work", "best crm for small business", "what is web scraping"],
  "country": "US",
  "includeOrganicResults": true
}
```

### Output

One dataset item per search that showed an AI Overview (Markdown and references shortened here):

```json
{
  "keyword": "how do solar panels work",
  "country": "US",
  "hasAiOverview": true,
  "text": "Solar panels convert sunlight into usable electricity using semiconductor cells through a process called the photovoltaic effect.\nHow Solar Cells Work\nSilicon Layers: Each solar panel contains many individual solar cells made of silicon...",
  "markdown": "Solar panels convert sunlight into usable electricity using semiconductor cells through a process called the photovoltaic effect.\n\n### How Solar Cells Work\n\n- Silicon Layers: Each solar panel contains many individual solar cells made of silicon...\n- Electric Field: Where these two layers meet, they form a junction with an internal electric field.",
  "references": [
    {
      "title": "How Do Solar Panels Work? Solar Power Explained | EnergySage",
      "url": "https://www.energysage.com/solar/solar-panels-work/",
      "source": "EnergySage",
      "domain": "energysage.com",
      "snippet": "Core Process: Solar panels utilize silicon solar cells to absorb photons from sunlight, generating direct current (DC) electricity..."
    },
    {
      "title": "Eli5, How the hell do solar panels work? : r/explainlikeimfive - Reddit",
      "url": "https://www.reddit.com/r/explainlikeimfive/comments/13ycao0/eli5_how_the_hell_do_solar_panels_work/",
      "source": "Reddit",
      "domain": "reddit.com",
      "snippet": "Silicon Doping and Electron Flow: Solar panels utilize two layers of silicon, one N-doped (with extra electrons) and one P-doped..."
    }
  ],
  "referencesCount": 12,
  "sources": ["energysage.com", "goodenergy.co.uk", "reddit.com", "en.wikipedia.org", "nationalgrid.com", "maxeon.com", "environmentamerica.org", "iberdrola.com", "energy.gov"]
}
```

A cited card whose page URL Google does not expose keeps its title, site and domain with `url: null`. Searches that could not be run go to the `ERRORS` record in the run's key-value store, with the reason. They are not billed.

### Pricing

**$2 per 1000 AI Overviews** (pay per result) - one dataset item is one search with an AI Overview. Searches without an overview and failed searches are free (rows for searches without an overview are billed only if you turn them on).

### Notes

- Google decides per search, country and moment whether to show an AI Overview; questions and informational searches show one far more often than brand or shopping searches.
- Google writes the overview while the page loads; the scraper returns what Google has written by then, which is almost always the full answer.
- Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

## `keywords` (type: `array`):

Google searches to check (one each), e.g. 'how do solar panels work'. Google shows an AI Overview mainly for questions and informational searches.

## `country` (type: `string`):

ISO-2 country to search from, e.g. 'US', 'GB', 'DE'. AI Overviews and their sources differ by country. Leave empty to let the scraper choose.

## `includeOrganicResults` (type: `boolean`):

Also return the organic results of the same search (title, URL, description, position) in 'organicResults', to compare what the AI cites with what ranks.

## `includeSearchesWithoutOverview` (type: `boolean`):

Also return a row with hasAiOverview: false for searches where Google showed no AI Overview. Such rows are billed like overviews; leave this off to pay only for overviews (the list of searches without one is always saved to the NO_AI_OVERVIEW record).

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

How many searches to run at the same time (1-5).

## Actor input object example

```json
{
  "keywords": [
    "how do solar panels work"
  ],
  "country": "",
  "includeOrganicResults": false,
  "includeSearchesWithoutOverview": false,
  "concurrency": 3
}
```

# Actor output Schema

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

One item per search: the overview as text and Markdown, and its cited sources with real URLs

## `noOverview` (type: `string`):

Searches where Google showed no AI Overview (not billed unless you asked for those rows)

## `errors` (type: `string`):

Searches that could not be run, with the reason (not billed)

# 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 = {
    "keywords": [
        "how do solar panels work"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/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 = { "keywords": ["how do solar panels work"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/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 '{
  "keywords": [
    "how do solar panels work"
  ]
}' |
apify call scrapeunblocker/google-ai-overview-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/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/MNvdaCNPZIm0ggnE2/builds/3wtiKNyRevS61fHD9/openapi.json
