# AI Brand Visibility: ChatGPT, Claude, Gemini & Perplexity (`fjordlabs/ai-brand-visibility`) Actor

Track if ChatGPT, Claude, Gemini and Perplexity mention your brand and competitors: mention rank, sentiment, cited URLs and domains, share of voice. Uses your own API keys via the official APIs. Failed answers are free.

- **URL**: https://apify.com/fjordlabs/ai-brand-visibility.md
- **Developed by:** [Mivah](https://apify.com/fjordlabs) (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

from $3.50 / 1,000 ai answer analyzeds

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/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 Brand Visibility Tracker: ChatGPT, Claude, Gemini & Perplexity Mentions

Find out whether **ChatGPT, Claude, Gemini and Perplexity recommend your brand** when people ask them for advice. Add the questions your customers ask, your brand and your competitors, and your own API keys. For every prompt and every AI, the Actor stores the answer and tells you: **is your brand mentioned, in which position, with what tone, which competitors appear before you, and which websites the AI cites**. That is the core of GEO / AEO (generative engine optimization) and "AI share of voice" tracking, as structured rows you can chart over time.

Built for marketing and SEO teams, agencies reporting AI visibility to clients, founders checking how AI assistants describe their product, and AI agents that need a quick brand check.

**Bring your own keys (BYOK).** The Actor calls each provider's **official API** with your key, so you pay OpenAI / Anthropic / Google / Perplexity directly at their normal token prices (usually well under a cent per answer) and our fee stays tiny. No scraping of chat websites, no shared accounts, no markup on tokens.

![Example output of AI Brand Visibility Tracker: a table with answer, brandMentioned, brandRank, sentiment, competitors and more](https://api.apify.com/v2/key-value-stores/bp61pnREuVYPEvqbu/records/output-ai-brand-visibility)

### What you get per answer

- 🤖 **The answer** from each AI (OpenAI Responses API, Anthropic Messages API, Gemini API, Perplexity Sonar), with model name, token usage and latency
- ✅ **Brand mentioned?** For your brand and each competitor, with aliases and domains (`"Acme | Acme Inc | acme.com"`)
- 🥇 **Mention rank:** the order in which brands first appear, so you see who the AI names first
- 🙂 **Sentiment per brand:** positive / negative / mixed / neutral, from simple transparent word rules on the sentences that mention the brand (no extra LLM call, no extra cost)
- 🔗 **Citations:** the sources the AI cites (Perplexity, and ChatGPT / Claude / Gemini with web search on) plus URLs written in the answer, with their domains, and whether **your domain** is cited
- 📊 **Share of voice:** your mentions as a share of all tracked-brand mentions in the answer

### Why this one?

- **Four AIs in one run**, same prompts, same analysis, one tidy dataset.
- **Your keys, official APIs.** Stable and within each provider's terms. Keys are secret inputs, stored encrypted by Apify, and never logged or written to the output.
- **Web search when you want it.** Turn on `webSearch` to let ChatGPT, Claude and Gemini use their own search tools (closer to what chat users see, with citations). Perplexity always searches.
- **Failed answers are free.** A wrong key, an unknown model, a rate limit or an empty answer comes back as an `error` row and isn't charged. After a bad key the Actor stops calling that provider.
- **Analyze answers you already have.** Paste answer texts from any source into `answers` and get the same metrics without any API key.

### Input example

```json
{
  "prompts": [
    "What are the best web scraping platforms for developers?",
    "Which tools can I use to monitor competitor prices automatically?"
  ],
  "brands": ["Apify | apify.com"],
  "competitors": ["Bright Data | brightdata.com", "Zyte | Scrapinghub | zyte.com", "ScrapingBee | scrapingbee.com"],
  "openaiApiKey": "sk-…",
  "perplexityApiKey": "pplx-…",
  "webSearch": true
}
```

Each prompt is asked once per provider you give a key for: 2 prompts × 2 providers = 4 rows.

### Output example (one row, shortened)

```json
{
  "prompt": "What are the best web scraping platforms for developers?",
  "provider": "openai",
  "model": "gpt-5-mini-2025-08-07",
  "webSearch": true,
  "brandMentioned": true,
  "brandRank": 2,
  "brandSentiment": "positive",
  "brandCited": true,
  "competitorsMentioned": ["Bright Data", "Zyte"],
  "mentionOrder": ["Bright Data", "Apify", "Zyte"],
  "shareOfVoice": 0.5,
  "brands": [
    {"name": "Apify", "type": "brand", "mentioned": true, "mentions": 2, "rank": 2, "sentiment": "positive", "cited": true, "citedUrls": ["https://apify.com/store"]},
    {"name": "Bright Data", "type": "competitor", "mentioned": true, "mentions": 1, "rank": 1, "sentiment": "mixed", "cited": true, "citedUrls": ["https://brightdata.com/products"]},
    {"name": "ScrapingBee", "type": "competitor", "mentioned": false, "mentions": 0, "rank": null, "sentiment": null, "cited": false, "citedUrls": []}
  ],
  "citations": [
    {"url": "https://brightdata.com/products", "domain": "brightdata.com", "title": "Bright Data products", "source": "api"},
    {"url": "https://apify.com/store", "domain": "apify.com", "title": "Apify Store", "source": "api"}
  ],
  "citedDomains": ["brightdata.com", "apify.com"],
  "answer": "Here are the most popular web scraping platforms for developers: 1. **Bright Data** …",
  "answerLength": 512,
  "usage": {"inputTokens": 8123, "outputTokens": 412},
  "latencyMs": 9120,
  "checkedAt": "2026-11-08T10:00:00+00:00"
}
```

The dataset has four views: **Overview** (one line per answer), **Brands per answer**, **Citations** (one line per cited URL, easy to count domains in a spreadsheet) and **Answers**. A `SUMMARY` record holds totals and the brand-mention count per provider.

### Pricing

| Event | Price |
|---|---|
| Actor start | $0.00005 |
| Analyzed AI answer (one prompt × one AI) | **$0.005** |
| Failed answer (bad key, rate limit, empty answer…) | **free** |

25 prompts on all 4 AIs = 100 answers = **$0.50** on Apify. The tokens are billed by each provider to your own key: with small default models and web search off that is typically a fraction of a cent per answer; web search adds the provider's search fee.

### Use cases

- **Weekly AI visibility report:** schedule the same prompt set and chart `brandMentioned`, `brandRank` and share of voice per AI over time.
- **Competitor benchmarking:** which competitor does each AI name first for your category's buying questions?
- **Content and PR targeting:** the **Citations** view shows which sites AI engines rely on, so you know where coverage matters.
- **Brand safety:** spot answers with negative sentiment about your product.
- **AI agents:** callable through the Apify MCP server; rows are compact JSON.

Pair it with our **SEO & AI-Search Readiness Audit** (`fjordlabs/seo-ai-readiness-audit`) to check whether AI crawlers can reach your pages in the first place.

### Limits

- You need at least one API key from OpenAI, Anthropic, Google (Gemini) or Perplexity, unless you only analyze pasted `answers`. Without a key the prompts are not sent: the run finishes with one free row and a status message that explains it. Usage and rate limits of your key apply; keep `maxConcurrency` low on new keys.
- A wrong key or unknown model name gives one free error row; that provider's remaining prompts become free `skipped` rows (no further calls), and the run's status message says how many answers failed. Invalid input (for example an empty brand) ends the run before anything is called or charged, with one free error row that says what to fix.
- API answers are close to, but not identical with, what the consumer chat apps show: apps add personalization, memory, location and their own system prompts. Answers also vary between runs; repeat runs over time give the clearest trend.
- Mentions are found by exact name, alias and domain matching (case-insensitive, whole words). Add common spellings as aliases. Sentiment is a simple rule-based label, good for spotting clearly positive or negative mentions, not a nuanced opinion score.
- Gemini's citations are Google redirect links; the source domain is taken from the citation title.
- Up to 500 prompts, 5,000 pasted answers (100,000 characters each) and 50 tracked brands per run.
- `maxOutputTokens` caps answers from Claude, Perplexity and non-reasoning OpenAI models; reasoning models (gpt-5, o-series) and Gemini use their normal length.
- No personal data is collected. Don't put personal data in prompts.

### Changelog

- **2026-11-24:** More FAQs and use cases in this README.
- **2026-11-15:** Blank answers in the list are skipped instead of rejecting the whole run.
- **2026-11-10:** Invalid input now ends as a successful run with one free error row that says what to fix, instead of a failed run.
- **2026-11-08:** Built, reviewed and tested on Apify before launch.

### How to use AI Brand Visibility Tracker

1. Add the **prompts** your customers ask an AI assistant.
2. Add **your brand** and **competitors** as "Name | alias | domain.com".
3. Paste at least one **API key** (OpenAI, Anthropic, Gemini or Perplexity) and optionally turn on **webSearch**.
4. Click **Start**, then open the **Overview**, **Brands per answer** or **Citations** view.

### Use it from code (API)

Run it from Python with the official client (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("fjordlabs/ai-brand-visibility").call(run_input={'prompts': ['What are the best CRM tools for small businesses?'], 'brands': ['Acme CRM | acmecrm.com'], 'competitors': ['HubSpot | hubspot.com'], 'openaiApiKey': '<YOUR_OPENAI_KEY>'})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Or with one HTTP call that returns the results directly:

```bash
curl -X POST "https://api.apify.com/v2/acts/fjordlabs~ai-brand-visibility/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" -d '{"prompts": ["What are the best CRM tools for small businesses?"], "brands": ["Acme CRM | acmecrm.com"], "competitors": ["HubSpot | hubspot.com"], "openaiApiKey": "<YOUR_OPENAI_KEY>"}'
```

It also works with Make, Zapier, n8n, Google Sheets and webhooks through Apify's integrations.

### Use with AI agents (MCP)

Agents can call this Actor as a tool through Apify's MCP server (mcp.apify.com). Add `fjordlabs/ai-brand-visibility` to the server's Actors. Results are clean JSON with a small default size, so they fit well in an agent's context.

### FAQ

**Do I need my own API keys?**
Yes, at least one (OpenAI, Anthropic, Google Gemini or Perplexity). The provider bills the tokens to your key at its normal price; our fee is per analyzed answer. Without keys you can still analyze pasted answers.

**Are my API keys safe?**
They are secret inputs, stored encrypted by Apify, sent only to the provider's official API, and never logged or written to the dataset.

**Is this the same answer I see in ChatGPT?**
Close, but not identical: the consumer apps add personalization, memory and their own system prompts, and answers vary between runs. Turn on webSearch for answers closer to the apps, and track trends over repeated runs.

**How is sentiment decided?**
With simple word rules on the sentences that mention each brand (for example 'reliable' vs 'expensive', with negation). It's free and transparent, but not a nuanced opinion score.

**How much does it cost to track my brand in ChatGPT, Claude, Gemini and Perplexity?**
Our fee is $0.005 per analyzed answer (one prompt on one AI), so 25 prompts on 4 AIs is 100 answers, $0.50 on Apify. Token costs are billed by each provider to your own key, typically a fraction of a cent per answer with web search off.

**How do I schedule a weekly AI visibility report?**
Create an Apify schedule that runs the same prompt set each week. Each run gives `brandMentioned`, `brandRank` and share of voice per prompt and AI, so you can chart them over time. Answers vary between runs, so repeat runs show the trend.

**Can I analyze answers without any API key?**
Yes. Paste answer texts into the `answers` input and you get the same mention, rank, sentiment and citation metrics without calling any provider. Those rows are not sent to an AI, so no provider tokens are used.

**How do I make sure my brand is matched under different spellings?**
Add aliases and domains in one entry, for example `"Acme | Acme Inc | acme.com"`. Matching is by exact name, alias and domain, case-insensitive, whole words, so common misspellings need to be listed as aliases.

**Am I charged for errors?**
No. Rows that fail are never charged; you only pay for results.

### More from fjordlabs

- [Google Trends Scraper](https://apify.com/fjordlabs/google-trends)
- [Google Trends Trending Now](https://apify.com/fjordlabs/google-trending-now)
- [Google News Scraper](https://apify.com/fjordlabs/google-news)
- [Google Play Reviews & App Data Scraper](https://apify.com/fjordlabs/google-play-reviews)
- [App Store Reviews & App Data Scraper (iOS)](https://apify.com/fjordlabs/app-store-reviews)
- [Bulk PageSpeed Insights & Lighthouse Audit](https://apify.com/fjordlabs/pagespeed-audit)
- [Google Autocomplete Keyword Expander](https://apify.com/fjordlabs/google-autocomplete)
- [App Store & Google Play Search Rank + Top Charts (ASO)](https://apify.com/fjordlabs/app-store-search-charts)
- [SEO & AI-Search Readiness Audit](https://apify.com/fjordlabs/seo-ai-readiness-audit)
- [Website Tech Stack Detector](https://apify.com/fjordlabs/tech-stack-detector)
- [Steam Reviews & Game Data Scraper](https://apify.com/fjordlabs/steam-reviews)
- [Chrome Web Store Extension Details Scraper](https://apify.com/fjordlabs/chrome-web-store)
- [Google Ads Transparency Center Scraper](https://apify.com/fjordlabs/google-ads-transparency)
- [Hacker News Scraper](https://apify.com/fjordlabs/hacker-news)
- [Shopify Store Products Scraper](https://apify.com/fjordlabs/shopify-products)
- [Sitemap URL Extractor](https://apify.com/fjordlabs/sitemap-extractor)
- [EU Public Tenders Scraper (TED)](https://apify.com/fjordlabs/eu-tenders-ted)
- [Domain Intel: WHOIS/RDAP, DNS, SSL, SPF/DMARC](https://apify.com/fjordlabs/domain-intel)
- [App Store & Google Play App Details + Developer Portfolio](https://apify.com/fjordlabs/app-details-portfolio)
- [Website Screenshot API: Full Page, Mobile, PDF](https://apify.com/fjordlabs/website-screenshot)
- [Wayback Machine Site History](https://apify.com/fjordlabs/wayback-history)
- [YouTube Data API Scraper](https://apify.com/fjordlabs/youtube-data)
- [Apple Podcasts Scraper: Search, Top Charts & Episodes](https://apify.com/fjordlabs/apple-podcasts)
- [Nordic Company Registry (Norway + Finland)](https://apify.com/fjordlabs/nordic-company-registry)
- [Google Patents Scraper](https://apify.com/fjordlabs/google-patents)

# Actor input Schema

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

Questions your customers might ask an AI assistant. Each prompt is sent once to every provider you add a key for (one result row per prompt x provider).

## `brands` (type: `array`):

Your brand, one per line. Add aliases and your domain after a | like "Acme | Acme Inc | acme.com". The domain is matched in the answer text and in cited URLs.

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

Competitor brands in the same format ("Name | alias | domain.com"). Used for mention order and share of voice.

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

Your own key from platform.openai.com. Stored encrypted by Apify, never logged or output. OpenAI bills you for the tokens.

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

Your own key from console.anthropic.com. Stored encrypted, never logged or output.

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

Your own key from aistudio.google.com. Stored encrypted, never logged or output.

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

Your own key from perplexity.ai/settings/api. Perplexity always searches the web and returns its sources. Stored encrypted, never logged or output.

## `webSearch` (type: `boolean`):

Turns on each provider's own web-search tool, so answers reflect current web results and come with source citations, closer to what chat users see. Providers charge extra for search on your key. Off: answers come from the model's own knowledge.

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

Any model your key can use with the Responses API.

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

Any Claude model ID your key can use.

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

Any Gemini model your key can use.

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

sonar, sonar-pro, sonar-reasoning-pro …

## `maxOutputTokens` (type: `integer`):

Upper limit on answer length for Claude and Perplexity, and for non-reasoning OpenAI models. Reasoning models (gpt-5, o-series) and Gemini use their normal length.

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

Store the full answer in each row. Turn off for smaller datasets if you only need the mention metrics.

## `answers` (type: `array`):

Already have AI answers (exported from another tool or copied by hand)? Paste them here as texts, or as objects {"prompt": "…", "provider": "chatgpt", "answer": "…", "citations": \["https://…"]}. They are analyzed the same way, with no API key needed.

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

How many prompts are sent to one provider at the same time. Keep it low on new or free-tier keys (rate limits); 429 responses are retried with backoff.

## Actor input object example

```json
{
  "prompts": [
    "What are the best web scraping platforms for developers?",
    "Which tools can I use to monitor competitor prices automatically?"
  ],
  "brands": [
    "Apify | apify.com"
  ],
  "competitors": [
    "Bright Data | brightdata.com",
    "Zyte | zyte.com",
    "ScrapingBee | scrapingbee.com",
    "Octoparse | octoparse.com"
  ],
  "webSearch": false,
  "openaiModel": "gpt-5-mini",
  "anthropicModel": "claude-haiku-5-5",
  "geminiModel": "gemini-2.5-flash",
  "perplexityModel": "sonar",
  "maxOutputTokens": 1024,
  "includeAnswerText": true,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `results` (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 = {
    "prompts": [
        "What are the best web scraping platforms for developers?",
        "Which tools can I use to monitor competitor prices automatically?"
    ],
    "brands": [
        "Apify | apify.com"
    ],
    "competitors": [
        "Bright Data | brightdata.com",
        "Zyte | zyte.com",
        "ScrapingBee | scrapingbee.com",
        "Octoparse | octoparse.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fjordlabs/ai-brand-visibility").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 = {
    "prompts": [
        "What are the best web scraping platforms for developers?",
        "Which tools can I use to monitor competitor prices automatically?",
    ],
    "brands": ["Apify | apify.com"],
    "competitors": [
        "Bright Data | brightdata.com",
        "Zyte | zyte.com",
        "ScrapingBee | scrapingbee.com",
        "Octoparse | octoparse.com",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("fjordlabs/ai-brand-visibility").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 '{
  "prompts": [
    "What are the best web scraping platforms for developers?",
    "Which tools can I use to monitor competitor prices automatically?"
  ],
  "brands": [
    "Apify | apify.com"
  ],
  "competitors": [
    "Bright Data | brightdata.com",
    "Zyte | zyte.com",
    "ScrapingBee | scrapingbee.com",
    "Octoparse | octoparse.com"
  ]
}' |
apify call fjordlabs/ai-brand-visibility --silent --output-dataset

```

## MCP server setup

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

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/qXA59Yl6aBcmYSQS3/builds/qeVIhPA6xGsuAweqO/openapi.json
