# AI Visibility Tracker: ChatGPT, Perplexity, Gemini & Claude (`fernando-data/ai-visibility-tracker`) Actor

See if ChatGPT, Perplexity, Gemini and Claude recommend your brand or your competitors. Mentions, position, cited sources, gaps and a white-label report. Official APIs, your own keys.

- **URL**: https://apify.com/fernando-data/ai-visibility-tracker.md
- **Developed by:** [Fernando Ribeiro](https://apify.com/fernando-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $35.00 / 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.

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 Intelligence — Brand Share of Voice in ChatGPT, Perplexity, Gemini & Claude

Find out **whether AI assistants recommend your brand or your competitors**. Give it your brand, your competitors and the questions your buyers ask. It asks **ChatGPT, Perplexity, Gemini and Claude** (with live web search) and returns, for every answer:

- whether your brand is **mentioned**, and in **which position** versus competitors,
- which **competitors** were named instead,
- which **websites the AI cited**, and whether **your own site** was one of them,
- a **share of voice** summary per engine, a list of **gaps** (questions where competitors appear and you do not), and
- a ready-to-send **white-label HTML report** with your agency name.

Run it weekly on a schedule and every report shows **what changed since the last run**.

![Sample AI visibility report](https://miro.medium.com/v2/resize:fit:1400/1*Jedad4M72km6yk06EFWdnA.jpeg)

### Try it in 2 minutes (free)

1. Get a free Gemini API key at [Google AI Studio](https://aistudio.google.com/apikey).
2. Paste it in **Google Gemini API key**. In **Advanced**, set **Gemini model** to `gemini-3.5-flash-lite` (fast on free keys).
3. Keep the sample brand and questions, click **Start**, then open the HTML report from the **Output** tab.

Free Gemini keys answer without web search, and those answers are marked. For search-grounded results, enable billing on the key or add an OpenAI, Perplexity or Anthropic key.

### Who it is for

- **SEO / GEO agencies** reporting AI visibility to clients.
- **Marketing teams** that want to know if ChatGPT recommends them.
- **Founders** checking how they show up against competitors.

### Why this Actor

- **Official APIs only.** No scraping of chat apps, so no CAPTCHAs, no broken runs when a website changes, and no terms-of-service risk.
- **Bring your own API keys.** You pay the AI providers directly at their prices, and keys are stored encrypted by Apify. A rejected key stops only that engine, never the whole run.
- **Built for reporting.** Ranks, share of voice, citations, gaps and run-over-run changes are calculated for you.
- **Fair billing.** You are charged only for answers that were actually analysed. Failed or skipped checks are free.

### Input

| Field | What to enter |
|---|---|
| Brand name / website | e.g. `HubSpot` and `hubspot.com` |
| Competitors | One per line, optionally with the site: `Salesforce (salesforce.com)` |
| Questions | What buyers ask, e.g. *"What is the best CRM for a small business?"* |
| API keys | Any of OpenAI, Perplexity, Google Gemini, Anthropic. Only engines with a key run. |
| Country | Optional, e.g. `US`, `GB`, `BR` |
| Answers per question | 1–5. AI answers vary; 2–3 give a steadier picture. |

### Output

One dataset item per answer:

```json
{
  "type": "answer",
  "prompt": "What is the best CRM for a small business?",
  "engine": "chatgpt",
  "status": "ok",
  "brandMentioned": true,
  "brandRank": 1,
  "brandDomainCited": true,
  "competitorsMentioned": ["Salesforce", "Zoho CRM"],
  "citedDomains": ["g2.com", "hubspot.com"],
  "citations": [{ "url": "https://www.g2.com/categories/crm", "title": "G2", "domain": "g2.com" }],
  "brandContext": "The best options are HubSpot (free CRM), Salesforce and Zoho CRM.",
  "answer": "…full answer text…"
}
```

Plus one `summary` item (also saved as `OUTPUT`) with share of voice, first-place rate, average position, website-cited rate per engine, the top cited domains, the gaps list and changes since the last run. The HTML report is saved as `REPORT` in the run's key-value store, with its link in `reportUrl`.

### How to read the numbers

- **Mentioned in** – % of answers that name the brand.
- **Named first in** – % of answers where the brand is the first tracked name mentioned.
- **Average position** – order of the brand's first mention among tracked names (1 = first).
- **Website cited in** – % of answers that cite the brand's own domain as a source.
- **Gaps** – questions where at least one competitor is mentioned and the brand is not. This is where to act.
- **Top cited domains** – the sites AI engines rely on for your topic. Getting featured there is usually the fastest way into AI answers.

### Notes

- Results come from each provider's official API with web search. The consumer apps can phrase answers differently, but they rely on the same models and search.
- Gemini answers may cite Google redirect links; the Actor reports the real domain of each source.
- Free-tier Gemini keys can't use Google Search. The Actor then answers without web search and marks those answers; enable billing on the key for search-grounded results. With a free key, the faster `gemini-3.5-flash-lite` model (set it in **Advanced**) avoids slow answers.
- You can change the model used for each engine in **Advanced**.

### Pricing

Pay per analysed answer (one question × one engine × one repetition). AI provider usage is billed to your own API keys.

# Actor input Schema

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

The brand you want to track in AI answers, e.g. "HubSpot".

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

Optional. Used to check whether the AI cites your own website, e.g. hubspot.com.

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

Optional. Product names or spellings that also count as a brand mention.

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

One per line. Optionally add the website in brackets, e.g. "Salesforce (salesforce.com)".

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

The questions your buyers type into ChatGPT, Perplexity, Gemini or Claude. Write them the way a customer would.

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

Engines to check. An engine only runs if you also give its API key below.

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

Your key from platform.openai.com. Stored encrypted; used only to ask the questions.

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

Your key from perplexity.ai settings. Stored encrypted.

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

Your key from Google AI Studio. Stored encrypted.

## `anthropicApiKey` (type: `string`):

Your key from the Claude Console. Stored encrypted.

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

Optional two-letter country code (US, GB, BR…) so answers reflect searches from that country where the engine supports it.

## `repetitions` (type: `integer`):

AI answers vary between asks. 2–3 repetitions give a more stable picture.

## `maxChecks` (type: `integer`):

Safety limit on questions × engines × repetitions for one run.

## `forceWebSearch` (type: `boolean`):

Make ChatGPT search the web for every question, like it does for most buying questions in the app.

## `trackHistory` (type: `boolean`):

Saves this run's numbers so the next run (for example a weekly schedule) shows what changed.

## `agencyName` (type: `string`):

Shown at the top of the HTML report so you can send it to clients as your own.

## `reportTitle` (type: `string`):

Optional. Defaults to "AI visibility report – <brand>".

## `openaiModel` (type: `string`):

Leave empty for the default.

## `perplexityModel` (type: `string`):

Leave empty for Perplexity's default.

## `geminiModel` (type: `string`):

Leave empty for the default.

## `anthropicModel` (type: `string`):

Leave empty for the default.

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

How many questions run at the same time.

## `maxRetries` (type: `integer`):

Retries on rate limits and server errors.

## `requestTimeoutSecs` (type: `integer`):

An answer that takes longer is marked as failed and is not charged.

## Actor input object example

```json
{
  "brandName": "HubSpot",
  "brandDomain": "hubspot.com",
  "competitors": [
    "Salesforce (salesforce.com)",
    "Pipedrive (pipedrive.com)",
    "Zoho CRM (zoho.com)"
  ],
  "prompts": [
    "What is the best CRM for a small business?",
    "Which CRM is easiest to use for a sales team of 10 people?"
  ],
  "engines": [
    "chatgpt",
    "perplexity",
    "gemini",
    "claude"
  ],
  "repetitions": 1,
  "maxChecks": 200,
  "forceWebSearch": true,
  "trackHistory": true,
  "maxConcurrency": 4,
  "maxRetries": 3,
  "requestTimeoutSecs": 120
}
```

# Actor output Schema

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

No description

## `report` (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 = {
    "brandName": "HubSpot",
    "brandDomain": "hubspot.com",
    "competitors": [
        "Salesforce (salesforce.com)",
        "Pipedrive (pipedrive.com)",
        "Zoho CRM (zoho.com)"
    ],
    "prompts": [
        "What is the best CRM for a small business?",
        "Which CRM is easiest to use for a sales team of 10 people?"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fernando-data/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 = {
    "brandName": "HubSpot",
    "brandDomain": "hubspot.com",
    "competitors": [
        "Salesforce (salesforce.com)",
        "Pipedrive (pipedrive.com)",
        "Zoho CRM (zoho.com)",
    ],
    "prompts": [
        "What is the best CRM for a small business?",
        "Which CRM is easiest to use for a sales team of 10 people?",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("fernando-data/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 '{
  "brandName": "HubSpot",
  "brandDomain": "hubspot.com",
  "competitors": [
    "Salesforce (salesforce.com)",
    "Pipedrive (pipedrive.com)",
    "Zoho CRM (zoho.com)"
  ],
  "prompts": [
    "What is the best CRM for a small business?",
    "Which CRM is easiest to use for a sales team of 10 people?"
  ]
}' |
apify call fernando-data/ai-visibility-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fernando-data/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/rDRWHNiKdTtgebRaT/builds/fU3zxhAGsOC3e0qdS/openapi.json
