# AI Visibility Tracker: ChatGPT, Gemini & Google (`s-r/ai-visibility-tracker`) Actor

Measure brand mentions and cited domains across ChatGPT, Gemini, Google AI Overview and AI Mode. Repeat prompts and compare share of voice with duplicate-aware counts and confidence intervals. Failed checks are free.

- **URL**: https://apify.com/s-r/ai-visibility-tracker.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** AI, SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$50.00 / 1,000 delivered 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.

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 Visibility Tracker

AI visibility tracker for brands and SEO teams comparing ChatGPT, Gemini, Google AI Overview and Google AI Mode. Collect repeated answers, inspect mentions and cited domains, and compare share of voice with explicit counts and confidence intervals.

### What this AI visibility tracker measures

Supply a brand and the questions your audience asks. Each attempted combination of prompt, engine and sample produces one answer row. Successful answers include mention counts, first-appearance rank and recognized competitor names. Sources also appear as separate citation rows when enabled. A cumulative scorecard compares the tracked brand and the competitor names you supplied, both per engine and across the selected engines.

The tracker measures the actual text returned for your chosen prompts. It does not estimate search traffic, customer awareness, sentiment or market share. A mention is a text match against the brand, aliases and a name derived from its configured domain. Rank describes first appearance among recognized names; it is not an official ranking published by the answer engine. Perplexity is not included.

### Input

The required fields are `brand` and `prompts`. A recorded research request used this input:

```json
{
  "brand": "HubSpot",
  "brandDomain": "hubspot.com",
  "competitors": ["Zoho", "Salesforce"],
  "prompts": ["best crm software for small business"],
  "samples": 1
}
```

Add `brandAliases` for alternate spellings. Set `engines` to any combination of `chatgpt`, `gemini`, `google_ai_overview` and `google_ai_mode`; all four are selected by default. The default `samples` value is three and the permitted range is one through ten. Each prompt may contain at most 2,000 characters, and the requested combinations of prompts, engines and samples must total at most 500 checks.

`country` defaults to `us` and takes a two-letter country code. `language` defaults to `en`. ChatGPT does not receive a language parameter and its rows omit that field; write the prompt in your intended language. Other engines receive the requested language, but the answer may still follow the language of the question. An unsupported country produces a free failed check for that engine while other checks continue.

`citation_rows` defaults to true. Disabling it retains nested citations on answer rows and omits the extra dataset rows. `max_checks` limits attempted checks, including failed attempts. It does not count source rows. On a free run, the tracker uses one sample, omits separate citation rows and stops after at most ten attempted checks.

### Output

Use `_type` or `record_type` to distinguish `ai_answer` and `ai_citation`. Join rows using `query_index`, `engine` and `sample`; each also has a stable `row_id`. Answer rows contain `answer_shown`, `answer_text`, `mentioned`, `mention_count`, `mention_share`, `rank`, `brand_cited`, `competitors_mentioned`, `duplicate_of_sample`, `billable` and `error`.

A failed check has no answer text or brand measurement. These values remain null because an unavailable answer does not prove the brand was absent. Source rows contain the URL, hostname, title and one-based position. Gemini additionally distinguishes inline sources supporting an answer fragment from searched sources consulted by the engine. Both types can establish a domain citation, and `brand_cited_section` reports the supporting category.

Google sources currently provide homepages rather than reliably identifying the cited page. ChatGPT sometimes returns an answer without any sources. Consequently, `brand_cited` is null when the answer has no sources or you supplied no brand domain. Matching uses the exact configured domain and its subdomains. A similarly named website or a URL containing the brand name elsewhere does not establish a citation.

The `SCORECARD` key-value record contains the latest cumulative scorecard. It includes `checks`, `answered`, `failed`, `numerator`, `denominator`, `share_of_voice`, `wilson_low`, `wilson_high`, `cited_numerator`, `cited_denominator` and `avg_rank`. A competitor supplied only as a name has unknown citation counts. Automatically inferred names are labelled `cited` or `run` in answer rows and do not receive their own scorecard entries.

### Share of voice and repeated samples

Scorecard share of voice is the fraction of distinct usable answers mentioning a brand. Identical answer text within the same prompt position and engine contributes once to numerator and denominator. Its repeated check remains in the dataset and receives `duplicate_of_sample`. The same wording at another prompt position remains a separate observation. Answer-row `mention_share` is instead the proportion of recognized name occurrences in that particular answer.

The confidence limits use a 95% Wilson interval. A zero denominator produces null values. The interval describes the selected prompts and observed answers; related answers are not independent evidence about every possible question. Deduplicating identical text reduces one source of false certainty but does not remove every dependency between answers. Named competitors and the available citation vocabulary affect first-appearance rank. Vocabulary grows as pages are collected, and already delivered measurements remain fixed.

