# AI Visibility Audit & Brand Citation Tracker (`jonasspezia/ai-visibility-audit`) Actor

Track brand visibility in AI search (GEO/AEO): see if ChatGPT, Perplexity, Gemini and Google AI Overviews cite your brand for real buyer prompts. Citation rate with 95% confidence intervals, share of voice vs competitors, source gaps and a white-label HTML report. Engine scraper fees billed apart.

- **URL**: https://apify.com/jonasspezia/ai-visibility-audit.md
- **Developed by:** [Jonas Spezia](https://apify.com/jonasspezia) (community)
- **Categories:** SEO tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 citation checks

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/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

### What does AI Visibility Audit do?

**AI Visibility Audit** checks whether **ChatGPT, Perplexity, Gemini and Google AI Overviews** cite your brand when people ask the questions that lead to a purchase. You give it your domain, your competitors and a list of real buyer prompts. It runs every prompt on every engine you pick and returns, for each answer, whether your brand was **mentioned**, **linked** as a source, or left out, who appeared instead, and which pages the engine relied on.

Cost in one line: US$ 0.02 per answered check, plus the fee of the official Apify engine scrapers, which Apify bills to your account separately (from US$ 0.002 per result; on the Free plan ChatGPT, Perplexity and Gemini cost US$ 0.20 per result, so the default engine is AI Overviews). Details in the cost section below.

The easiest way to try it: open the Actor, keep the prefilled example (apify.com against two competitors, two prompts, AI Overviews only) and click **Start**. The run finishes in a few minutes and costs a few cents.

What you get from one run:

- **Citation tracking per prompt and engine**: brand mentioned, brand linked, link position, order of first mention against competitors.
- **Citation rate with a 95% confidence interval**, overall and per engine, instead of a single "rank" from a single run.
- **Share of voice** of your brand against each competitor, by mentions and by links.
- **Source gaps**: the domains and URLs the engines cite when your brand is missing. These are your content and outreach targets.
- **A white-label HTML report** in English, Portuguese (Brazil) or Spanish, ready to print or send to a client.
- Everything the Apify platform adds: API access, scheduling, webhooks, integrations with n8n, Make and Zapier, and the Apify MCP server for AI agents.

### Who is AI Visibility Audit for?

- **SEO and GEO agencies** that need a repeatable AI search visibility report for each client, under their own brand.
- **Growth and content teams** that want to know which prompts they lose, to whom, and which sources to win.
- **Developers** who need structured AI answer and citation data in a pipeline, through the API or an agent.

### Why measure citation frequency instead of rank?

AI answers change from one run to the next. A public study by SparkToro and Gumshoe ([NEW Research: AIs are highly inconsistent when recommending brands or products](https://sparktoro.com/blog/new-research-ais-are-highly-inconsistent-when-recommending-brands-or-products-marketers-should-take-care-when-tracking-ai-visibility/), January 2026) had 600 volunteers run 12 prompts 2,961 times on ChatGPT, Claude and Google's AI. They found a less than 1 in 100 chance that ChatGPT or Google's AI returns the same list of brands twice in 100 runs, and the order was even less stable. The same study concluded that **how often a brand appears across many runs** is a reasonable measure of visibility, while position inside one answer is close to noise.

This Actor is built around that finding:

- It reports **how often** you are cited, with a **Wilson 95% confidence interval** that tells you how much to trust the number. Example: cited in 7 of 20 answers is 35%, with an interval of 18% to 57%. With 28 of 80 answers the interval narrows to 25% to 46%.
- The `samples` field repeats each prompt on each engine up to 5 times in the same run, so you can see how stable each answer is. More prompts and scheduled runs over time narrow the interval further.
- **Source gaps** show what the engines read when they leave you out, which is more actionable than a position.
- **Failed checks are not charged.** Only answers that came back with content count.
- **No subscription.** You pay per check, only when you run it.

### How to run an AI visibility audit

1. Enter your **domain** (for example `yourbrand.com`) and your **brand** name. Add aliases if people write it in more than one way.
2. Add **competitors**, one per line, as `competitor.com`, `Competitor Name` or `Competitor Name=competitor.com`.
3. Add **prompts**: the questions a buyer would type, one per line. 10 to 30 prompts give a useful picture.
4. Pick the **engines**. AI Overviews is the default because it is the cheapest (see pricing below).
5. Choose the **country**, the number of **samples**, the **report language** and, for agencies, the **report brand name**.
6. Click **Start**. When the run finishes, open the dataset, the `SUMMARY` record or `REPORT.html` in the Storage tab. The report link is also shown in the run status message and in the log.

### Input

| Field | Type | Description |
|---|---|---|
| `domain` | string, required | Your domain, without protocol. Subdomains count as yours. |
| `brand` | string | Brand name as it appears in answers. If empty, the first part of the domain counts only when written with a capital letter, plus the domain itself. |
| `brandAliases` | array | Other spellings of the brand. Matching ignores case and accents and respects word boundaries. |
| `competitors` | array | `domain.com`, `Name` or `Name=domain.com`. The name enables mention detection and the domain enables link detection. A competitor given only as a domain counts as mentioned only when the domain is written out. |
| `prompts` | array, required | Buyer questions, one per line. |
| `engines` | array | Any of `ai-overviews`, `chatgpt`, `perplexity`, `gemini`. Default `["ai-overviews"]`. |
| `countryCode` | string | Lowercase ISO code, such as `us`, `gb`, `de`, `fr`, `es`, `pt`, `br`, `mx`, `ar`. Default `us`. Applies to ChatGPT, Perplexity and Gemini. Google AI Overviews does not take a country, so its rows have `country` set to `null`. |
| `samples` | integer | Repetitions per prompt and engine, 1 to 5. Default 1. |
| `reportLanguage` | string | `en`, `pt-BR` or `es`. Default `en`. |
| `reportBrandName` | string | Your agency name for the HTML report (white label). |
| `maxEngineSpendUsd` | number | Estimated ceiling for what the engine scrapers may cost you in this run. Default 5. |

Example input:

```json
{
  "domain": "apify.com",
  "brand": "Apify",
  "competitors": ["Bright Data=brightdata.com", "Zyte=zyte.com"],
  "prompts": [
    "What is the best web scraping platform for a small data team?",
    "Which web scraping API should I use to collect e-commerce prices at scale?"
  ],
  "engines": ["ai-overviews", "perplexity"],
  "countryCode": "us",
  "samples": 3,
  "reportLanguage": "en",
  "reportBrandName": "Northwind Digital"
}
```

### Output

#### Dataset: one row per prompt, engine and sample

The dataset has two views: **Overview** (citation results) and **Sources** (the pages each engine cited). Example row (values are illustrative):

```json
{
  "prompt": "What is the best web scraping platform for a small data team?",
  "engine": "perplexity",
  "country": "us",
  "sample": 1,
  "status": "ok",
  "brandCited": true,
  "brandMentioned": true,
  "brandLinked": true,
  "brandLinkRank": 2,
  "brandMentionOrder": 1,
  "competitorsMentioned": ["Bright Data", "Zyte"],
  "competitorsLinked": ["Bright Data"],
  "winner": null,
  "sources": [
    { "rank": 1, "url": "https://example-review-site.com/best-scrapers", "domain": "example-review-site.com", "title": "Best web scraping tools" },
    { "rank": 2, "url": "https://apify.com/", "domain": "apify.com", "title": "Apify" }
  ],
  "answerExcerpt": "For a small data team, Apify is a common choice because...",
  "engineRunId": "aBcDeFgHiJkLmNoP",
  "checkedAt": "2026-12-01T14:03:22.000Z",
  "charged": true
}
```

How the main fields work:

- `brandMentioned`: the brand or an alias appears in the answer text.
- `brandLinked`: your registrable domain or a subdomain appears among the cited sources.
- `brandCited`: mentioned or linked.
- `brandLinkRank`: position of your first link among the sources. `brandMentionOrder`: order of your first mention among you and the competitors.
- `winner`: when your brand is absent, the first competitor mentioned, else the first competitor linked, else the top source domain (which may be a third-party site such as a review portal).
- `status`: `ok` (answer received), `no_answer` (the engine returned no answer for that query, common with AI Overviews) or `error`. Only `ok` rows are charged.
- URLs are normalized (tracking parameters and fragments removed). When an engine returns no structured sources, links written in the answer text are used.

#### SUMMARY and OUTPUT records

The key-value store holds a `SUMMARY` record (also saved as `OUTPUT`) with:

- `visibilityScore` from 0 to 100.
- Brand citation rate, overall and per engine, with the Wilson 95% interval. The rate uses the `ok` answers. With `samples` above 1, the interval uses the number of prompt and engine pairs as `n` (`ciN`), because repeated samples of the same pair are not independent.
- Share of voice of the brand against each competitor, by mentions and by links.
- Prompts where the brand never appeared.
- `sourceGaps`: third-party domains and URLs most cited in answers where the brand was absent, with domains cited next to a competitor ranked first. Pages on competitor domains are listed apart in `competitorSources`: they show what content wins, but they are not outreach targets.
- Consistency across samples, when `samples` is greater than 1.
- Counts of checks: ok, errors and charged.

#### REPORT.html

A self-contained HTML report with the same results, written for a client: clean layout, printable, in English, Portuguese (Brazil) or Spanish, with your agency name when `reportBrandName` is set. It ends with the evidence for each answered check: the answer excerpt, where your brand was mentioned and linked, and the pages that linked each competitor.

### Sample study

We ran this Actor on 100 English buyer prompts across 10 software categories, with 5 tracked brands per category. Engine: Google AI Overviews only, 1 sample per prompt, 30 November 2026 (UTC). The AI Overviews scraper takes no country, so the answers are not tied to one locale. 99 prompts returned an overview.

- The audited brand was cited (named or linked) in 76 of 99 answers and linked to its own site in 20. Asana was cited in 10 of 10 project management answers and linked in none.
- youtube.com was a cited source in 54 of 99 answers and reddit.com in 55 of 99. The audited brands' own sites: 20 of 637 citations.

With 10 answers per category, most one-answer differences between brands are within noise; the study shows the Wilson 95% interval for each category.

Full study, tables and the exact input: https://api.apify.com/v2/key-value-stores/k7SSW1lFgQCagvehp/records/study.html. Sample HTML report from the CRM run: https://api.apify.com/v2/key-value-stores/k7SSW1lFgQCagvehp/records/sample-report.html.

### How much does an AI visibility audit cost?

A run has two cost components, and both are shown here so you can estimate before you start.

**1. This Actor:** one event, `citation-check`, at **US$ 0.02** for each answer received (`status: ok`). Checks that fail or return no answer are not charged.

**2. The official Apify engine scrapers** this Actor calls on your behalf: [ChatGPT Search Scraper](https://apify.com/apify/chatgpt-search-scraper), [Perplexity Search Scraper](https://apify.com/apify/perplexity-search-scraper), [Gemini Search Scraper](https://apify.com/apify/gemini-search-scraper) and [Google AI Overviews Scraper](https://apify.com/apify/google-ai-overviews-scraper). They run in your account and charge per result according to your Apify plan. Prices checked on 30 November 2026:

| Engine scraper | Free plan, per result | Starter (Bronze) plan, per result |
|---|---|---|
| Google AI Overviews | US$ 0.003 | US$ 0.002 |
| ChatGPT | US$ 0.20 | US$ 0.005 |
| Perplexity | US$ 0.20 | US$ 0.013 |
| Gemini | US$ 0.20 | US$ 0.005 |

Check each scraper's Pricing tab for the current value on your plan.

#### Example: 20 prompts on 4 engines, 1 sample, paid plan

| Item | Calculation | Cost |
|---|---|---|
| Citation checks | 80 x US$ 0.02 | US$ 1.60 |
| AI Overviews | 20 x US$ 0.002 | US$ 0.04 |
| ChatGPT | 20 x US$ 0.005 | US$ 0.10 |
| Perplexity | 20 x US$ 0.013 | US$ 0.26 |
| Gemini | 20 x US$ 0.005 | US$ 0.10 |
| **Total** | | **about US$ 2.10** |

With `samples: 3`, the same audit is 240 checks and costs about US$ 6.30.

#### Can I run it on the free Apify plan?

Yes. On the free plan, the ChatGPT, Perplexity and Gemini scrapers cost **US$ 0.20 per result**, so the same 20 prompts on all four engines would cost about US$ 12 in scraper results alone. That is why the default engine is **AI Overviews**: 20 prompts cost about US$ 0.06 in scraper results plus US$ 0.40 in citation checks.

`maxEngineSpendUsd` (default US$ 5) protects you: before starting the engines, the Actor estimates prompts x engines x samples x the scraper price (Free plan prices on the Free plan; Starter prices on any paid plan, which is the highest paid price, so on larger plans the estimate is conservative), drops the prompts that do not fit, and says so in the log and the run status. The Actor also respects the maximum cost per run you set in Apify: when that limit is reached it stops charging, finishes and tells you.

### Use AI Visibility Audit through the API, schedules and agents

#### API

Run the Actor and get the dataset in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/jonasspezia~ai-visibility-audit/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domain":"yourbrand.com","brand":"Your Brand","prompts":["best tool for X"],"engines":["ai-overviews"]}'
```

`run-sync` waits up to 300 seconds. With more than one engine, or with `samples` above 1, start the run asynchronously instead. For larger audits, start the run asynchronously (`POST /v2/acts/jonasspezia~ai-visibility-audit/runs`), wait for it to finish and read the `SUMMARY` record from the run's key-value store. Client libraries are available for [JavaScript](https://docs.apify.com/api/client/js/) and [Python](https://docs.apify.com/api/client/python/).

#### Schedules

Save your input as a task and add an [Apify schedule](https://docs.apify.com/platform/schedules) to run it every week. Comparing weekly runs shows whether your citation rate is moving beyond its confidence interval. A webhook or an integration can send the summary to Slack, email or a spreadsheet when each run finishes.

#### Apify MCP server

AI agents and assistants can call this Actor as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp):

```
https://mcp.apify.com?tools=jonasspezia/ai-visibility-audit
```

### FAQ

#### Why do results change between runs?

The engines generate a new answer each time, so the brands, their order and the sources vary. Treat one run as a sample, not as a verdict. Look at the citation rate and its interval, add `samples` or more prompts when you need a tighter interval, and compare runs over weeks.

#### Which countries are supported?

Pick the country in `countryCode`. It is passed to the ChatGPT, Perplexity and Gemini scrapers. The Google AI Overviews scraper has no country field, so its answers are not tied to the country you pick and its rows have `country` set to `null`; the report says so when AI Overviews is included. For local audits, write the city or region in the prompt itself. When Google shows no overview for a query, the row comes back as `no_answer` and is not charged.

#### Are there limits on prompts and engines?

Each engine receives all prompts in one batch, and engines run in parallel up to your account's limit of concurrent runs (5 on the Free plan, this run included); the rest wait for a free slot. If one engine fails or times out, the others still finish and the failed rows are marked `error`. If every engine fails, the run fails with a clear status message. The practical limit is your budget, controlled by `maxEngineSpendUsd` and by the maximum cost per run in Apify.

#### Is ChatGPT always returning sources?

Not always. Sometimes the ChatGPT scraper returns an answer with an empty source list while links appear in the text. The Actor reads links from the answer text in that case, so `brandLinked` still works.

#### What happens to my data?

Your input, results and report stay in your Apify account storage, under your control and retention settings. The Actor sends your prompts only to the official Apify engine scrapers listed above. It does not need personal data; use buyer questions, not customer information, as prompts.

#### Can I use the report with my clients?

Yes. Set `reportBrandName` to your agency name and `reportLanguage` to the client's language. The report does not mention this Actor.

#### I found a bug or need a feature

Open an issue in the **Issues** tab of this Actor. Include the run ID so the problem can be reproduced.

# Actor input Schema

## `domain` (type: `string`):

Domain of the brand you audit, without https://. Links to this domain or any subdomain (for example docs.example.com) count as brand links.

## `brand` (type: `string`):

Name as it appears in AI answers. Matched as a whole word, ignoring case and accents. If empty, the first part of the domain counts only when written with a capital letter, plus the domain itself.

## `brandAliases` (type: `array`):

Other names that count as a brand mention, such as product names or old names.

## `competitors` (type: `array`):

One per line: "domain.com", "Name" or "Name=domain.com". Name enables mention detection; domain enables link detection. A domain alone counts as a mention only when written out.

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

Real buying questions, one per line. 10 to 30 give a useful audit; up to 100 per run.

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

Engines to ask. Each engine runs an official Apify scraper billed to your account per answer, at your plan price. Per answer on the Free plan: AI Overviews $0.003, ChatGPT $0.20, Perplexity $0.20, Gemini $0.20. On Starter (Bronze): $0.002, $0.005, $0.013, $0.005. Higher plans pay less.

## `countryCode` (type: `string`):

Country the questions are sent from (ChatGPT, Perplexity and Gemini). Google AI Overviews does not take a country.

## `samples` (type: `integer`):

How many times to ask each prompt on each engine. AI answers vary; 3 or more samples measure consistency. Multiplies cost.

## `reportLanguage` (type: `string`):

Language of the HTML report.

## `reportBrandName` (type: `string`):

Agency or consultant name shown at the top of the report. Leave empty for no branding.

## `maxEngineSpendUsd` (type: `number`):

Ceiling for the estimated cost of the engine scrapers, which bill your account at your plan price. Prompts that do not fit are skipped, with a warning in the log and status.

## Actor input object example

```json
{
  "domain": "apify.com",
  "brand": "Apify",
  "competitors": [
    "Bright Data=brightdata.com",
    "Zyte=zyte.com"
  ],
  "prompts": [
    "best web scraping api for ai agents",
    "how to choose a web scraping api"
  ],
  "engines": [
    "ai-overviews"
  ],
  "countryCode": "us",
  "samples": 1,
  "reportLanguage": "en",
  "maxEngineSpendUsd": 5
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per prompt x engine x sample with brand and competitor detection.

## `sources` (type: `string`):

One row per source cited in each answer, with its rank.

## `report` (type: `string`):

Self-contained, printable report with score, rates, share of voice and source gaps.

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

Visibility score, citation rates with 95% Wilson intervals, share of voice, source gaps and consistency.

# 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 = {
    "domain": "apify.com",
    "brand": "Apify",
    "competitors": [
        "Bright Data=brightdata.com",
        "Zyte=zyte.com"
    ],
    "prompts": [
        "best web scraping api for ai agents",
        "how to choose a web scraping api"
    ],
    "engines": [
        "ai-overviews"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jonasspezia/ai-visibility-audit").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 = {
    "domain": "apify.com",
    "brand": "Apify",
    "competitors": [
        "Bright Data=brightdata.com",
        "Zyte=zyte.com",
    ],
    "prompts": [
        "best web scraping api for ai agents",
        "how to choose a web scraping api",
    ],
    "engines": ["ai-overviews"],
}

# Run the Actor and wait for it to finish
run = client.actor("jonasspezia/ai-visibility-audit").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 '{
  "domain": "apify.com",
  "brand": "Apify",
  "competitors": [
    "Bright Data=brightdata.com",
    "Zyte=zyte.com"
  ],
  "prompts": [
    "best web scraping api for ai agents",
    "how to choose a web scraping api"
  ],
  "engines": [
    "ai-overviews"
  ]
}' |
apify call jonasspezia/ai-visibility-audit --silent --output-dataset

```

## MCP server setup

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

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/WYPlY9qGudwOeKxxp/builds/84AYMyLRlK0UH3tbz/openapi.json
