# AI Answers Scraper — ChatGPT, Gemini & Google AI Mode (`muhammadafzal/ai-answers-scraper`) Actor

Scrape ChatGPT, Gemini and Google AI Mode answers with citations: answer text, markdown, cited sources and related queries for each prompt.

- **URL**: https://apify.com/muhammadafzal/ai-answers-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** AI, SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 97.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## AI Answers Scraper — ChatGPT, Gemini & Google AI Mode

AI Answers Scraper sends your prompts to ChatGPT, Gemini and Google AI Mode and returns each answer as data: the full answer text and markdown, the citations and sources it shows (URL, title, domain), related queries and the model name. It costs USD 7 per 1,000 answers plus USD 0.01 per run, and answers that do not arrive are not charged.

Use it as a ChatGPT scraper and AI search results API for SEO and GEO research, content audits, source analysis, fact-checking pipelines and AI-answer archives. One run handles up to 50 answers (prompts x assistants).

### What does AI Answers Scraper return?

One record per prompt and assistant. Each record holds:

| Field | What it contains | Example |
|---|---|---|
| `prompt`, `promptPosition` | The prompt you sent and its position in your list | `What is the best way to brew coffee at home?`, `1` |
| `assistant`, `assistantName` | Which assistant answered | `chatgpt`, `ChatGPT` |
| `country` | Country the prompt was asked from | `US` |
| `chatgptWebSearch` | For ChatGPT records: whether web search was on; `null` for the others | `true` |
| `answerText` | The answer as plain text | `The best way to brew coffee at home is…` |
| `answerMarkdown` | The answer with headings, lists and links (ChatGPT, Gemini; `null` for Google AI Mode) | `## My top 3 home brewing methods…` |
| `model` | Model name the assistant reported, when it reports one | `turbo`, `3.5 Flash-Lite` |
| `citations` | Sources cited in the answer: `url`, `title`, `domain`, `sourceName`, and `citedText` (the passage a Google AI Mode citation supports) | `[{"url": "https://www.thekitchn.com/…", "domain": "thekitchn.com"}]` |
| `sources` | Every source the assistant listed, deduplicated by URL: `url`, `title`, `domain`, `sourceName` | `[{"url": "https://www.bonappetit.com/…", "title": "The Best Ways to Make Coffee…"}]` |
| `relatedQueries` | Follow-up questions the assistant suggested (Gemini) | `["Explain how grind size affects extraction…"]` |
| `sponsoredResults` | Sponsored products shown next to a ChatGPT answer, kept out of the answer text | `[{"title": "…", "price": "$600", "advertiser": "Birch Lane"}]` |
| `citationCount`, `sourceCount` | Number of citations and sources | `7`, `9` |
| `requestedAt`, `answeredAt`, `responseSeconds` | When the prompt was sent and answered (UTC) and how long it took | `2026-11-08T14:00:31.000Z`, `31.2` |

The Actor returns the raw answers. It does not score brands, count mentions or rank anyone; you get the text and sources to analyze your own way.

### How do I get ChatGPT, Gemini and Google AI Mode answers with citations?

Type your prompts, tick the assistants and start the run.

| Input | Description | Default |
|---|---|---|
| `prompts` | Questions to ask, one per line, up to 4,000 characters each. Duplicates are sent once. | required |
| `assistants` | Any of `googleAiMode`, `chatgpt`, `gemini` | `["googleAiMode"]` |
| `chatgptWebSearch` | ChatGPT searches the web and cites sources (on), or answers from the model's own knowledge (off) | `true` |
| `country` | Two-letter country code to ask from: `US`, `GB`, `DE`, `FR`, `IN`, `BR`, `JP`… | `US` |

Example input:

```json
{
    "prompts": [
        "What is the best way to brew coffee at home?",
        "Which CRM is best for a small agency?"
    ],
    "assistants": ["googleAiMode", "chatgpt", "gemini"],
    "chatgptWebSearch": true,
    "country": "US"
}
```

That run asks 2 prompts on 3 assistants, so it returns up to 6 answers. Prompts x assistants may not exceed 50 per run; split longer lists across runs.

### How long does a run take?

Google AI Mode answers in about 12-40 seconds per prompt. Gemini took 40-110 seconds in tests on 2026-11-08. ChatGPT is the slowest: 40 seconds to 6 minutes, because it often waits in a queue. The Actor asks all assistants in parallel and waits at most 7 minutes for any one answer, so most runs finish in 1-7 minutes. Each answer is written to the dataset as soon as it arrives.

