# AI Visibility Tracker | AI Overview + ChatGPT Claude Gemini (`andok/ai-visibility-mcp`) Actor

Agent-ready AI visibility check: Google AI Overview plus BYO OpenAI, Anthropic and Gemini answers. Brand mentions, citations and share of voice per prompt. $0.02/engine check, empty engines free.

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

## Pricing

from $20.00 / 1,000 engine checks

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 (AI Overview + ChatGPT, Claude, Gemini)

Find out whether your brand shows up when people ask AI. This Actor asks every prompt you give it to **Google AI Overview** and to the LLMs you choose (**OpenAI**, **Anthropic**, **Gemini**, bring your own API keys), then returns structured brand mentions, citations and **share of voice** against your competitors. It is built as an agent-ready PPE Actor: one structured JSON call per run, flat rows that are easy to pipe into a spreadsheet, a BI tool or another AI agent.

### What you get

For every prompt x engine pair you get one dataset row:

- whether your brand was **mentioned** and where it ranked among the brands you track
- whether the engine **cited** your domain (AI Overview citations)
- which **competitors** appeared in the same answer
- a **share of voice** value between 0 and 1 (your mention divided by all tracked brands mentioned)
- rough **sentiment** around your mention (positive, neutral, negative)
- a short answer excerpt, the model used and a clear `status`

A `SUMMARY` record in the key-value store rolls everything up per engine: mention rate, citation rate and average share of voice.

### Input

| Field | Required | Description |
|---|---|---|
| brand | yes | Brand name or domain, e.g. `Notion` or `notion.so` |
| prompts | yes | 1 to 50 buyer-style questions |
| competitor_brands | no | Competitors tracked in the same answers |
| brand_aliases | no | Extra spellings or domains that count as your brand |
| engines | no | `ai_overview`, `openai`, `anthropic`, `gemini` (default: all) |
| openaiApiKey / anthropicApiKey / geminiApiKey | per engine | Your own keys, stored as secrets |
| openaiModel / anthropicModel / geminiModel | no | Override the default models |
| country, language | no | Google SERP localisation for AI Overview |
| useApifyProxy | no | Use the Apify `GOOGLE_SERP` proxy for Google (recommended) |

```json
{
  "brand": "Notion",
  "competitor_brands": ["Asana", "ClickUp", "Trello"],
  "prompts": ["What is the best project management software for startups?"],
  "engines": ["ai_overview", "openai"],
  "openaiApiKey": "sk-..."
}
```

### Output example

```json
{
  "engine": "openai",
  "prompt": "What is the best project management software for startups?",
  "brand": "Notion",
  "status": "ok",
  "charged": true,
  "brand_mentioned": true,
  "brand_cited": false,
  "brand_position": 2,
  "brand_sentiment": "positive",
  "competitors_mentioned": ["Asana", "ClickUp"],
  "share_of_voice": 0.333,
  "answer_excerpt": "For startups, popular options are Asana, Notion and ClickUp...",
  "model": "gpt-4o-mini",
  "error": null
}
```

### Pricing and cost math

- Actor start: **$0.02** (once per run)
- **Engine check: $0.02**, charged only when an engine returns a real answer

You are **not charged** for engines that return nothing: no AI Overview shown for the query, blocked or failed requests, invalid API keys, or LLM engines you selected without supplying a key (those rows are marked `skipped`).

Example: 10 prompts x 4 engines = 40 checks. If 8 of the Google queries show no AI Overview you pay for 32 checks: 32 x $0.02 + $0.02 start = **$0.66**. LLM token costs are billed by OpenAI, Anthropic and Google on your own keys, typically a fraction of a cent per answer.

### Limitations

- Google AI Overview is only shown for some queries and countries, and Google blocks plain datacenter traffic. Use the Apify proxy on the platform; local runs without a proxy often return `empty` or a CAPTCHA error.
- Mention detection is text matching on the answer. Short or ambiguous brand names (for example "Notion" the common noun) can produce false positives; use `brand_aliases` and domains to sharpen results.
- LLM answers come from the base model API without live web browsing, so they reflect model knowledge rather than a ChatGPT search session.
- ChatGPT Search and Perplexity HTML scraping are not included in this version.

### Reviews

If this Actor helped, leave a short Store review.

# Actor input Schema

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

Brand name or domain to track (e.g. Notion or notion.so).

## `brand_aliases` (type: `array`):

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

## `competitor_brands` (type: `array`):

Competitors tracked in the same answers. Used to compute share of voice.

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

Questions to ask every engine (1-50). Write them like real buyer queries.

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

Engines to check: ai_overview, openai, anthropic, gemini. LLM engines without an API key are skipped and not charged.

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

Your own key (BYO). Required for the openai engine.

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

Your own key (BYO). Required for the anthropic engine.

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

Your own Google AI Studio key (BYO). Required for the gemini engine.

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

Chat model used for the openai engine.

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

Model used for the anthropic engine.

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

Model used for the gemini engine.

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

Two-letter country code for the Google SERP (gl parameter).

## `language` (type: `string`):

Interface language for the Google SERP (hl parameter).

## `useApifyProxy` (type: `boolean`):

Route the Google SERP request through the Apify GOOGLE_SERP proxy group. Strongly recommended on the platform.

## `timeoutSeconds` (type: `integer`):

HTTP timeout for the Google SERP request.

## `concurrency` (type: `integer`):

Parallel prompt x engine checks.

## Actor input object example

```json
{
  "brand": "Notion",
  "competitor_brands": [
    "Asana",
    "ClickUp",
    "Trello"
  ],
  "prompts": [
    "What is the best project management software for startups?"
  ],
  "engines": [
    "ai_overview",
    "openai",
    "anthropic",
    "gemini"
  ],
  "openaiModel": "gpt-4o-mini",
  "anthropicModel": "claude-haiku-4-5",
  "geminiModel": "gemini-2.5-flash",
  "country": "us",
  "language": "en",
  "useApifyProxy": true,
  "timeoutSeconds": 25,
  "concurrency": 3
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

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

No description

## `run` (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",
    "competitor_brands": [
        "Asana",
        "ClickUp",
        "Trello"
    ],
    "prompts": [
        "What is the best project management software for startups?"
    ],
    "engines": [
        "ai_overview",
        "openai",
        "anthropic",
        "gemini"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("andok/ai-visibility-mcp").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",
    "competitor_brands": [
        "Asana",
        "ClickUp",
        "Trello",
    ],
    "prompts": ["What is the best project management software for startups?"],
    "engines": [
        "ai_overview",
        "openai",
        "anthropic",
        "gemini",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("andok/ai-visibility-mcp").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",
  "competitor_brands": [
    "Asana",
    "ClickUp",
    "Trello"
  ],
  "prompts": [
    "What is the best project management software for startups?"
  ],
  "engines": [
    "ai_overview",
    "openai",
    "anthropic",
    "gemini"
  ]
}' |
apify call andok/ai-visibility-mcp --silent --output-dataset

```

## MCP server setup

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

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/AHBJ4ypd087hgOiLQ/builds/MBa4hbt0V4cLuPXVz/openapi.json
