# ChatGPT Scraper + Gemini, AI Mode & AI Overview Answers (`lergassy/chatgpt-scraper`) Actor

\[$0.012/answer] Ask ChatGPT, Gemini, Google AI Mode and Google AI Overview the same prompts in one run. Every answer as people see it, with every cited source, search queries, and brands, local businesses and products named. Any country.

- **URL**: https://apify.com/lergassy/chatgpt-scraper.md
- **Developed by:** [Matvey](https://apify.com/lergassy) (community)
- **Categories:** AI, SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 29 total users, 12 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

**ChatGPT Scraper** asks **ChatGPT** your prompts and returns each answer **exactly as people see it on chatgpt.com** — the full text, **every cited source**, the **web search results ChatGPT read**, the **search queries it ran**, and the **brands, local businesses and products it recommended**. Pick any **country and language**. No OpenAI account, no API key, no browser.

**$0.012 per answer** ($0.05 on the Apify Free plan). No fee per run, no charge for prompts that return nothing or fail.

Use it as a **ChatGPT API alternative** for **AI search monitoring**, **GEO / AEO** (generative engine optimization), **brand visibility in ChatGPT**, citation research, competitor tracking and LLM answer datasets.

### Several AI engines in one run

Pick the engines in **AI engines** and every prompt is asked in each of them — one row per prompt and engine, at the same price per answer:

| Engine | What you get |
|---|---|
| **ChatGPT** | the answer as on chatgpt.com, cited sources, search results it read, its search queries, brands, local businesses, products |
| **Gemini** | the answer as in the Gemini app, cited sources |
| **Google AI Mode** | Google's AI Mode answer and the pages it references |
| **Google AI Overview** | the AI Overview above Google's results and the pages it references |

Google shows an AI Overview only for some searches; a prompt without one comes back as a free notice row. The fields that only ChatGPT has (search results it read, its search queries, brand and product cards) stay empty for the other engines.

### What you get for each prompt

| Field | What it is |
|---|---|
| `prompt` | The prompt you sent |
| `engine`, `engineName` | Which AI engine answered: `chatgpt`, `gemini`, `google_ai_mode`, `google_ai_overview` |
| `answerText` | The answer as plain text, ready for a spreadsheet |
| `answerMarkdown` | The same answer with headings, lists, tables and links |
| `citations` | Every source ChatGPT cited: `url`, `domain`, `title`, `snippet`, `publishedAt` |
| `citedDomains` | The cited domains, de-duplicated — who ChatGPT trusts for this topic |
| `searchResults` | Web pages ChatGPT's search returned before it answered |
| `fanOutQueries` | The search queries ChatGPT ran for your prompt |
| `usedWebSearch` | Whether ChatGPT went to the web for this answer |
| `brandsMentioned` | Brands and businesses ChatGPT named, with their category |
| `localBusinesses` | Local business cards: name, address, phone, rating, reviews, website |
| `products` | Product cards for shopping prompts: name, price, seller, link |
| `images` | Image blocks (only with **Include images** on) |
| `model` | The ChatGPT model that answered |
| `country`, `language` | Where and in which language the prompt was asked |
| `chatgptUrl` | Link that opens the same prompt on chatgpt.com |
| `answerUrl` | Link to check the answer in the engine itself (ChatGPT, Gemini or the Google page) |
| `answeredAt` | When ChatGPT answered |

#### Example row (shortened)

```json
{
  "prompt": "best coworking space in Canggu Bali",
  "answerText": "If you're looking for the best coworking space in Canggu, Bali, I'd prioritize reliable Wi-Fi, air-conditioning…",
  "citationsCount": 13,
  "citedDomains": ["mindseat.co", "balisquad.com", "workationbase.com", "bwork.id", "tropicalnomad.com"],
  "fanOutQueries": ["best coworking spaces in Canggu Bali 2026 prices facilities reviews"],
  "usedWebSearch": true,
  "brandsMentioned": [{ "name": "BWork Bali", "category": "local_business" }, { "name": "Tropical Nomad", "category": "local_business" }],
  "localBusinesses": [{ "name": "B Work Bali", "address": "Jl. Nelayan No.9C, Canggu…", "phone": "+62 817-797-908" }],
  "model": "gpt-6",
  "country": "Indonesia",
  "language": "English"
}
```

### How to use ChatGPT Scraper

1. Paste your prompts, one per line — write them the way a customer would ask ChatGPT.
2. Choose the country and language (default: United States, English).
3. Optional: switch on **Always search the web** to get sources for every answer.
4. Click **Start** and download the results as JSON, CSV or Excel — or open the **Citations** tab for one row per cited link.

Each answer takes 20–60 seconds on ChatGPT's side; the Actor asks several prompts in parallel, so 100 prompts finish in about 10–15 minutes.

### Input

```json
{
  "prompts": ["best CRM for startups", "best project management software for small teams"],
  "country": "United States",
  "language": "English",
  "forceWebSearch": false,
  "includeImages": false,
  "maxPrompts": 100,
  "cacheHours": 0
}
```

- **Prompts** — any question or instruction, up to 2,000 characters each.
- **Country** — name or two-letter code (US, GB, DE, ID…). Local recommendations change by country.
- **Language** — name or code (English / en, German / de…).
- **Always search the web** — forces a web search so every answer has sources.
- **Max prompts** — a safety limit; prompts above it are skipped and not charged.
- **Reuse answers younger than (hours)** — 0 asks ChatGPT fresh every time.

### Pricing

Pay per answer delivered. Prompts with no answer, invalid prompts and errors are free.

| Apify plan | Price per ChatGPT answer | 1,000 answers |
|---|---|---|
| Free | $0.05 | $50 |
| Starter | $0.013 | $13 |
| Scale | $0.0125 | $12.50 |
| Business and above | $0.012 | $12 |

You can set **Max cost per run** in the run options: the Actor stops at your limit and every row it wrote is paid for — it never overshoots.

### Use cases

- **Brand visibility in ChatGPT** — ask the prompts your customers ask and see whether ChatGPT recommends you or your competitors.
- **GEO / AEO** — find which websites ChatGPT cites for your topic and get your content onto them.
- **Citation and PR research** — list the publishers and review sites behind ChatGPT's answers.
- **Local SEO** — see which local businesses ChatGPT suggests in each city and country.
- **Content research** — use `fanOutQueries` to learn how ChatGPT searches for your topic.
- **LLM datasets** — collect real ChatGPT answers at scale for evaluation or training.

### Use with the API, n8n, Make, Zapier and AI agents

Run it from the [Apify API](https://docs.apify.com/api/v2), schedule it daily to track changes, connect it to Google Sheets, n8n, Make or Zapier, or call it from an AI agent through the [Apify MCP server](https://mcp.apify.com).

### FAQ

**Is this the same as the OpenAI API?** No. The OpenAI API answers without ChatGPT's search, citations, shopping and local cards. This Actor returns what a person sees in the ChatGPT app, with sources.

**Do I need an OpenAI account or key?** No.

**Why do two runs give different answers?** ChatGPT answers vary between sessions, like for any user. Ask the same prompt several times or on a schedule to measure how stable a recommendation is.

**Is it legal?** The Actor collects publicly available answers. You are responsible for how you use the data; avoid collecting personal data you have no legal basis to process.

**Something is wrong?** Open an issue in the **Issues** tab — we answer within a day.

# Actor input Schema

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

One prompt per line, exactly as a person would type it into ChatGPT, e.g. best CRM for startups. Each prompt returns one row with the full answer and its sources. Duplicates are asked once.

## `engines` (type: `array`):

Which AI engines answer every prompt. One row per prompt and engine, same price per answer. Google AI Overview appears only for some searches - a prompt without one is free.

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

Country ChatGPT answers from, as a name or two-letter code, e.g. United States, US, Germany, DE, Indonesia, ID. Local answers (shops, agencies, restaurants) change by country.

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

Language of the ChatGPT interface, as a name or code, e.g. English, en, German, de, Spanish, es. Write the prompt in the same language for the most natural answer.

## `forceWebSearch` (type: `boolean`):

Turn on to make ChatGPT search the web for every prompt, so the answer always comes with sources. Off: ChatGPT decides itself, like for a normal user.

## `includeImages` (type: `boolean`):

Turn on to keep the image blocks ChatGPT shows in the answer (image URL, the page it comes from, alt text). Off: images are dropped from the answer text.

## `maxPrompts` (type: `integer`):

Upper limit of prompts asked in one run. Extra prompts are skipped and not charged.

## `cacheHours` (type: `integer`):

0 = always ask ChatGPT fresh. Set e.g. 24 to reuse an identical prompt's answer from the last 24 hours (same country and language) — useful when re-running a list.

## Actor input object example

```json
{
  "prompts": [
    "best project management software for small teams",
    "best CRM for startups"
  ],
  "engines": [
    "chatgpt"
  ],
  "country": "United States",
  "language": "English",
  "forceWebSearch": false,
  "includeImages": false,
  "maxPrompts": 100,
  "cacheHours": 0
}
```

# Actor output Schema

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

One row per prompt: the answer text and markdown, cited sources, web results ChatGPT read, its search queries, brands, local businesses and products it named, model, country and language.

# 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 project management software for small teams",
        "best CRM for startups"
    ],
    "engines": [
        "chatgpt"
    ],
    "country": "United States",
    "language": "English"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lergassy/chatgpt-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 project management software for small teams",
        "best CRM for startups",
    ],
    "engines": ["chatgpt"],
    "country": "United States",
    "language": "English",
}

# Run the Actor and wait for it to finish
run = client.actor("lergassy/chatgpt-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 project management software for small teams",
    "best CRM for startups"
  ],
  "engines": [
    "chatgpt"
  ],
  "country": "United States",
  "language": "English"
}' |
apify call lergassy/chatgpt-scraper --silent --output-dataset

```

## MCP server setup

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