### Why do I get a different answer each time?

AI assistants generate every answer fresh. The same prompt can return different wording, different sources and a different length minutes apart, and answers change with the country you ask from. Treat each record as a snapshot with its `answeredAt` time. To measure how stable an answer is, run the same prompts several times and compare.

### What does the output look like?

```json
{
    "prompt": "Quelle est la meilleure banque en ligne en France ?",
    "promptPosition": 2,
    "assistant": "gemini",
    "assistantName": "Gemini",
    "country": "GB",
    "chatgptWebSearch": null,
    "answerText": "En France, il n'y a pas une seule « meilleure » banque en ligne absolue, car le choix dépend principalement de vos besoins (tarifs, voyage, épargne ou service client)…",
    "answerMarkdown": "En France, il n'y a pas une seule « meilleure » banque en ligne absolue…",
    "model": "3.5 Flash-Lite",
    "citations": [
        {
            "url": "https://www.culturebanque.com/banques/banques-en-ligne/",
            "title": "Banque en ligne : comparatif des meilleures banques 2026",
            "domain": "culturebanque.com",
            "sourceName": null,
            "citedText": "Cependant, le marché est dominé par quelques acteurs incontournables adossés à de grands groupes bancaires :"
        }
    ],
    "sources": [
        {
            "url": "https://www.panorabanques.com/banque-en-ligne/meilleures-banques-en-ligne",
            "title": "Meilleure banque en ligne 2026 : notre sélection & comparatif",
            "domain": "panorabanques.com",
            "sourceName": null
        }
    ],
    "relatedQueries": [],
    "sponsoredResults": [],
    "citationCount": 16,
    "sourceCount": 20,
    "requestedAt": "2026-11-08T09:23:10.000Z",
    "answeredAt": "2026-11-08T09:23:57.000Z",
    "responseSeconds": 47.2
}
```

Every run also writes an `OUTPUT` record to the key-value store: the run status (`SUCCEEDED`, `PARTIAL`, `EMPTY`, `FAILED`), counts per assistant, and one line per prompt and assistant with its outcome and the reason when no answer arrived.

### How much does AI Answers Scraper cost?

You pay per answer delivered, plus a small start fee per run. Answers that do not arrive are free.

| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
| AI answer (one dataset record) | USD 0.007 | USD 0.006825 | USD 0.00665 | USD 0.0056 |
| Actor start (per run) | USD 0.01 | USD 0.00975 | USD 0.0095 | USD 0.008 |

The start fee is charged once per started GB of allocated memory, so one event at the default 256 MB; it covers the time a run waits for slow assistants. Worked examples on the Free plan price: 1 answer costs USD 0.017; 1 prompt on all 3 assistants costs USD 0.031; 10 prompts on 2 assistants (20 answers) cost USD 0.15; 50 answers cost USD 0.36. Platform usage is included in these prices.

### What happens when an assistant does not answer?

You are not charged for it. The `OUTPUT` record lists each such prompt and assistant with the reason:

- `faulted`: the assistant did not return an answer after three attempts.
- `no-answer`: the assistant replied without any answer text.
- `timed-out`: the assistant had not answered after 7 minutes (this happens with ChatGPT when it is busy), or the run reached its time limit first.
- `rejected`: the prompt was refused before it was asked.
- `skipped`: your maximum charge for the run was reached first.
- Prompts over 4,000 characters and duplicate prompts are listed under `prompts` and are not sent.

A run where no answer arrives ends as `FAILED` or `EMPTY` with that explanation.

### How do I use it from the API or an AI assistant?

