# AI Visibility Tracker (GEO/AEO): ChatGPT, Perplexity, Gemini (`signal_factory/ai-visibility-checker`) Actor

Track how ChatGPT, Perplexity, Gemini and Claude answer your prompts: brand mentions, position, share of voice and cited sources vs competitors. GEO/AEO monitoring via official APIs with your own keys. $0.01 per check, failed checks free.

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

## Pricing

from $10.00 / 1,000 prompt checked on one engine (your api key)s

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 (GEO/AEO): ChatGPT, Perplexity, Gemini

This Actor asks ChatGPT, Perplexity, Gemini and Claude your category questions through their official APIs, then reports whether each answer mentions your brand, in what position, which sites it cites, and your share of voice against competitors.

### Who it is for

SEO agencies doing generative engine optimization (GEO) or answer engine optimization (AEO) that report AI visibility to clients. In-house marketers who want to know if AI assistants recommend their product or a competitor's. You pick the prompts buyers type ("best CRM for small business"), add your brand and competitors, and run it once or on a weekly schedule to track brand mentions over time.

### What it costs compared with one scraper per engine

Example: 50 prompts × 4 engines, run weekly. That is 200 checks a week, about 800 a month.

| | Apify's single-engine scrapers | This Actor |
|---|---|---|
| Answers per month | 800 | 800 |
| Price per answer | $0.20 | $0.01 |
| Actor fees per month | $160.00 | $8.00 |
| Your AI provider bill | included | $5.70–21.60 (estimate below) |
| **Total per month** | **$160.00** | **$13.70–29.60** |

The $0.20 is the listed price of Apify's own ChatGPT, Perplexity and Gemini search scraper Actors in November 2026, one Actor per engine.

Your provider bill for 200 checks per engine per month, estimated from each provider's list prices with the default models:

| Engine | Cost per check | 200 checks |
|---|---|---|
| ChatGPT (`gpt-6-luna`) | $0.011–0.020 | $2.20–4.00 |
| Perplexity (`perplexity/sonar`) | $0.004–0.008 | $0.80–1.60 |
| Gemini (`gemini-3.5-flash-lite`) | $0.0015–0.045 | $0.30–9.00 |
| Claude (`claude-haiku-5-5`) | $0.012–0.035 | $2.40–7.00 |
| **Total** | | **$5.70–21.60** |

The range depends on how many web searches the model runs per answer. The low Gemini figure applies while you stay inside the 5,000 free search queries Google includes each month on paid keys. These are list-price estimates, not measured averages. Each row of your results shows the estimate for that call in `estimatedApiCostUsd`.

### You bring your own API keys

**This Actor never uses our keys. You paste your own OpenAI, Perplexity, Google, Anthropic or OpenRouter key. Your AI provider bills your usage directly. This Actor only charges a $0.01 analysis fee per successful check.**

You need a key only for the engines you select. One OpenRouter key can cover all four.

### What you get

- One run asks up to 4 engines the same prompts and returns every answer in the same row format.
- Each answer is checked for your brand and each competitor, with the order in which they are first mentioned.
- Every cited URL is listed, and `brandCited` tells you if your own domain is among them.
- Share of voice is your brand's mentions divided by all tracked brand mentions in the answer.
- A `SUMMARY` record gives mention rate, average position and citation rate per engine and per brand.
- Failed checks are recorded with a reason and cost nothing.
- Keys are tested with a free call before the run, so a bad key is reported before any paid request.
- Runs work with Apify schedules, so a weekly schedule gives you a trend over time.

### What it does not do

It does not open or scrape chatgpt.com, perplexity.ai or gemini.google.com. It uses the developer APIs with web search turned on. Those answers can differ from what a logged-in person sees in the ChatGPT or Gemini app, which add personalization, memory and location. Answers also change between runs, so judge trends across prompts and weeks.

### Quick start

