# AI Citation Finder: ChatGPT, Perplexity & AI Overviews Sources (`nerolabs/ai-citation-finder`) Actor

Which sites ChatGPT, Perplexity and Google AI Overviews cite, your citation share vs each rival, every answer where a rival is cited and you are not, and a scored list of sites to get onto. Reads AI scraper rows, a Sheet or your questions. $0.002 per answer. Agent-ready: x402, MCP.

- **URL**: https://apify.com/nerolabs/ai-citation-finder.md
- **Developed by:** [Adam Pearce](https://apify.com/nerolabs) (community)
- **Categories:** SEO tools, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 ai answer analyseds

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/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 Citation Finder: which sites ChatGPT, Perplexity and Google AI Overviews cite, and where rivals beat you

**ChatGPT recommends your rival and quotes three blogs to back it up. Which blogs? And how do you get onto them?**

Feed this Actor the answers you already scraped from ChatGPT, Perplexity or Google AI Overviews (or a Google Sheet, or just type your questions) and it tells you, for your brand and your rivals:

- **Which websites and pages the AI assistants quote**, ranked by how many answers cite them, with the assistants and questions behind every site.
- **Your share of citations against each rival**, overall and per assistant ("HubSpot's own site is cited in 53% of answers, yours in 20%").
- **The gap list**: every question and assistant where a rival is cited or named and you are not, with the exact pages the AI used.
- **Your outreach list**: the third-party sites to get mentioned on (round-ups, review sites, Reddit threads, YouTube videos), scored 0 to 100 with a plain next step for each.

No scraping happens here: it reads the rows your scrapers already produced, so it is fast (15 answers in a few seconds) and cheap.

### Who it is for

- **SEO and GEO agencies** reporting AI visibility to clients and needing a to-do list, not just a score.
- **SaaS and ecommerce marketers** who see a rival in every ChatGPT answer and want to know why.
- **PR and link builders** looking for the pages AI answers actually rely on.
- **AI agents** running an AI visibility audit end to end (x402 and MCP ready).

### How to use it

1. Run **apify/chatgpt-search-scraper**, **apify/perplexity-search-scraper** and/or **apify/google-ai-overviews-scraper** on the questions your buyers ask (or use the Nero Labs **AI Visibility Tracker** or **Perplexity Search API**).
2. Open this Actor, pick those runs under **Datasets** (mix as many as you like; the assistant is detected per row), type **Your website** and your **Rivals**.
3. Run. Read the **Cited sites** table, the **GAPS** record and the summary.

No rows yet? Type up to 50 **Questions** and they are asked live on Perplexity for you first (by nerolabs/perplexity-search-api on your account, its own price).

You can also add it on a scraper's **Integrations** tab so it runs after every scrape: set Datasets to `["{{resource.defaultDatasetId}}"]`.

### Sample output

One row per cited site (real run on 15 CRM answers, brand Attio against HubSpot, Pipedrive and Zoho):

```json
{
  "rank": 7,
  "domain": "reddit.com",
  "siteTypeLabel": "Forum or community",
  "answersCiting": 4,
  "shareOfAnswers": 0.267,
  "assistants": ["google_ai_overview"],
  "questions": ["best CRM for small business", "best CRM for startups", "HubSpot alternatives for small teams", "easiest CRM for a small sales team"],
  "samplePages": [{ "url": "https://www.reddit.com/r/CRM/comments/1e5141p/best_and_inexpensive_crm_for_small_business/", "title": "Best and inexpensive CRM for small business", "answersCiting": 1 }],
  "brandCited": false,
  "rivalsInSameAnswers": { "HubSpot": 4, "Pipedrive": 4, "Zoho": 2 },
  "gapAnswers": 3,
  "outreachScore": 77,
  "priority": "high",
  "nextStep": "Answer the thread honestly and say who you are; AI assistants quote these discussions."
}
```

One gap (in the `GAPS` record, or as rows with **Rows to write: Gaps**):

```json
{
  "question": "best sales pipeline software",
  "assistantLabel": "Perplexity",
  "gap": "HubSpot, Pipedrive, Zoho named in the answer, Attio not named or cited.",
  "sitesToGetOnto": ["zapier.com", "geekflare.com", "tomba.io", "gain.io", "prospeo.io", "cal.com", "techradar.com"],
  "pagesToGetOnto": [{ "url": "https://zapier.com/blog/pipeline-management-software/", "domain": "zapier.com", "title": "The 8 Best Sales Pipeline Management Software in 2026", "siteType": "news" }]
}
```

Other companies whose own home or product pages get quoted (Salesforce, Close, Monday in this run) are marked **possible rivals you did not list**, kept out of the outreach list, and listed in the summary.

The summary (`OUTPUT`) holds your share of citations against each rival per assistant, the top 20 outreach targets, the top gaps and the questions where you are missing.

### What it reads

| Source | Detected as |
|---|---|
| apify/chatgpt-search-scraper | ChatGPT |
| apify/perplexity-search-scraper | Perplexity |
| apify/google-ai-overviews-scraper | Google AI Overviews |
| nerolabs/multi-ai-answer-snapshot (AI Visibility Tracker) | each assistant in the row (ChatGPT, Gemini, Claude, Perplexity, Grok...) |
| nerolabs/perplexity-search-api | Perplexity |
| hyperbach/ai-search-answers | each engine in the row (ChatGPT, Gemini, AI Mode, AI Overviews, Perplexity); summary rows skipped |
| lofomachines/microsoft-copilot-responses-scraper | Microsoft Copilot |
| johnvc/Google-AI-Overview-API | Google AI Overviews (rows with no overview skipped) |
| zaiq/ai-answer-tracker, khadinakbar/ai-search-brand-monitor | each engine or platform in the row |
| Google AI Mode, Gemini and other answer scrapers | by an assistant, engine or model column, or **Assistant for unlabelled rows** |
| Your own sheet | columns like `question`, `assistant`, `cited_url` (one link per row is fine) |

Links are cleaned: tracking tags such as `utm_source=chatgpt.com` removed, `www.` folded, subdomains grouped into the site (switch off with **Group subdomains**), Google ad clicks never read, Gemini redirect links mapped to their real site. The same answer given twice is counted once.

### Pricing

Pay per event: **$0.002 per AI answer analysed** (tiers down to $0.001 on higher Apify plans), plus $0.01 per optional CSV or Excel file. Rows that are not an AI answer are skipped and never charged.

Examples: 50 questions on 3 assistants = 150 answers = **$0.30**. A weekly check of 100 answers is about **$0.87 a month**. The scrapers you run first charge their own prices.

### Track changes over time

Give a **Remember runs under this name** value and schedule the run weekly: each run shows the sites that started or stopped citing, and how your share and each rival's share moved since last time. The memory lives on your own Apify account.

### For AI agents

Agent-ready: pay per event through Apify, x402 and MCP (`https://mcp.apify.com/?tools=nerolabs/ai-citation-finder`). Smallest call: `{"brandDomain": "attio.com", "competitorDomains": ["hubspot.com"], "data": [<rows from any AI answer scraper>]}`. Results are the dataset rows plus `OUTPUT` and `GAPS` in the key-value store.

### FAQ

**Does it tell me why the AI picked a site?** It shows what was cited, how often, by which assistant and for which questions. That is the evidence; the next step on each row says what usually works for that kind of site.

**What counts as "named" versus "cited"?** Cited means a page on that site is one of the answer's sources. Named means the brand name or domain appears in the answer text. A brand named like a common word (Monday, Close) can be over-counted, so give its exact name.

**Can it see answers I did not scrape?** No. It only reads the answers you give it, or the Questions you type. Ask the questions your buyers really ask, 10 to 50 of them, on more than one assistant.

**Which sites count as rivals?** Only the ones you list. Everything else is a third-party site you could get onto.

If this showed you where to get quoted, a rating on the Store page helps a lot.

# Actor input Schema

## `brandDomain` (type: `string`):

Your brand's website, e.g. attio.com. Used to tell when an AI answer cites you and to find the answers where a rival shows up and you do not. Leave empty to just count every cited site.

## `brandName` (type: `string`):

How your brand is written in answers, e.g. Attio. Defaults to the first part of the domain. Used to spot answers that name you without citing you.

## `competitorDomains` (type: `array`):

Up to 25 rivals, each as a domain (hubspot.com) or 'Name (domain)' such as 'HubSpot (hubspot.com)'. An answer that cites or names a rival but not you is a gap.

## `datasetIds` (type: `array`):

One or more datasets from apify/chatgpt-search-scraper, apify/perplexity-search-scraper, apify/google-ai-overviews-scraper, apify/google-ai-mode-scraper, hyperbach/ai-search-answers, the Copilot, Gemini and other AI answer scrapers, Nero Labs AI Visibility Tracker or Perplexity Search API. Mix them freely; the assistant is detected per row. In an integration set it to \["{{resource.defaultDatasetId}}"].

## `fileUrl` (type: `string`):

A public link to a CSV, Excel, JSON or JSON Lines file: scraper rows, or your own sheet with a question column, an assistant column and a cited URL column (one link per row is fine). A normal Google Sheets link works when shared as 'Anyone with the link can view'.

## `fileFormat` (type: `string`):

Leave on 'Detect automatically' unless the link has no file extension.

## `sheetName` (type: `string`):

Which sheet to read from an Excel workbook. Defaults to the first sheet.

## `data` (type: `array`):

Rows as JSON for a quick run or an AI agent call, e.g. \[{"query": "best CRM for startups", "assistant": "chatgpt", "text": "...", "sources": \[{"url": "https://...", "title": "..."}]}], or raw scraper rows.

## `defaultAssistant` (type: `string`):

Which assistant to credit when a row has no assistant column and its shape does not tell. The three Apify scrapers and the Nero Labs tools are detected automatically.

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

Optional. Up to 50 questions buyers ask, e.g. 'best CRM for startups'. They are asked live on Perplexity by nerolabs/perplexity-search-api on your account (its own price, about $0.02 to $0.025 an answer plus this Actor's $0.002), then analysed with any rows given above.

## `queriesModel` (type: `string`):

Used only with Questions.

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

Optional two-letter country code for Questions, e.g. US or GB, so answers lean local.

## `maxQuerySpendUsd` (type: `number`):

The most the question run may charge your account. Apify requires at least $0.50.

## `rootDomains` (type: `boolean`):

Count blog.hubspot.com and knowledge.hubspot.com as hubspot.com (www, m and amp are always folded). Turn off to see each subdomain separately.

## `ignoreDomains` (type: `array`):

Sites to leave out of every count, e.g. your own other domains or google.com.

## `minAnswers` (type: `integer`):

Leave out sites cited in fewer answers than this.

## `maxDomains` (type: `integer`):

Cap on cited-site rows, best first.

## `outputRows` (type: `string`):

What goes in the dataset. The gap list is always saved as GAPS and the summary as OUTPUT in the key-value store, whichever you pick.

## `exportFormats` (type: `array`):

Also save the written rows as CSV or Excel in the key-value store (charged once per file).

## `maxItems` (type: `integer`):

Cap on answers read per run (each is charged once). Empty = up to 100,000.

## `watchName` (type: `string`):

Optional. Give the same name on every scheduled run (e.g. 'attio-weekly') and each run shows new sites, sites that dropped out and how your share and each rival's share changed since the last run. Stored on your own Apify account.

## `resetWatch` (type: `boolean`):

Forget earlier runs under this name.

## Actor input object example

```json
{
  "brandDomain": "attio.com",
  "brandName": "Attio",
  "competitorDomains": [
    "HubSpot (hubspot.com)",
    "Pipedrive (pipedrive.com)",
    "Zoho (zoho.com)"
  ],
  "fileUrl": "https://nerolabs-samples.nerolabs.workers.dev/sample-ai-citations.json",
  "fileFormat": "auto",
  "defaultAssistant": "auto",
  "queriesModel": "sonar",
  "maxQuerySpendUsd": 2,
  "rootDomains": true,
  "minAnswers": 1,
  "maxDomains": 5000,
  "outputRows": "domains",
  "resetWatch": false
}
```

# Actor output Schema

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

One row per cited site, best first: answers citing it, share of answers, which assistants and questions, sample pages, whether you and your rivals were cited alongside, gap count, outreach score and next step.

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

Your share of citations against each rival (overall and per assistant), top 20 outreach targets, top gaps, questions where you are missing, and warnings.

## `gaps` (type: `string`):

Every answer where a rival is cited or named and you are not: question, assistant, rivals, rival pages and the third-party pages to get onto.

# 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 = {
    "brandDomain": "attio.com",
    "brandName": "Attio",
    "competitorDomains": [
        "HubSpot (hubspot.com)",
        "Pipedrive (pipedrive.com)",
        "Zoho (zoho.com)"
    ],
    "fileUrl": "https://nerolabs-samples.nerolabs.workers.dev/sample-ai-citations.json"
};

// Run the Actor and wait for it to finish
const run = await client.actor("nerolabs/ai-citation-finder").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 = {
    "brandDomain": "attio.com",
    "brandName": "Attio",
    "competitorDomains": [
        "HubSpot (hubspot.com)",
        "Pipedrive (pipedrive.com)",
        "Zoho (zoho.com)",
    ],
    "fileUrl": "https://nerolabs-samples.nerolabs.workers.dev/sample-ai-citations.json",
}

# Run the Actor and wait for it to finish
run = client.actor("nerolabs/ai-citation-finder").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 '{
  "brandDomain": "attio.com",
  "brandName": "Attio",
  "competitorDomains": [
    "HubSpot (hubspot.com)",
    "Pipedrive (pipedrive.com)",
    "Zoho (zoho.com)"
  ],
  "fileUrl": "https://nerolabs-samples.nerolabs.workers.dev/sample-ai-citations.json"
}' |
apify call nerolabs/ai-citation-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nerolabs/ai-citation-finder"
        }
    }
}
```

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/zgD3Ya7D3QeTfaQLs/builds/6PbUGBEcL6TVbpMK7/openapi.json
