# Gemini Scraper — AI Answers, Citations & Brand Visibility (`affiliatescope/gemini-scraper`) Actor

Gemini scraper for AI search visibility and GEO. Send prompts, get Google Gemini's full answer, every cited source with the sentence it backs, searched-but-not-cited sources, and brand & domain mention tracking as JSON. No login or API key. From $3 per 1,000 answers; failed prompts free.

- **URL**: https://apify.com/affiliatescope/gemini-scraper.md
- **Developed by:** [AffiliateScope](https://apify.com/affiliatescope) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 3 monthly users, 97.2% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 1,000 results

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

## Gemini Scraper — AI Answers, Citations & Brand Visibility

**See exactly what Google Gemini tells your customers — which sites it credits, which it reads and ignores, and where your brand lands.**

Feed in the prompts your buyers actually type. For every prompt you get Gemini's full answer, every **cited** source with the sentence it backs, every **searched-but-not-cited** source, Gemini's own topic classification — and, if you give it your brands and domains, a ready-made visibility score. No Google account, no browser, no API key.

**$5 per 1,000 answers on the default residential proxy — $3 per 1,000 with your own proxy. Failed prompts are never charged.**

AI answers are the new top-of-funnel. When Gemini answers "best CRM for small business", the sites it cites get the click and everyone else gets nothing. Rank tracking doesn't see this. This Actor does.

#### For AI agents (MCP)

- **Minimal input:** `{"prompts": ["best crm for small business"]}`. Add `"trackBrands": ["HubSpot"]` and/or `"trackDomains": ["hubspot.com"]` to get a ready-made visibility verdict per answer.
- **Speed:** 1–5 prompts finish in about 10–30 s, within a single `call-actor` wait. Larger batches: poll the run, then read the dataset.
- **Read only what you need:** fetch dataset items with `fields=prompt,status,text,citationCount,tracking` for a compact answer + visibility summary; add `sources` for the full citation list.
- **Interpreting rows:** one row per prompt. `status: "ok"` = real answer (charged); `status: "error"` = failed after retries, reason in `error` (free). In `sources`, `type: "cited"` backs an answer sentence (`supports`), `type: "searched"` was read but not cited.
- **Cost:** $0.003 per answer, +$0.002 on the default residential proxy, +$0.005 when tracking is set. Lower on higher Apify plans. Set `maxTotalChargeUsd` to cap a run.

***

### Who uses it

- **Affiliate publishers** — track whether Gemini cites your review pages for your money keywords, and when a competitor's page replaces yours.
- **SEO / GEO teams** — measure share-of-citation across a keyword set, week over week, per country.
- **Brand & competitive-intel teams** — see whether Gemini mentions your brand, how often, and before or after your competitors.
- **Performance marketers** — find the publishers Gemini trusts in your category, then work with them.

***

### Why this one

| | This Actor |
| --- | --- |
| **Cited vs. searched, separated** | Each source is labeled `cited` (attached to an answer sentence) or `searched` (retrieved, read, not credited). "Searched but not cited" is your near-miss list — the pages one edit away from winning. |
| **The sentence behind every citation** | `supports` lists the exact answer sentences each source backs, so you know *what* Gemini credited you for. |
| **Brand & domain tracking built in** | Pass brands and domains; every row gets mentioned / mention count / order vs. competitors, and cited / citation position / searched-only. No second tool, and one flat per-answer add-on however many brands and domains you track. |
| **Disguised failures caught in any language** | Gemini sometimes returns an error dressed as an answer ("Sorry, something went wrong", a prompt to connect Gmail or Jira). We read Gemini's internal response flags — not the wording — retry on a fresh session, and never charge for a prompt that didn't get a real answer. |
| **Gemini's own topic classification** | ~35 intent scores per prompt (Shopping, Travel, General Info Seeking…) straight from Gemini — segment your keyword set by how Gemini understands it. |
| **One field for the market** | Set `country` and it's applied to the proxy automatically. Every row records the country it was asked from. |
| **Budget-safe** | Set a maximum cost per run and the Actor stops before exceeding it — it checks before asking each prompt. |

***

### Quick start

**From the Apify Console:**

1. Click **Try for free**.
2. Paste your prompts into **Prompts**, one per line. Pick a **Country**.
3. Optional: add **Brands to track** and **Domains to track**.
4. Click **Start**. Answers stream into the dataset as they complete.

Open the **Sources** view in the dataset tab for one row per source — filter `type = cited` and group by `domain` for share-of-citation.

**From the API:**

```bash
curl -X POST 'https://api.apify.com/v2/acts/affiliatescope~gemini-scraper/runs?token=YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompts": ["best vpn", "best vpn for streaming"],
    "country": "GB",
    "trackBrands": ["NordVPN", "ExpressVPN", "Surfshark"],
    "trackDomains": ["techradar.com", "pcmag.com"]
  }'
```

***

### Sample output (1 real record, trimmed)

`techradar.com` holds citation #1. `pcmag.com` was read by Gemini but not credited — a near-miss you'd never see from the answer alone.

```json
{
  "prompt": "best vpn",
  "country": "GB",
  "text": "When looking for the best Virtual Private Network (VPN), the right choice depends on what matters most to you—whether that is top-tier privacy, fast speeds, or budget-friendly value. …",
  "sources": [
    {
      "position": 1,
      "type": "cited",
      "url": "https://www.techradar.com/vpn/best-vpn",
      "linkUrl": "https://www.techradar.com/vpn/best-vpn#:~:text=5%20best%20VPNs%3A%20a%…",
      "domain": "techradar.com",
      "title": "The best VPN service 2026 - TechRadar",
      "siteName": "TechRadar",
      "snippet": "5 best VPNs: a quick overview * 1. NordVPN – the best VPN overall ($3.49 per month) NordVPN came out on top in our 2026 …",
      "supports": ["Everyday use, streaming, and fast connections."]
    },
    {
      "position": 2,
      "type": "cited",
      "url": "https://www.reddit.com/r/RecommandedVPN/comments/1ui4zrl/best_vpn_in_2026_ive_tested_them_all_and_heres/",
      "domain": "reddit.com",
      "siteName": "Reddit",
      "supports": ["NordVPN consistently ranks at the top for connection speeds thanks to its custom NordLynx protocol."]
    },
    {
      "position": 5,
      "type": "searched",
      "url": "https://www.reddit.com/r/PFSENSE/comments/1rwurlw/best_vpn_services_in_2026/",
      "domain": "reddit.com",
      "title": "Best VPN Services in 2026? : r/PFSENSE - Reddit",
      "supports": []
    }
  ],
  "citationCount": 4,
  "hasWebSearch": true,
  "model": "3.5 Flash-Lite",
  "answerLanguage": "en",
  "detectedCountry": "GB",
  "status": "ok",
  "attempts": 1,
  "scrapedAt": "2026-10-24T18:14:27.076Z",
  "topicClassification": [
    { "topic": "Shopping", "score": 0.341 },
    { "topic": "Troubleshoot Issues", "score": 0.254 }
  ],
  "tracking": {
    "brands": [
      { "brand": "NordVPN", "mentioned": true, "mentions": 4, "rank": 1 }
    ],
    "domains": [
      { "domain": "techradar.com", "cited": true, "citedPosition": 1, "searched": true },
      { "domain": "pcmag.com", "cited": false, "citedPosition": null, "searched": true }
    ]
  }
}
```

***

### Output fields

| Field | What it is |
| --- | --- |
| `prompt`, `country` | What was asked, and from which market |
| `text` | Gemini's full answer, Markdown preserved |
| `sources[]` | Cited sources first (in answer order), then searched-only. Each: `position`, `type` (`cited` / `searched`), `url` (canonical), `linkUrl` (Gemini's link, may jump to the cited passage), `domain`, `title`, `siteName`, `snippet`, `favicon`, `supports[]` |
| `citationCount` | Number of cited sources |
| `hasWebSearch`, `searchTool` | Whether Gemini grounded the answer in live Google results |
| `tracking` | Only when you set brands/domains. `brands[]`: `mentioned`, `mentions`, `rank` (1 = mentioned first among your brands). `domains[]`: `cited`, `citedPosition`, `searched` (subdomains count) |
| `topicClassification[]` | Gemini's intent scores, highest first (toggle off in Output options) |
| `segments[]` | Optional: the answer as typed blocks (paragraphs, headings) |
| `model`, `language`, `answerLanguage`, `detectedCountry`, `detectedLocation` | Which model answered, and for which market |
| `conversationId`, `responseId` | Gemini's own identifiers |
| `status`, `error`, `attempts`, `durationMs`, `scrapedAt` | Delivery diagnostics. `status: "error"` rows are informational and free |

***

### Inputs

| Field | Default | What it does |
| --- | --- | --- |
| **Prompts** | — | One per line. Each is a fresh conversation — nothing bleeds between prompts. |
| **Country** | `US` | Market Gemini answers for. Applied to the proxy automatically. Keep it fixed when comparing runs over time. |
| **Language** | `en` | Request language. Check `answerLanguage` for what Gemini used. |
| **Brands to track** | — | Brand names to find in each answer. Whole-word for Latin/Cyrillic scripts (`Notion` ≠ `Notional`), works for Japanese/Chinese/Thai too. |
| **Domains to track** | — | Domains to find in each answer's sources (`hubspot.com` also matches `blog.hubspot.com`). |
| **Include topic classification** | on | Adds `topicClassification`. |
| **Include answer segments** | off | Adds `segments`. |
| *Advanced*: concurrency, attempts, prompts per session, proxy | 5 / 3 / 20 / residential | Defaults work for most runs. Your own proxy URLs skip the residential charge. |

***

### Pricing

| Event | Price |
| --- | --- |
| Each answer delivered | **$0.003** ($3 per 1,000) |
| Residential proxy, per answer | **$0.002** ($2 per 1,000) — only when the run uses Apify's residential proxy (the default) |
| Run start | $0.00005 |
| Failed prompt | **free** — neither charge applies |
| Brand & domain tracking, per answer | **$0.005** ($5 per 1,000) — only when you set brands or domains; one charge per answer however many you track |

All prices are lower on higher Apify plans. Bring your own proxy URLs (or use datacenter proxies) and the residential charge never applies.

| Use case | Prompts | Default (residential) | Own proxy |
| --- | --- | --- | --- |
| Try it on your top keywords | 20 | **$0.10** | $0.06 |
| Weekly citation check for one niche | 200 | **$1.00** | $0.60 |
| Category share-of-citation report | 1,000 | **$5.00** | $3.00 |
| Agency monthly sweep, 20 clients × 5 countries | 10,000 | **$50.00** or less | $30.00 or less |

With brand & domain tracking on, add $5 per 1,000 answers (e.g. the weekly niche check becomes $2.00). Dedicated AI-visibility trackers charge $15–$90 per 1,000 checks.

Same price on Apify's free plan — no 40× free-tier markup, no 10-prompt cap.

Set a maximum cost per run (`maxTotalChargeUsd`) in the run options and the Actor stops before exceeding it. Unasked prompts are listed in the run's status message.

***

### Reliability

In our testing, roughly **1 in 6** raw Gemini responses from a heavily used IP was a disguised failure; on residential proxies it was rare. Either way they are detected, retried on a fresh session, and — if every attempt fails — reported with `status: "error"` and the reason, free of charge. In our 40-prompt load test every disguised failure was caught and every prompt ended with a real answer.

Throughput in our tests: about **20–30 answers per minute** at concurrency 10. A single answer takes ~18 s at the median and up to ~45 s for long, search-grounded answers.

The run is marked **Failed** when more than 20% of prompts fail (minimum 5 failures), or when none succeed — so schedules and webhooks alert you to a real outage instead of silently delivering error rows.

***

### Limitations

- **Signed-out Gemini.** Answers come from the model Gemini serves to logged-out visitors (currently *3.5 Flash-Lite*, reported per answer in `model`). Signed-in and paid Gemini tiers can answer differently.
- **No conversation memory.** Every prompt starts a new chat.
- **Not every answer searches the web.** Definitional prompts ("what is SOC 2") are often answered from the model alone — those rows have no sources. That's Gemini's behavior, and it's useful signal in itself.
- **Location-style prompts.** For some prompts (e.g. "walking"), Gemini sometimes routes to Google Maps, which produces no usable text signed-out. These are retried; a small share can still end as errors.
- **Shopping cards.** Signed-out Gemini returns product prices inside the answer and snippets, not as structured product cards, so there is no separate products field.
- **Answers vary.** Gemini is non-deterministic. Track trends across runs and keyword sets, not single answers.

***

### FAQ

**Do I need a Google account or Gemini API key?**
No. The Actor uses Gemini's public, signed-out web experience — what anyone gets at gemini.google.com without logging in.

**Is the data the same as the Gemini API?**
No, and that's the point. The API returns the model's output; it doesn't return what Gemini's consumer product shows people — live Google grounding, cited sources, and the sentences they back.

**How do I compute share-of-citation?**
Open the **Sources** view, filter `type = cited`, and group by `domain`. Or set **Domains to track** and read `tracking.domains[].cited` directly. Run the same prompts on a schedule to see who gains and loses citations.

**What does "searched" mean exactly?**
Gemini retrieved and read the page during its Google search but didn't attach it to any sentence of the answer. It's the shortlist Gemini considered — the closest pages to becoming citations.

**Can I schedule it?**
Yes — schedule runs in the Apify Console and pair with a budget cap for predictable spend. Webhooks plug into Zapier, Make, n8n, Slack, or your own backend.

**Is this legal?**
The Actor accesses only the publicly available, signed-out Gemini interface, with no login and no personal data. You are responsible for how you use the output and for complying with Google's terms in your jurisdiction.

***

### Support

Contact `affiliatescope` through the Apify Console. Confirmed failures are triaged the same business day.

***

### Keywords

Gemini scraper, Google Gemini API alternative, AI answer tracking, AI search visibility, generative engine optimization, GEO tool, LLM citation tracking, share of citation, AI brand monitoring, AI share of voice, affiliate SEO, competitor monitoring.

# Actor input Schema

## `prompts` (type: `array`):

Questions to ask Gemini, one per line. Each prompt is a fresh conversation. Phrase them the way your customers search (e.g. "best crm for small business") to see which sites Gemini cites.

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

Two-letter country code (US, GB, DE, FR…) for the market Gemini answers for. It picks the proxy exit country, which changes local answers and cited sources — keep it fixed when comparing runs over time.

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

Language code for the request (e.g. en, fr, de). Gemini usually answers in this language; check answerLanguage in the output.

## `trackBrands` (type: `array`):

Optional. Brand names to look for in each answer (e.g. HubSpot, Salesforce). Adds tracking.brands to every row: mentioned or not, how often, and in which order versus the other brands. Adds a small per-answer tracking charge (shared with Domains to track).

## `trackDomains` (type: `array`):

Optional. Domains to check in each answer's sources (e.g. hubspot.com, pcmag.com). Adds tracking.domains: cited or not, citation position, and searched-but-not-cited. Subdomains count. Same per-answer tracking charge as Brands to track (once per answer, not per domain).

## `includeTopics` (type: `boolean`):

Adds topicClassification: Gemini's own intent scores across ~35 categories (Shopping, Travel, General Info Seeking…), highest first.

## `includeSegments` (type: `boolean`):

Adds segments: the answer split into typed blocks (paragraphs, headings) for structured processing.

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

Prompts in flight at once. 10 is a good setting for 100+ prompts.

## `maxRetries` (type: `integer`):

Gemini sometimes answers with a disguised error ("Sorry, something went wrong"). These are detected and retried on a fresh session, up to this many attempts. Failed prompts are never charged.

## `promptsPerSession` (type: `integer`):

How many prompts share one Gemini session (and one proxy IP) before it rotates.

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

Residential proxies give the most reliable results. Apify RESIDENTIAL adds a small per-answer proxy charge; your own proxy URLs or datacenter proxies don't. The country above is applied automatically.

## Actor input object example

```json
{
  "prompts": [
    "best crm for small business",
    "hubspot vs salesforce for startups"
  ],
  "country": "US",
  "language": "en",
  "includeTopics": true,
  "includeSegments": false,
  "maxConcurrency": 5,
  "maxRetries": 3,
  "promptsPerSession": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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 = {
    "prompts": [
        "best crm for small business",
        "hubspot vs salesforce for startups"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("affiliatescope/gemini-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 = {
    "prompts": [
        "best crm for small business",
        "hubspot vs salesforce for startups",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("affiliatescope/gemini-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 '{
  "prompts": [
    "best crm for small business",
    "hubspot vs salesforce for startups"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call affiliatescope/gemini-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,affiliatescope/gemini-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/B6lIr92PmNyR1uXfZ/builds/48q6xDefP8i2dfgxM/openapi.json