Call it like any Apify Actor. JavaScript:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('muhammadafzal/ai-answers-scraper').call({
    prompts: ['What is the best way to brew coffee at home?'],
    assistants: ['chatgpt', 'googleAiMode'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.assistantName, item.citationCount, item.answerText.slice(0, 200));
```

Python (apify-client 3.x):

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("muhammadafzal/ai-answers-scraper").call(
    run_input={"prompts": ["What is the best way to brew coffee at home?"], "assistants": ["chatgpt", "gemini"]}
)
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item["assistantName"], [c["domain"] for c in item["citations"]])
```

**Use it from an AI assistant.** The Actor works from Claude, ChatGPT, Cursor or any MCP client through Apify's MCP server. Add `https://mcp.apify.com/?tools=muhammadafzal/ai-answers-scraper` as an MCP server, then ask, for example: "Ask ChatGPT and Gemini which project management tools they recommend for small teams, and list the sources each one cites."

### When should I use a different tool?

- **Brand mention counts, visibility scores or share of voice:** use an AI visibility tracker such as [AI Visibility Tracker](https://apify.com/muhammadafzal/ai-visibility-rank-tracker) or [AEO Tracker](https://apify.com/muhammadafzal/aeo-tracker). This Actor returns raw answers and sources without scoring.
- **Google AI Overviews on normal Google results pages:** use [Google AI Overview Checker](https://apify.com/muhammadafzal/google-ai-overviews-scraper). Google AI Mode here is the separate conversational mode.
- **Perplexity or Bing Copilot answers:** not offered; both failed most tests on 2026-11-08.
- **Your own model calls:** to call a model API with your own key and settings, use the model provider's API. This Actor collects what the public assistant apps show.

### FAQ

**Is this a ChatGPT scraper with citations?**
Yes. With `chatgptWebSearch` on, ChatGPT searches the web and each record carries the sources it cited, with URL, title and domain. With it off, ChatGPT answers from the model's own knowledge and usually cites nothing. The setting is recorded on every ChatGPT record.

**Which assistants are supported?**
ChatGPT, Gemini and Google AI Mode. Perplexity and Bing Copilot are not offered: in tests on 2026-11-08 they answered too rarely to offer.

**Can I see which sources ChatGPT or Gemini cite for my brand or topic?**
Yes. `citations` and `sources` list every cited page with its domain, so you can filter for your site or a competitor's. Counting and scoring are left to you.

**Can I ask from another country?**
Yes, set `country` to a two-letter code such as `GB`, `DE` or `IN`. Answers, sources and prices in answers often change by country.

**Why is the answer different from what I see in the app?**
Assistants answer every request fresh, and your app session may be signed in, personalized or in another country. The Actor asks without a personal account.

**Am I charged when an assistant fails or returns nothing?**
No. Only delivered answers are charged, plus the start fee once per run.

**Can I export the answers?**
Yes. Datasets export to JSON, CSV, Excel and other formats, and the `answerMarkdown` field keeps the formatting for documents.

### Limits and data use

Up to 50 answers per run and 4,000 characters per prompt. The Actor sends your prompts as written to the assistants, without a personal account, so do not put personal or confidential data in prompts. Answers are generated by third-party AI assistants and can be wrong; the Actor does not check them. Make sure your use of the answers respects the assistants' terms and the copyright of the cited sites.

Questions or a prompt that should work but does not? Open an issue on the Actor's Issues tab with the prompt and the run ID.

Last verified: 2026-11-08

# Actor input Schema

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

Use this for the questions you want answered, one per line, exactly as a person would type them into ChatGPT or Google AI Mode. Up to 4,000 characters each. Duplicate prompts are sent once. Prompts x assistants may not exceed 50 per run.

## `assistants` (type: `array`):

Use this to choose which assistants answer each prompt. Google AI Mode answers in about 12-40 seconds, Gemini in under 2 minutes, ChatGPT in 40 seconds to 6 minutes; the run waits at most 7 minutes for any answer. Default: Google AI Mode.

## `chatgptWebSearch` (type: `boolean`):

Use this to choose how ChatGPT answers: on, it searches the web first and cites its sources (like ChatGPT search); off, it answers from what the model already knows, usually without citations. Recorded on every ChatGPT record. Default: on.

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

Use this to ask from a country, as a two-letter country code: US, GB, DE, FR, IN, BR, JP. Answers, sources and prices often differ by country. Default: US.

## Actor input object example

```json
{
  "prompts": [
    "What is the best way to brew coffee at home?"
  ],
  "assistants": [
    "googleAiMode"
  ],
  "chatgptWebSearch": true,
  "country": "US"
}
```

# Actor output Schema

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

Dataset of answers: prompt, assistant, answer text and markdown, citations, sources, related queries, model and timestamps.

## `summary` (type: `string`):

OUTPUT record: status, counts per assistant, and the outcome of every prompt and assistant with the reason when no answer was delivered.

# 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": [
        "What is the best way to brew coffee at home?"
    ],
    "assistants": [
        "googleAiMode"
    ],
    "country": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/ai-answers-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": ["What is the best way to brew coffee at home?"],
    "assistants": ["googleAiMode"],
    "country": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/ai-answers-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": [
    "What is the best way to brew coffee at home?"
  ],
  "assistants": [
    "googleAiMode"
  ],
  "country": "US"
}' |
apify call muhammadafzal/ai-answers-scraper --silent --output-dataset

```

## MCP server setup

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