# AI Visibility Tracker (`burdoz/ai-visibility-tracker`) Actor

See how often AI assistants name your brand. Asks each buyer question several times on web-search AI models and reports your mention rate with a likely range, rank against competitors, and the sources cited. Includes a local-business mode: enter a trade and a city.

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

## Pricing

from $30.00 / 1,000 ai answers

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

Find out how often AI assistants name your brand when buyers ask for a recommendation.

### What it does

1. Takes your brand name and the questions buyers ask.
2. Asks each question several times on each web-search AI model you pick.
3. Reports, for every question and model:
   - how often your brand was named, with a likely range
   - your average rank among the competitors you listed
   - how often each competitor was named
   - which websites the AI cited most
   - one sample answer

### Why it asks more than once

AI answers change every time you ask. One answer tells you very little. This Actor asks each question several times (5 by default) and gives you a rate with a range, so you can tell a real change from noise.

### Local-business mode

Leave the questions empty and fill in a business type and a city. The Actor writes four buyer questions for you, such as "Who are the best HVAC repair companies in Birmingham, Alabama?"

### Engines

| Engine | What it is |
|---|---|
| Perplexity Sonar | Perplexity's search model |
| GPT-4o mini with web search | OpenAI model with live web results |
| Gemini 2.5 Flash with web search | Google model with live web results |

These are the API versions of each model with web search switched on. They track the consumer apps closely but are not identical to them.

### Cost

You pay per usable AI answer, plus the model's own usage, which Apify bills to your account through its OpenRouter connection. The run log shows the model cost per answer.

### Using your own OpenRouter key

By default the Actor uses Apify's built-in AI connection, so you need no other account. Two cases where your own OpenRouter key is better:

- **Apify Free plan:** Apify charges free accounts ten times the normal AI rate. Your own key avoids that.
- **Apify Creator plan:** that plan cannot run Store Actors, which includes the built-in AI connection. Your own key is the only way to run this Actor there.

The key is stored as a secret input and is only sent to OpenRouter.

### Output

One dataset row per question and engine. A short summary is saved as `OUTPUT` in the key-value store.

# Actor input Schema

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

The name to look for in AI answers.

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

Other ways the name is written, for example a short name.

## `domain` (type: `string`):

Your domain, for example example.com. Used to check whether AI answers cite your site.

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

Questions a buyer would type into an AI assistant. Leave empty to use local-business mode below.

## `businessType` (type: `string`):

For example: HVAC repair, roofing, plumbing. With a location, the Actor writes four buyer questions for you.

## `location` (type: `string`):

For example: Birmingham, Alabama.

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

Names to compare against. Used for rank and competitor mention rates.

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

Which web-search AI models to ask.

## `runsPerPrompt` (type: `integer`):

AI answers change from one ask to the next. Asking each question several times gives a rate and a range instead of one lucky or unlucky answer.

## `openRouterApiKey` (type: `string`):

Leave empty to use Apify's built-in AI connection. Add your own key if you are on Apify's Free plan and want to avoid its higher AI rates, or if your plan cannot run Store Actors (the Creator plan).

## Actor input object example

```json
{
  "brand": "Trane",
  "prompts": [
    "What are the most reliable central air conditioner brands?"
  ],
  "competitors": [
    "Carrier",
    "Lennox"
  ],
  "engines": [
    "perplexity-sonar",
    "gpt-4o-mini-web"
  ],
  "runsPerPrompt": 3
}
```

# 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 = {
    "brand": "Trane",
    "prompts": [
        "What are the most reliable central air conditioner brands?"
    ],
    "competitors": [
        "Carrier",
        "Lennox"
    ],
    "runsPerPrompt": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("burdoz/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": "Trane",
    "prompts": ["What are the most reliable central air conditioner brands?"],
    "competitors": [
        "Carrier",
        "Lennox",
    ],
    "runsPerPrompt": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("burdoz/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": "Trane",
  "prompts": [
    "What are the most reliable central air conditioner brands?"
  ],
  "competitors": [
    "Carrier",
    "Lennox"
  ],
  "runsPerPrompt": 3
}' |
apify call burdoz/ai-visibility-tracker --silent --output-dataset

```

## MCP server setup

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