1. Get a key for at least one engine (see [Get your keys](#get-your-keys)).
2. Run with an input like this:

```json
{
  "prompts": ["best CRM for small business", "Pipedrive vs HubSpot for a 5-person sales team"],
  "brandName": "Pipedrive",
  "brandDomain": "pipedrive.com",
  "competitors": [{ "key": "HubSpot", "value": "hubspot.com" }, { "key": "Zoho CRM", "value": "zoho.com" }],
  "engines": ["chatgpt", "perplexity", "gemini"],
  "openaiApiKey": "sk-...",
  "perplexityApiKey": "pplx-...",
  "geminiApiKey": "AIza..."
}
```

3. Open the dataset for one row per prompt and engine, and the `SUMMARY` record in the key-value store for the totals.

Limits per run: 200 different prompts, 1,000 characters each. Duplicate prompts are removed. If the input has problems, the run stops before any API call and lists all of them.

### Output

A successful check. The fields are what the Actor writes; the values here are an example.

```json
{
  "engine": "perplexity",
  "model": "perplexity/sonar",
  "via": "direct",
  "prompt": "best CRM for small business",
  "brand": "Pipedrive",
  "status": "ok",
  "errorType": null,
  "errorMessage": null,
  "answer": "The best CRMs for small businesses are HubSpot CRM, Pipedrive and Zoho CRM[1][2]...",
  "brandMentioned": true,
  "brandPosition": 2,
  "brandMentions": 3,
  "competitorsMentioned": [
    { "name": "HubSpot", "position": 1, "mentions": 4, "shareOfVoice": 0.44 },
    { "name": "Zoho CRM", "position": 3, "mentions": 2, "shareOfVoice": 0.22 }
  ],
  "shareOfVoice": 0.33,
  "citedUrls": ["https://www.pipedrive.com/en/pricing", "https://www.forbes.com/advisor/business/software/best-crm-small-business/"],
  "citedDomains": ["pipedrive.com", "forbes.com"],
  "brandCited": true,
  "competitorsCited": [],
  "estimatedApiCostUsd": 0.0051,
  "checkedAt": "2026-11-22T10:15:00.000Z"
}
```

A failed check, copied from a real test run with a free-tier Gemini key (provider text shortened). Same fields, no charge:

```json
{
  "engine": "gemini",
  "model": "gemini-3.5-flash-lite",
  "via": "direct",
  "prompt": "best CRM for small business",
  "brand": "Pipedrive",
  "status": "error",
  "errorType": "no_credit",
  "errorMessage": "The provider account has no credit or billing set up (Gemini: enable billing; Google Search grounding is not available on free-tier keys). (HTTP 429: You exceeded your current quota, please check your plan and billing details...)",
  "answer": null,
  "brandMentioned": null,
  "brandPosition": null,
  "brandMentions": null,
  "competitorsMentioned": [],
  "shareOfVoice": null,
  "citedUrls": [],
  "citedDomains": [],
  "brandCited": null,
  "competitorsCited": [],
  "estimatedApiCostUsd": null,
  "checkedAt": "2026-11-22T04:37:58.168Z"
}
```

`brandPosition` is the order of first mention among your brand and the competitors you listed, 1 being first. It is `null` when your brand is not mentioned.

The `SUMMARY` record, written every 10 checks and at the end:

```json
{
  "brand": "Pipedrive",
  "totalChecks": 6,
  "failedChecks": 1,
  "overall": [
    { "name": "Pipedrive", "isBrand": true, "checks": 5, "mentionRate": 0.8, "avgPosition": 1.75, "citationRate": 0.4, "shareOfVoice": 0.31 },
    { "name": "HubSpot", "isBrand": false, "checks": 5, "mentionRate": 1, "avgPosition": 1.2, "citationRate": 0.2, "shareOfVoice": 0.45 }
  ],
  "perEngine": { "chatgpt": ["..."], "perplexity": ["..."], "gemini": ["..."] },
  "engineStatus": [
    { "engine": "chatgpt", "via": "direct", "model": "gpt-6-luna", "status": "ok", "message": null },
    { "engine": "claude", "via": null, "model": null, "status": "skipped_no_key", "message": "No API key. Fill \"anthropicApiKey\" (Claude (Anthropic)) or \"openrouterApiKey\"." }
  ],
  "chargedChecks": 5,
  "stoppedReason": null,
  "notRunChecks": 0,
  "final": true
}
```

`stoppedReason` is `max_charge_reached` if your spending limit ended the run early, `aborted` if you stopped it, otherwise `null`. Rows finished before a stop stay in the dataset.

### Get your keys

| Provider | Steps | Provider cost per check |
|---|---|---|
| OpenAI (ChatGPT) | Sign in at [platform.openai.com](https://platform.openai.com), add prepaid credit under Billing, create a key at [platform.openai.com/api-keys](https://platform.openai.com/api-keys), paste it into `openaiApiKey`. | $0.011–0.020 |
| Perplexity | Sign in at [perplexity.ai](https://www.perplexity.ai), open the API section of your account settings, add credit, generate a key ([guide](https://docs.perplexity.ai/docs/admin/api-key-management)), paste it into `perplexityApiKey`. | $0.004–0.008 |
| Google Gemini | Create a key at [aistudio.google.com/apikey](https://aistudio.google.com/apikey), then enable billing on its Google Cloud project. Free-tier keys cannot use Google Search grounding. Paste it into `geminiApiKey`. | $0.0015–0.045 |
| Anthropic (Claude) | Sign in at [platform.claude.com](https://platform.claude.com), add credit under Billing, create a key under Settings > API keys, paste it into `anthropicApiKey`. | $0.012–0.035 |
| OpenRouter (any engine) | Sign in at [openrouter.ai](https://openrouter.ai), buy credits, create a key at [openrouter.ai/keys](https://openrouter.ai/keys), paste it into `openrouterApiKey`. | About the same as direct; Perplexity Sonar is $0.006–0.008. OpenRouter adds a fee when you buy credits. |

For each engine the Actor uses that engine's own key if you gave one, otherwise your OpenRouter key. The `via` field in each row says which.

### Pricing

| Event | Price |
|---|---|
| One prompt checked on one engine with your key | $0.01 |

You are charged only for checks that return an answer. Failed, skipped, retried and not-attempted checks are free. Set a maximum cost per run in Apify Console. The Actor stops before the check that would go over it. The Pricing tab also shows Apify's per-run start fee.

### Troubleshooting

| `errorType` or status | Cause | Fix |
|---|---|---|
| `skipped_no_key` (engine status) or `missing_key` (row) | You selected the engine without a key for it or an OpenRouter key. If no engine has a usable key, the run finishes with one uncharged row per prompt and engine saying which key to add. | Fill that engine's key field or `openrouterApiKey`, or deselect the engine. |
| `invalid_key` | The provider rejected the key (401, 403, or Google "API key not valid"). | Paste the full key again. Check it is active and allowed to use this API. |
| `no_credit` | No credit or billing on the account (402, OpenAI `insufficient_quota`, Google quota 429, OpenRouter account without purchased credits). | Add credit with the provider. For Gemini, enable billing on the project. |
| `rate_limited` | Still rate-limited after 3 retries. | Lower `maxConcurrency`, send fewer prompts per run, or raise your rate-limit tier with the provider. |
| `timeout` | No answer within `requestTimeoutSecs` (default 60). | Run again, or raise `requestTimeoutSecs`. |
| `model_unavailable` | The model name is wrong or your key cannot use it. | Fix the model field, or clear it to use the default. |
| `provider_error` | Another provider error, usually a 5xx, or a network failure. | Run again later. `errorMessage` contains the provider's text. |

After an `invalid_key`, `no_credit` or `model_unavailable` error, the remaining checks for that engine are marked as not attempted and no further requests go to that provider.

### FAQ

**Why do API answers differ from the ChatGPT app?**
The ChatGPT app adds its own system prompt, your chat memory, personalization and location, and may use a different model or search setup. The API with web search is the closest repeatable version you can run at scale. Gemini and Perplexity apps differ from their APIs in the same way.

**Why do I need my own keys?**
Every check is a paid request to an AI provider. With your key you pay the provider's list price on your own invoice, and the Actor fee stays at $0.01.

**Can one key cover every engine?**
Yes. An OpenRouter key with credits reaches `openai/gpt-6-luna`, `perplexity/sonar`, `google/gemini-3.5-flash-lite` and `anthropic/claude-haiku-5.5`, each with web search turned on.

**Why not call the APIs myself?**
You can. You would then handle four different response formats and citation fields, brand and competitor matching with positions, cited-domain extraction, retries and rate limits, and a summary across engines and weeks. This Actor does that for $0.01 a check and returns one row format for every engine.

**What happens to my keys?**
Apify stores them encrypted as secret input. The Actor sends each key only to its own provider, for the requests in your run. Keys are removed from logs, dataset rows and `SUMMARY` before anything is written, and an automated test checks this on every error path.

**How are mentions matched?**
Whole word and case-insensitive, on the brand name, aliases and domain. A brand named after a common word, such as "Close", will also match that word in ordinary sentences. Use a more specific name such as "Close CRM".

**Where do the citations come from?**
For Perplexity, the search results it used. For ChatGPT, Gemini and Claude, the inline citations attached to the answer.

**Is it stable?**
All four engines and the OpenRouter route are in beta. Each one follows the provider's current API documentation and is tested against documented response formats and failure cases. Report problems in the Issues tab.

# Actor input Schema

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

Questions your buyers ask AI assistants. Each prompt is sent to every selected engine. Up to 200 different prompts per run, 1,000 characters each; duplicates are removed.

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

Name to look for in the answers (case-insensitive, whole word).

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

Used to detect whether the engine cites your site, e.g. pipedrive.com. Subdomains count.

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

Other spellings or product names that count as a mention of your brand.

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

Competitor name (key) and domain (value, optional). Used for rank position and share of voice.

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

Which AI engines to ask. Each prompt x engine is one billed check.

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

Get it at https://platform.openai.com/api-keys (needs prepaid credit). Stored encrypted, never logged.

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

Get it in the API section of your Perplexity account, see https://docs.perplexity.ai/docs/admin/api-key-management (needs credit). Stored encrypted, never logged.

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

Get it at https://aistudio.google.com/apikey. Billing must be enabled on the Google project: Google Search grounding is not available on free-tier keys. Stored encrypted, never logged.

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

Get it at https://platform.claude.com (Settings > API keys, needs credit). Stored encrypted, never logged.

## `openrouterApiKey` (type: `string`):

Get it at https://openrouter.ai/keys (needs purchased credits). Covers every selected engine whose own key is empty, using each model's native web search. Stored encrypted, never logged.

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

Any Responses API model that supports the web_search tool.

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

Agent API model id.

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

Any Gemini 3+ model that supports Grounding with Google Search.

## `claudeModel` (type: `string`):

Any Claude model that supports the web search tool.

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

How many API calls run at once. Lower it if you hit rate limits on your own keys.

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

How long to wait for one AI answer before marking the check as timeout (not charged). Web-search answers usually take 5-40 s.

## Actor input object example

```json
{
  "prompts": [
    "best CRM for small business",
    "Pipedrive vs HubSpot for a 5-person sales team"
  ],
  "brandName": "Pipedrive",
  "brandDomain": "pipedrive.com",
  "competitors": [
    {
      "key": "HubSpot",
      "value": "hubspot.com"
    },
    {
      "key": "Salesforce",
      "value": "salesforce.com"
    },
    {
      "key": "Zoho CRM",
      "value": "zoho.com"
    }
  ],
  "engines": [
    "chatgpt",
    "perplexity",
    "gemini"
  ],
  "openaiModel": "gpt-6-luna",
  "perplexityModel": "perplexity/sonar",
  "geminiModel": "gemini-3.5-flash-lite",
  "claudeModel": "claude-haiku-5-5",
  "maxConcurrency": 4,
  "requestTimeoutSecs": 60
}
```

# Actor output Schema

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

Dataset rows: engine, prompt, status, brandMentioned, brandPosition, shareOfVoice, citedUrls, competitorsMentioned and error details for failed checks.

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

Dataset rows with the full answer text and cited URLs.

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

Mention rate, average position, citation rate and share of voice per engine and per brand, engine key status, charged checks and stop reason.

# 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": [
        "best CRM for small business",
        "Pipedrive vs HubSpot for a 5-person sales team"
    ],
    "brandName": "Pipedrive",
    "brandDomain": "pipedrive.com",
    "competitors": [
        {
            "key": "HubSpot",
            "value": "hubspot.com"
        },
        {
            "key": "Salesforce",
            "value": "salesforce.com"
        },
        {
            "key": "Zoho CRM",
            "value": "zoho.com"
        }
    ],
    "engines": [
        "chatgpt",
        "perplexity",
        "gemini"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("signal_factory/ai-visibility-checker").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": [
        "best CRM for small business",
        "Pipedrive vs HubSpot for a 5-person sales team",
    ],
    "brandName": "Pipedrive",
    "brandDomain": "pipedrive.com",
    "competitors": [
        {
            "key": "HubSpot",
            "value": "hubspot.com",
        },
        {
            "key": "Salesforce",
            "value": "salesforce.com",
        },
        {
            "key": "Zoho CRM",
            "value": "zoho.com",
        },
    ],
    "engines": [
        "chatgpt",
        "perplexity",
        "gemini",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("signal_factory/ai-visibility-checker").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": [
    "best CRM for small business",
    "Pipedrive vs HubSpot for a 5-person sales team"
  ],
  "brandName": "Pipedrive",
  "brandDomain": "pipedrive.com",
  "competitors": [
    {
      "key": "HubSpot",
      "value": "hubspot.com"
    },
    {
      "key": "Salesforce",
      "value": "salesforce.com"
    },
    {
      "key": "Zoho CRM",
      "value": "zoho.com"
    }
  ],
  "engines": [
    "chatgpt",
    "perplexity",
    "gemini"
  ]
}' |
apify call signal_factory/ai-visibility-checker --silent --output-dataset

```

## MCP server setup

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

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/ow6TZj4M3XCNcnjCX/builds/DGk0bIneb8hRk8XJF/openapi.json
