# Gemini Scraper (`automly/gemini-scraper`) Actor

Ask Google Gemini your prompts and get each answer with its cited sources, inline citations, cited domains and brand mentions. Track how Gemini talks about your brand and which websites it cites.

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

## Pricing

from $1.90 / 1,000 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

## Gemini Scraper

**Gemini Scraper** asks Google Gemini your questions and gives you back each answer as clean, structured data: the full answer text, the web pages Gemini lists as sources, every inline citation with the exact claim it supports, the list of cited domains, and optional brand mention counts. Use it to see how Gemini talks about your brand, your competitors and your market, and which websites it trusts.

Just add your prompts and get one row per prompt. No Google account, no API key.

### What can Gemini Scraper do?

- **Collect Gemini answers** for any list of questions or prompts, in Markdown and in plain text
- **Get the sources** Gemini lists under each answer, with title, URL and domain, in Gemini's own order
- **Get every inline citation**: the sentence Gemini backed with a link, plus that page's title, URL, site name and snippet
- **See which domains get cited**, once each, ready for share-of-voice counts across many prompts
- **Track brands**: give a list of brand or product names and every row says whether Gemini named each one, how often, in which order, and whether a cited source points to it
- **Know the context**: each row names the Gemini model that answered and the location the answer was given for
- **Run it on a schedule** to follow how answers change week by week, and get the data through the API, as JSON, CSV or Excel, or straight into Google Sheets, Zapier or Make

### Who is it for?

- **Brand and marketing teams** tracking AI visibility: is your brand in the answer, before or after the competition?
- **SEO and content teams** doing generative engine optimization (GEO / AEO): which pages and domains does Gemini cite for your topics?
- **Agencies** reporting AI search visibility for many clients
- **Researchers** comparing what AI assistants say about a topic over time

### What data does it return?

| Field | What it is |
| --- | --- |
| `query` | The prompt you entered |
| `engine` | `Gemini` |
| `model` | The Gemini model that answered, as Gemini names it (e.g. `3.5 Flash-Lite`) |
| `answer` | The full answer in Markdown (headings, lists, tables) |
| `answerText` | The same answer as plain text |
| `sources` | Pages listed under the answer: `position`, `title`, `url`, `domain` |
| `sourceCount` | Number of sources |
| `citations` | Inline citations: `position`, `text` (the cited claim), `title`, `url`, `domain`, `siteName`, `snippet` |
| `citationCount` | Number of inline citations |
| `citedDomains` | Every cited or listed domain, once each |
| `searchedWeb` | Whether Gemini searched the web for this answer |
| `brandMentions` | For each brand you track: `mentioned`, `mentions`, `firstPosition`, `inSources` |
| `location`, `country` | Where Gemini placed the question when answering (e.g. `New York, NY, USA`, `US`) |
| `language` | Language of the answer |
| `scrapedAt` | When the answer was collected |

### How to use Gemini Scraper

1. Click **Try for free** (or **Start**) on this page.
2. In **Prompts**, enter your questions, one per line, e.g. `best CRM software for small businesses`.
3. Optional: in **Brands to track**, add your brand and your competitors, e.g. `HubSpot`, `Salesforce`.
4. Optional: under **Location**, pick a country to get the answers people there get. The default gives the answers people in the United States get.
5. Click **Start**. Each answer takes Gemini about a minute to write; many prompts are asked side by side.
6. Open the **Output** tab, or download the dataset as JSON, CSV, Excel or HTML.

### Input example

```json
{
  "queries": [
    "best CRM software for small businesses",
    "best project management tools for agencies"
  ],
  "brands": ["HubSpot", "Salesforce"]
}
```

### Output example

