# AI Visibility Tracker – Brand Mentions in ChatGPT & Gemini (`quilty_great/ai-visibility-tracker`) Actor

Check if ChatGPT, Perplexity and Gemini mention your brand for the questions your customers ask. Get visibility %, rank vs. competitors, cited sources and sentiment. Bring your own API keys: no markup on AI costs.

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

## Pricing

from $7.00 / 1,000 check completeds

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 Visibility Tracker – Brand Mentions in ChatGPT, Perplexity & Gemini (GEO / AI SEO)

More and more buyers ask AI assistants instead of Google. **Does ChatGPT recommend you, or your competitor?** This Actor asks ChatGPT, Perplexity and Gemini the questions your customers ask and measures how visible your brand is. Use it as an **AI search rank tracker** for generative engine optimization (GEO), LLM SEO and AI share of voice.

### What you get per check

| Field | Meaning |
|---|---|
| `brandMentioned` | Was your brand named in the answer? |
| `brandFirstPosition` | Rank of your brand among you and your competitors (1 = named first) |
| `brandDomainCited` | Did the AI cite your website as a source? |
| `competitorsMentioned`, `competitorPositions` | Which competitors were named, in which order |
| `citedDomains`, `citedUrls` | Sources the AI used |
| `sentiment` | Simple positive / neutral / negative signal around your brand |
| `answerExcerpt` | First part of the answer (max 500 characters) |

The key-value store record `SUMMARY` gives you **visibility %, average position, citation % and competitor visibility per AI assistant**.

### Bring your own API keys

You use your own OpenAI, Perplexity and/or Gemini API keys. Keys are stored encrypted by Apify and only used for your run. You pay the AI provider directly at their price (often well below 1 cent per question), with **no markup**. You need an **OpenAI key** (required). Perplexity and Gemini keys are optional extras.

### Use cases

- **GEO / AI SEO:** track your share of voice in AI answers week by week.
- **Competitor monitoring:** see who AI assistants recommend in your category.
- **Content strategy:** find which websites AI assistants cite, and get your brand on them.
- **Agencies:** run reports for many clients on a schedule.

### Tips

- Write prompts the way a buyer would ask: "best CRM for a 10-person agency", not your brand name.
- Use 3 repeats for stable scores; AI answers vary between runs.
- Schedule weekly runs and compare `SUMMARY` over time.

### Pricing

**USD 0.01 per check** (one prompt × one AI assistant × one repeat), cheaper on paid Apify plans (down to USD 0.007). AI provider costs are billed to your own API account.

### Legal

The Actor calls official APIs with your own keys under your accounts. It stores no personal data. You are responsible for complying with the terms of the AI providers and for lawful use of the results.

### Support

Open an issue in the Issues tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/quilty_great/ai-visibility-tracker/changelog.md

# Actor input Schema

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

Brand name to look for in the AI answers.

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

Other spellings, e.g. product names.

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

e.g. asana.com, to check if AI answers cite your site.

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

One per line. Aliases with |, e.g. Monday.com|monday

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

Questions your customers ask AI assistants. Max 100.

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

Required. Uses the OpenAI Responses API with web search (ChatGPT). Stored encrypted, only used for your run.

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

Optional. Adds Perplexity. Leave empty to skip.

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

Optional. Adds Gemini with Google Search grounding. Leave empty to skip.

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

OpenAI model used for the answers (your own API key).

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

Perplexity model used for the answers (your own API key).

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

Gemini model used for the answers (your own API key).

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

AI answers vary. Ask each prompt several times for a more stable score.

## `answerExcerptLength` (type: `integer`):

Characters of the answer to keep (0 to 500).

## Actor input object example

```json
{
  "brand": "Asana",
  "brandDomain": "asana.com",
  "competitors": [
    "Trello",
    "Notion",
    "Monday.com|monday"
  ],
  "prompts": [
    "What is the best project management tool for small teams?"
  ],
  "openaiModel": "gpt-5-mini",
  "perplexityModel": "sonar",
  "geminiModel": "gemini-2.5-flash",
  "repeats": 1,
  "answerExcerptLength": 300
}
```

# Actor output Schema

## `results` (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": "Asana",
    "brandDomain": "asana.com",
    "competitors": [
        "Trello",
        "Notion",
        "Monday.com|monday"
    ],
    "prompts": [
        "What is the best project management tool for small teams?"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("quilty_great/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": "Asana",
    "brandDomain": "asana.com",
    "competitors": [
        "Trello",
        "Notion",
        "Monday.com|monday",
    ],
    "prompts": ["What is the best project management tool for small teams?"],
}

# Run the Actor and wait for it to finish
run = client.actor("quilty_great/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": "Asana",
  "brandDomain": "asana.com",
  "competitors": [
    "Trello",
    "Notion",
    "Monday.com|monday"
  ],
  "prompts": [
    "What is the best project management tool for small teams?"
  ]
}' |
apify call quilty_great/ai-visibility-tracker --silent --output-dataset

```

## MCP server setup

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