### Pricing

One delivered usable answer is one `check` event. Failed checks, recognized refusal or error messages, missing overviews and citation rows are free. Repeated successful checks are charged even when their text is identical: the request was performed and delivered, although the repeated text is excluded from the statistical denominator. The current price shown on the actor listing is authoritative. There is no additional start event in this product's charge configuration.

A free account receives up to ten answer rows per run with one sample. The scorecard covers those delivered checks, including any free failures. A paid run may also deliver many citation rows; these extra rows do not increase the number of charged checks.

### Availability and limitations

Engines can refuse a question, return no overview, become busy or time out. Known Gemini error sentences are excluded, including recorded English and Dutch messages. An unfamiliar error sentence can escape that finite filter. Google rich answer tables and lists require complete source text: the November research recording found missing content in AI Mode, and that extraction has since been completed and verified. Do not interpret absence from an incomplete answer as proof of brand absence.

Collection proceeds in bounded pages. Direct API users follow `next_cursor` with all original input unchanged; the actor follows it automatically. Each page provides a scorecard through that page, so an interrupted run still has metrics for its delivered checks. Continuing a cursor twice repeats the same logical checks; consumers combining direct API responses should deduplicate by `row_id`.

### FAQ

#### Does an empty answer count against share of voice?

No. It remains visible as a free diagnostic row and contributes to failed checks, but it never enters the answer denominator. When there are no usable answers, share of voice and its interval remain unknown.

#### Why can a mentioned brand have an unknown citation score?

Mention detection uses answer text. Citation measurement requires both a configured brand domain and returned sources. An answer can mention your brand while providing no evidence about which domains it cited.

#### Are identical answers free?

Successful repeated checks are billable. The statistical scorecard counts identical text once within the same prompt and engine and labels subsequent occurrences, allowing you to see both delivered volume and distinct evidence.

#### Can I compare this score with all online demand?

The score applies to your prompt set, selected engines, country and observation period. Broader claims require a representative question set and a separate research design. Changing prompts can change the result even when brand visibility elsewhere has not changed.

# Actor input Schema

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

Brand name to measure.

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

Optional brand domain or HTTP URL. Exact host and subdomains determine citation matches. Without it, citation measurements are unknown.

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

Alternative spellings of the tracked brand. At most 50 names of 200 characters each.

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

Competitor names included in answer measurements and scorecards. Citation scores are unknown without competitor domains. At most 50 names of 200 characters each.

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

Questions in original order. Duplicate entries remain separate prompts. At most 500 requested checks across prompts, engines and samples.

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

Answer engines, in execution order. One check per selected engine runs in each page.

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

Requested country, normalized to lowercase. Unsupported engine countries return a free failed check.

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

Language tag passed to Gemini and Google. ChatGPT receives no language field, so its rows omit language; phrase the prompt in the desired language.

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

Repeated checks per prompt and engine. Identical answers are delivered and billable but counted once in share of voice.

## `citation_rows` (type: `boolean`):

Deliver individual free citation rows as well as nested citations. Disabled on the free tier.

## `max_checks` (type: `integer`):

Maximum attempted checks, including failures. Free runs stop at ten checks and use one sample.

## `cursor` (type: `string`):

Signed continuation returned as next_cursor. Keep all other input unchanged.

## Actor input object example

```json
{
  "brand": "HubSpot",
  "brandDomain": "",
  "brandAliases": [],
  "competitors": [],
  "prompts": [
    "best crm software for small business"
  ],
  "engines": [
    "chatgpt",
    "gemini",
    "google_ai_overview",
    "google_ai_mode"
  ],
  "country": "us",
  "language": "en",
  "samples": 3,
  "citation_rows": true,
  "max_checks": 500
}
```

# Actor output Schema

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

Answer and citation rows.

## `scorecard` (type: `string`):

Cumulative metrics over delivered checks.

## `output` (type: `string`):

Run status and counts.

# 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 = {
    "brand": "HubSpot",
    "prompts": [
        "best crm software for small business"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/ai-visibility-tracker").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 = {
    "brand": "HubSpot",
    "prompts": ["best crm software for small business"],
}

# Run the Actor and wait for it to finish
run = client.actor("s-r/ai-visibility-tracker").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 '{
  "brand": "HubSpot",
  "prompts": [
    "best crm software for small business"
  ]
}' |
apify call s-r/ai-visibility-tracker --silent --output-dataset

```

## MCP server setup

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

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/aO4t7jeuwUfwfNW5b/builds/mJr8tdfHA0Zfuuerf/openapi.json
