# AI Brand Visibility Tracker (`zerausir/ai-brand-visibility-tracker`) Actor

Measure how often ChatGPT, Perplexity and Gemini mention your brand vs competitors: mention rate, rank, share of voice and the domains AI engines cite. Uses official APIs.

- **URL**: https://apify.com/zerausir/ai-brand-visibility-tracker.md
- **Developed by:** [Zerausir](https://apify.com/zerausir) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 answer analyzed (no api key needed)

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

## AI Brand Visibility Tracker — ChatGPT, Perplexity & Gemini

Find out **how often AI assistants recommend your brand** compared with your competitors. This Actor asks ChatGPT (OpenAI with web search), Perplexity and Gemini (Google Search grounding) the questions your customers ask, then measures **mention rate, ranking, share of voice and which websites the AI cites**.

Built on the **official APIs** of each engine — no browser automation, no scraping of consumer apps, no Terms-of-Service grey zone. Safe to use for agencies and companies with compliance requirements.

### Why track AI visibility (GEO / AEO)?

More and more buyers ask an AI assistant instead of searching Google. If ChatGPT or Perplexity recommends your competitor first, you lose the customer before they ever see your website. This Actor turns that black box into numbers you can track every week:

- **Mention rate** — in what % of answers your brand appears
- **First-place rate & average rank** — whether you are recommended first or last
- **Share of voice** — your mentions vs all tracked brands
- **Domain citation rate** — how often the AI links to your website as a source
- **Top cited domains** — the review sites, blogs and directories AI engines trust in your category (your PR and SEO target list)

### How to use it

1. Enter **your brand** (optionally with aliases and domain): `Notion | Notion AI | notion.com`
2. Add **competitors**, one per line, in the same format.
3. Write the **prompts** your customers would ask, or just set a **category** (e.g. `note-taking apps`) to generate prompts automatically.
4. Choose engines and how many **repeats** per prompt (AI answers vary; 2–3 repeats give stable numbers).
5. Run it. Schedule it weekly to see trends.

### Output

**Dataset** — one row per AI answer:

```json
{
  "prompt": "What is the best note-taking app for teams?",
  "engine": "perplexity",
  "targetMentioned": true,
  "targetRank": 2,
  "entities": {
    "Notion": {"mentioned": true, "rank": 2, "context": "…Obsidian then Notion…", "domainCited": false},
    "Obsidian": {"mentioned": true, "rank": 1, "domainCited": true}
  },
  "citedDomains": ["obsidian.md", "zapier.com"],
  "answer": "…full answer text…"
}
```

**SUMMARY** record (key-value store) — the metrics, overall and per engine:

```json
{
  "overall": {
    "answers": 30,
    "entities": {
      "Notion": {"mentionRate": 0.8, "firstPlaceRate": 0.43, "averageRank": 1.6, "shareOfVoice": 0.34, "domainCitationRate": 0.2}
    },
    "topCitedDomains": [{"domain": "zapier.com", "answers": 9}]
  },
  "byEngine": {"openai": {}, "perplexity": {}, "gemini": {}}
}
```

Export to JSON, CSV, Excel, or connect to Google Sheets, Looker Studio, Make, n8n or Zapier.

### Pricing

Pay only per AI answer analyzed — failed answers are never charged:

| Mode | Engines | Price per answer |
|---|---|---|
| **No API key needed** (up to 30 answers per run) | ChatGPT (OpenAI with web search) | $0.05 |
| **Your own API keys** (no limit) | ChatGPT, Perplexity, Gemini | $0.01 (the AI provider bills you directly for its usage) |

Example: 10 prompts × ChatGPT × 2 repeats = 20 answers = $1.00 without keys.

Set a maximum cost per run in the run options and the Actor stops cleanly when it is reached.

### FAQ

**Is this scraping ChatGPT's website?** No. It uses the official OpenAI Responses API with the web search tool, the Perplexity Sonar API and the Gemini API with Google Search grounding. API answers are very close to, but not always identical to, what users see in the consumer apps.

**Why do results change between runs?** AI answers are non-deterministic. Use repeats and track trends over time rather than single answers.

**Which languages are supported?** Any language the engines support. Write prompts in your customers' language and set the country code.

**Do you store my API keys?** Keys are secret inputs, encrypted by Apify and never written to the output or logs.

### Related use cases

Generative Engine Optimization (GEO), Answer Engine Optimization (AEO), LLM SEO, AI share of voice, brand monitoring in AI search, competitor benchmarking, PR target discovery.

# Actor input Schema

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

Format: Name | aliases (comma separated) | domain. Only the name is required. Example: Notion | Notion AI, notion.so | notion.com

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

One per line, same format as the brand.

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

The questions to ask each AI engine. Write them the way your customers would.

## `category` (type: `string`):

E.g. 'note-taking apps'. Adds template prompts such as 'What are the best note-taking apps?'.

## `templatePromptCount` (type: `integer`):

How many template prompts to add when a category is set (0-5).

## `market` (type: `string`):

E.g. 'Germany' or 'Latin America'.

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

Two-letter ISO code, e.g. US, DE, MX. Passed to engines that support location.

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

ChatGPT works without any key (up to 30 answers per run). Perplexity and Gemini require your own API key below.

## `repeats` (type: `integer`):

AI answers vary. Asking 2-3 times gives a more stable mention rate.

## `openaiApiKey` (type: `string`):

Use your own key and pay the lower per-answer price. Leave empty to use the managed key.

## `perplexityApiKey` (type: `string`):

Use your own key and pay the lower per-answer price.

## `geminiApiKey` (type: `string`):

Use your own key and pay the lower per-answer price.

## `models` (type: `object`):

Override model per engine, e.g. {"openai": "gpt-4.1"}.

## `includeAnswerText` (type: `boolean`):

Store the full AI answer in each result.

## `maxConcurrency` (type: `integer`):

Parallel requests.

## Actor input object example

```json
{
  "brand": "Notion | Notion AI | notion.com",
  "competitors": [
    "Obsidian | | obsidian.md",
    "Evernote | | evernote.com"
  ],
  "prompts": [
    "What is the best note-taking app for teams?"
  ],
  "templatePromptCount": 3,
  "engines": [
    "openai"
  ],
  "repeats": 1,
  "models": {},
  "includeAnswerText": true,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

No description

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

No description

# 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": "Notion | Notion AI | notion.com",
    "competitors": [
        "Obsidian | | obsidian.md",
        "Evernote | | evernote.com"
    ],
    "prompts": [
        "What is the best note-taking app for teams?"
    ],
    "engines": [
        "openai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zerausir/ai-brand-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": "Notion | Notion AI | notion.com",
    "competitors": [
        "Obsidian | | obsidian.md",
        "Evernote | | evernote.com",
    ],
    "prompts": ["What is the best note-taking app for teams?"],
    "engines": ["openai"],
}

# Run the Actor and wait for it to finish
run = client.actor("zerausir/ai-brand-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": "Notion | Notion AI | notion.com",
  "competitors": [
    "Obsidian | | obsidian.md",
    "Evernote | | evernote.com"
  ],
  "prompts": [
    "What is the best note-taking app for teams?"
  ],
  "engines": [
    "openai"
  ]
}' |
apify call zerausir/ai-brand-visibility-tracker --silent --output-dataset

```

## MCP server setup

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