```json
{
  "query": "best CRM software for small businesses",
  "engine": "Gemini",
  "model": "3.5 Flash-Lite",
  "answer": "Choosing the best CRM for a small business depends on your team size, budget and goals...\n\n### 1. Best All-In-One: **HubSpot CRM**\n* **Best for:** ...",
  "answerText": "Choosing the best CRM for a small business depends on your team size, budget and goals...\n\n1. Best All-In-One: HubSpot CRM\n- Best for: ...",
  "sources": [
    {
      "position": 1,
      "title": "10 Best CRM Tools for Small Businesses in 2026 - Helpmonks",
      "url": "https://helpmonks.com/blog/best-crm-tools-small-businesses-2026/",
      "domain": "helpmonks.com"
    }
  ],
  "sourceCount": 7,
  "citations": [
    {
      "position": 1,
      "text": "Visual sales pipeline management and tracking deals effortlessly.",
      "title": "7 Best CRM Software for Small Businesses in 2026 (I Tested 12) - Zite",
      "url": "https://www.zite.com/blog/best-crm-software-for-small-business",
      "domain": "zite.com",
      "siteName": "Zite",
      "snippet": "What is the best CRM software for small businesses? ..."
    }
  ],
  "citationCount": 10,
  "citedDomains": ["zite.com", "helpmonks.com", "business.com"],
  "searchedWeb": true,
  "brandMentions": [
    {"brand": "HubSpot", "mentioned": true, "mentions": 3, "firstPosition": 1, "inSources": false},
    {"brand": "Salesforce", "mentioned": true, "mentions": 1, "firstPosition": 2, "inSources": false}
  ],
  "location": "New York, NY, USA",
  "country": "US",
  "language": "en",
  "scrapedAt": "2026-10-30T09:15:02.118Z"
}
```

### How much does it cost?

Gemini Scraper is priced per answer: you pay for each prompt that comes back with an answer, plus a small start fee per run. A prompt Gemini does not answer is not charged. Set a maximum cost on the run and it stops there. Apify's free plan includes monthly credit you can use to try it.

### Tips

- **Ask the way people ask.** Short, natural questions ("best running shoes for flat feet") give the answers your customers see.
- **Track competitors together.** Put your brand and your competitors in **Brands to track**: `firstPosition` shows who Gemini names first.
- **Compare over time.** Schedule the same prompts weekly and compare `brandMentions` and `citedDomains` between runs.
- **Same prompt, different answers.** Gemini words each answer fresh, so two runs of the same prompt differ a little. Trends across many prompts are more telling than one answer.

### FAQ

#### Is it legal to scrape Gemini answers?

The scraper collects answers Gemini gives to anyone who asks, without an account, and no personal data. Check the terms that apply to you and your use of the data, and consult a lawyer if unsure.

#### Which Gemini model answers?

The one Gemini gives people who use it without signing in. Each row names it in `model`.

#### Why does a row name a location?

Gemini tailors some answers to where a question comes from. By default every answer is one given in the United States; choose another country under **Location**. Each row names the location Gemini answered for.

#### How long does a run take?

Gemini takes about a minute to write each answer. Prompts are asked side by side, about 10 answers a minute: 100 prompts take about 10 minutes and 1,000 prompts under 2 hours. The default run time limit (3 hours) fits about 1,500 prompts; raise it in the run options for longer lists, or split them into several runs.

#### What if Gemini does not answer a prompt?

The prompt is asked again. If it still gets no answer, the run report (`report-summary` in the run's storage) lists it with the reason, and it is not charged.

#### Can I use it through the API or with AI agents?

Yes. Run it with the Apify API, the Python or JavaScript clients, or from AI tools through Apify's MCP server, and get the rows as JSON.

#### Something is not working?

Open an issue on the **Issues** tab with the run link and we will look at it.

# Actor input Schema

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

Questions or prompts to ask Gemini, e.g. best CRM software for small businesses. One per line; each gives one row with Gemini's answer, its sources and citations.

## `brands` (type: `array`):

Optional brand or product names to look for in every answer, e.g. HubSpot. Each row then says whether Gemini named the brand, how often, in which order among your brands, and whether a cited source points to it.

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

Gemini's answers can depend on where a question comes from. Leave the default for the answers people in the United States get, or pick a country to get the answers people there get. Every row names the location Gemini answered for.

## Actor input object example

```json
{
  "queries": [
    "best CRM software for small businesses",
    "best project management tools for agencies"
  ],
  "brands": [
    "HubSpot",
    "Salesforce"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `answers` (type: `string`):

No description

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

No description

## `report` (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 = {
    "queries": [
        "best CRM software for small businesses",
        "best project management tools for agencies"
    ],
    "brands": [
        "HubSpot",
        "Salesforce"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/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 = {
    "queries": [
        "best CRM software for small businesses",
        "best project management tools for agencies",
    ],
    "brands": [
        "HubSpot",
        "Salesforce",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/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 '{
  "queries": [
    "best CRM software for small businesses",
    "best project management tools for agencies"
  ],
  "brands": [
    "HubSpot",
    "Salesforce"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/gemini-scraper --silent --output-dataset

```

## MCP server setup

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