# Google Gemini Scraper - $4 / 1000 Answers (`scrapeunblocker/gemini-scraper`) Actor

Ask Google Gemini your prompts and get each answer as JSON: plain text and Markdown, the pages Gemini cites with the sentences each backs, the sources it searched, follow-up prompts and the model. Ask from any country for AI visibility (GEO) monitoring. No Google account. $4 per 1000 answers.

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

## Pricing

from $4.00 / 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.

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 Gemini Scraper

Ask **Google Gemini** your prompts and get every answer as clean, structured JSON: the **answer** as plain text and Markdown, the **pages Gemini cites** with the exact answer sentences each one backs, the **sources it searched** on the web, **follow-up prompts**, the **model** label and **where Gemini located the visitor**. Ask from the country you care about. No Google account, cookies or proxies to set up.

Built for **AI visibility / GEO monitoring**: see what Gemini tells people about your category, whether it mentions your brand, and which websites it trusts as sources.

### Features

- **Full answer** - `answer` (plain text) and `answerMarkdown` (headings, lists and tables as Gemini wrote them).
- **Cited pages** - every page Gemini cites inline, once, with its title, URL, domain, site name, a description and the answer sentences it backs (`citedText`), in the order the answer first cites them.
- **Searched sources** - the pages Gemini consulted when it ran a Google search for the answer.
- **Web search flag** - `webSearch` tells you whether Gemini searched the web or answered from the model alone.
- **Country targeting** - ask the same prompt from the US, the UK, Germany and more; `locationCountry` confirms where Gemini placed the visitor.
- **Follow-up prompts** - the suggestions Gemini offers after its answer, when it shows them.
- **Model label** - the model name the Gemini app shows for the answer.

### Use cases

- **AI visibility (GEO) tracking** - is your brand in the answer, and which of your pages get cited?
- **Competitor share of voice** - which products and companies Gemini recommends for your category, per country.
- **Source analysis** - which publishers, review sites and forums shape Gemini's answers.
- **Answer monitoring** - re-ask the same prompts on a schedule and track how the answers change.
- **Content research** - learn which questions Gemini answers with a web search and what it cites.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `prompts` | array | - | Questions to ask, one per line (up to 4000 characters each). Each starts a new conversation. |
| `countries` | array | - | Two-letter codes to ask from, e.g. `US`, `GB`, `DE`. Every prompt is asked once from each country. Empty = one ask from a European location. |
| `concurrency` | integer | `3` | Prompts asked at the same time (1-5). |

Leave `prompts` empty to run a small example prompt.

#### Example input

```json
{
  "prompts": [
    "best CRM software for small business",
    "is HubSpot worth it for a 5 person team",
    "Pipedrive vs Salesforce"
  ],
  "countries": ["US", "GB", "DE"],
  "concurrency": 3
}
```

### Output

One dataset item per answered prompt and country:

```json
{
  "url": "https://gemini.google.com/app",
  "country": "US",
  "requestedCountry": "US",
  "proxyCountry": "US",
  "prompt": "best CRM software for small business",
  "answer": "Choosing the best CRM for a small business depends on your budget and whether you focus on sales or marketing ...",
  "answerMarkdown": "Choosing the best CRM for a small business depends on ... **HubSpot** ...",
  "citations": [
    {
      "position": 1,
      "title": "The Best CRM for Small Business in 2026: An Honest Comparison",
      "url": "https://1crm.com/best-crm-for-small-business/",
      "domain": "1crm.com",
      "siteName": "1CRM",
      "description": "You're very early stage and need free tools ...",
      "citedText": ["Businesses starting out or those prioritizing inbound marketing and ease of use."],
      "firstCitedAt": 369
    }
  ],
  "sources": [
    {"position": 1, "title": "The 11 Best CRMs for Small Business in 2026 - Zapier", "url": "https://zapier.com/blog/best-crms-for-small-business/", "domain": "zapier.com"}
  ],
  "webSearch": true,
  "followUpPrompts": [],
  "richBlocks": 0,
  "model": "3.5 Flash-Lite",
  "location": "United States",
  "locationCountry": "US",
  "complete": true,
  "conversationId": "c_d83c4c4badaacd4a",
  "citationCount": 1,
  "sourceCount": 1,
  "scrapedAt": "2026-10-29T14:20:00+00:00"
}
```

`richBlocks` counts cards Gemini drew that carry no text (a sports score, a weather card, an image strip); they are left out of the answer text. Prompts that get no answer go to the `ERRORS` record in the run's key-value store, with the reason. They are not billed.

### Pricing

**$4 per 1000 answers** (pay per result) - one dataset item is one answered prompt from one country. Failed prompts are free.

### Notes

- Answers vary between identical prompts, as they do for people using Gemini. For monitoring, ask each prompt more than once and compare.
- Gemini takes 10-30 seconds for a short answer and up to a minute or more when it searches the web.
- Each prompt starts a fresh signed-out conversation; there is no chat history or personalization.
- Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

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

Questions to ask Gemini, one per line, the way your customers would ask them, e.g. 'best CRM software for small business' or 'is Notion better than Confluence'. Each prompt starts a new conversation. Up to 4000 characters per prompt.

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

Two-letter country codes to ask from, e.g. US, GB, DE. Gemini answers for where it locates the visitor (local results, currency, language defaults). Every prompt is asked once from each country. Leave empty to ask once from a European location.

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

How many prompts to ask at the same time (1-5). Each answer takes 10-60 seconds.

## Actor input object example

```json
{
  "prompts": [
    "best CRM software for small business"
  ],
  "countries": [
    "US"
  ],
  "concurrency": 3
}
```

# Actor output Schema

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

One item per prompt with Gemini's answer, cited pages, searched sources, follow-up prompts and model

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

Prompts that got no answer, 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 = {
    "prompts": [
        "best CRM software for small business"
    ],
    "countries": [
        "US"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/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 software for small business"],
    "countries": ["US"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/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 software for small business"
  ],
  "countries": [
    "US"
  ]
}' |
apify call scrapeunblocker/gemini-scraper --silent --output-dataset

```

## MCP server setup

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