# Google AI Mode Scraper (`technofystore/google-ai-mode-scraper`) Actor

Scrape Google AI Mode answers and AI Overviews with cited sources, by keyword, country, language and device.

- **URL**: https://apify.com/technofystore/google-ai-mode-scraper.md
- **Developed by:** [Joaquin O.](https://apify.com/technofystore) (community)
- **Stats:** 2 total users, 1 monthly users, 80.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 ai mode answers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Mode Scraper

Get **Google AI Mode** answers — and, optionally, the **AI Overview** of the regular results page — for any list of keywords. You receive the full answer text, a structured version split into paragraphs, headings, lists and tables, and every **cited source** with title, URL, domain and position. Choose the country, language and device. Answers arrive in a few seconds.

### What does Google AI Mode Scraper return?

For each keyword you get one row with:

| Field | Description |
|---|---|
| `keyword`, `country`, `language`, `device` | What was searched and where |
| `status` | `OK`, `AI_MODE_UNAVAILABLE` (Google doesn't offer AI Mode for this query or locale) or `FAILED` |
| `aiModeText` | Full AI Mode answer as plain text |
| `aiModeMarkdown` | The same answer as Markdown (headings, lists, tables) |
| `aiModeBlocks` | Structured answer: `paragraph`, `heading`, `list` (nested), `table`, `code` blocks |
| `aiModeSources` | Cited sources: `position`, `title`, `url`, `domain` |
| `aiOverviewFound` | Whether the regular results page showed an AI Overview (when enabled) |
| `aiOverviewText`, `aiOverviewMarkdown`, `aiOverviewBlocks`, `aiOverviewSources` | The AI Overview, same structure |
| `scrapedAt`, `attempts`, `error` | Run metadata |

Results can be downloaded as JSON, CSV, Excel or HTML, or read through the Apify API. The dataset has three ready-made views: **Overview**, **AI Mode sources** (one row per cited source) and **Not returned**.

### How to use it

1. Add your keywords (one per line).
2. Pick the country and language.
3. Turn on **Also scrape the AI Overview** if you need it.
4. Click **Start** and download the results.

#### Input example

```json
{
  "keywords": ["best project management software", "mejor crm para pymes"],
  "country": "US",
  "language": "en",
  "device": "desktop",
  "includeAiMode": true,
  "includeAiOverview": true
}
```

#### Output example

```json
{
  "keyword": "best project management software",
  "country": "US",
  "language": "en",
  "device": "desktop",
  "status": "OK",
  "aiModeText": "The best project management software depends on team size and workflow...",
  "aiModeMarkdown": "The best project management software depends on...\n\n## Top options\n\n- **Asana:** ...",
  "aiModeBlocks": [
    { "type": "paragraph", "text": "The best project management software depends on team size and workflow..." },
    { "type": "heading", "level": 2, "text": "Top options" },
    { "type": "list", "ordered": false, "items": [{ "text": "Asana: ..." }, { "text": "Trello: ..." }] }
  ],
  "aiModeSources": [
    { "position": 1, "title": "The 10 best project management tools", "url": "https://example.com/best-pm-tools", "domain": "example.com" }
  ],
  "aiModeSourceCount": 1,
  "aiOverviewChecked": true,
  "aiOverviewFound": false,
  "aiOverviewText": null,
  "scrapedAt": "2026-10-19T13:20:00.000Z",
  "attempts": 1,
  "error": null
}
```

### Pricing

You pay only for answers that are actually delivered. Unavailable, empty or failed keywords are **never charged**.

| Event | Price |
|---|---|
| AI Mode answer (`ai-mode-answer`) | $0.002 ($2 per 1,000) |
| AI Overview found (`ai-overview`) — only when enabled and present | $0.0015 ($1.50 per 1,000) |

**Examples:** 1,000 keywords with AI Mode ≈ **$2.00**. Adding AI Overviews (found on about 9 of 10 keywords) ≈ **+$1.35**. Apify Scale and Business plans get 10 % and 20 % off.

Apify free-plan accounts can process up to 10 keywords per run.

Set a **maximum cost per run** in the run options; the scraper stops cleanly when it is reached.

### Use cases

- **AI search visibility / GEO:** see which brands, products and pages Google's AI recommends for your keywords.
- **SEO research:** find which domains Google AI Mode cites and how often.
- **Content gaps:** compare the AI answer with your own pages.
- **Market research:** track how AI answers change across countries and languages.
- **Monitoring:** schedule daily or weekly runs and compare results over time.

### FAQ

**Why does a keyword come back as `AI_MODE_UNAVAILABLE`?**
Google doesn't offer AI Mode for every query, country or language. These rows are free.

**Why is `aiOverviewFound` false?**
Google shows AI Overviews only for some queries. The check is free when no overview appears.

**Which countries are supported?**
31 countries, including the US, UK, Spain, Mexico, Brazil, Germany, France, India and Japan. AI Mode availability depends on Google.

**How fast is it?**
Each answer takes about 2–5 seconds and several keywords run in parallel: 100 keywords usually finish in under two minutes.

**Why do some answers have no sources?**
Google AI Mode does not cite sources for every answer (for example, short how-to explanations). Sources are returned whenever Google shows them.

**Is the answer exactly what I see in my browser?**
It is what Google served for that country, language and device at that moment. AI answers vary between runs and users.

### Limits

- Up to 5,000 keywords per run (10 on Apify free-plan accounts).
- One country and language per run (start several runs for several markets).
- Follow-up questions in AI Mode are not supported yet.
- If Google changes its page layout, results may be affected until an update is released (usually within days).

### Changelog

See the **Changelog** tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/technofystore/google-ai-mode-scraper/changelog.md

# Actor input Schema

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

Search queries to run in Google AI Mode (one per line). Duplicates are removed.

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

Country of the Google results.

## `language` (type: `string`):

Interface language code (Google `hl`), e.g. en, es, pt-BR, de.

## `device` (type: `string`):

Device type Google serves the answer for.

## `includeAiMode` (type: `boolean`):

Return the full Google AI Mode answer with its sources.

## `includeAiOverview` (type: `boolean`):

Also check the regular results page and return the AI Overview when Google shows one. Charged only when an AI Overview is found.

## `maxConcurrency` (type: `integer`):

Keywords requested in parallel.

## `proxyConfiguration` (type: `object`):

Only used by the experimental browser backend.

## `debug` (type: `boolean`):

Store a screenshot and the HTML of failed attempts in the key-value store.

## `selectorOverrides` (type: `object`):

Advanced: override page selectors if Google changes its layout before an update ships.

## Actor input object example

```json
{
  "keywords": [
    "best project management software"
  ],
  "country": "US",
  "language": "en",
  "device": "desktop",
  "includeAiMode": true,
  "includeAiOverview": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debug": false
}
```

# Actor output Schema

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

One row per keyword: AI Mode answer, AI Overview and cited sources.

## `sources` (type: `string`):

Sources cited by each AI Mode answer.

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

Totals, charged events and timing of the run.

# 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": [
        "best project management software"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("technofystore/google-ai-mode-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": ["best project management software"] }

# Run the Actor and wait for it to finish
run = client.actor("technofystore/google-ai-mode-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": [
    "best project management software"
  ]
}' |
apify call technofystore/google-ai-mode-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,technofystore/google-ai-mode-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/dYInE50hLMgxKyObA/builds/tTK2w1AsCVREdRNFF/openapi.json
