# AI Answer Visibility Tracker: GPT-5, Perplexity, Gemini (`opstoolkit/ai-answer-visibility`) Actor

Give it your brand, competitors and buyer questions, get whether Perplexity, Gemini and GPT-5 mention you, plus list rank, sentiment, cited sources and share of voice per brand. Official model APIs. $0.01 per answer plus model cost (about $0.005 for Perplexity).

- **URL**: https://apify.com/opstoolkit/ai-answer-visibility.md
- **Developed by:** [Elio Saliba](https://apify.com/opstoolkit) (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 answer checkeds

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 Answer Visibility Tracker: GPT-5, Perplexity, Gemini

Find out whether AI assistants recommend your brand. Give it your brand, your competitors and the questions your buyers ask. It asks Perplexity, Gemini and OpenAI's GPT-5 models each question and checks every answer: is your brand named, where does it rank, how is it described, which competitors show up and which websites the model cites. At the end you get share of voice per brand.

Built for SEO and GEO agencies, SaaS founders and marketing teams who want a number for "do LLMs recommend us", and want to see it move week by week.

**$0.01 per answer checked, plus the AI model's own cost.** For Perplexity Sonar that comes to about $0.015 per answer in total. Failed checks are free.

### What you get

One row per answer (prompt x model x run), then one share-of-voice row per brand.

| Column | Example | Notes |
|---|---|---|
| `prompt`, `model`, `run` | `What is the best open-source web scraping library for Node.js?`, `perplexity-sonar`, `1` | |
| `brandMentioned` | `true` | Your brand, under any of its names or its domain |
| `brandRank` | `1` | Position among the brands you track, counting only brands presented as list items, headings or table rows. Empty when the answer names you only in passing |
| `brandMentionOrder` | `1` | 1 means your brand was the first tracked brand the answer named |
| `brandSentiment` | `positive` | `positive`, `negative`, `mixed` or `neutral`, from the sentences about your brand |
| `brandDomainCited` | `false` | Whether a cited source is on your domain |
| `competitorsMentioned` | `["Playwright", "Puppeteer"]` | In the order the answer names them |
| `citedDomains`, `sources` | `["geekflare.com", "docs.apify.com"]` | Sources the model returned, with URL, title and position. Links written into the answer count too, marked `via: "answer_text"` |
| `brands` | `[{"brand": "Crawlee", "rank": 1, "mentionCount": 3, "matchedAs": ["Crawlee"], "context": "...", ...}]` | Full detail for every brand: count, rank, `listPosition` (the item's own number in a numbered list), matched text, how it matched, a snippet |
| `answer` | Full text | The whole answer, as the model wrote it |
| `aiCostUsd`, `promptTokens`, `completionTokens` | `0.00526` | The model cost OpenRouter reported for this answer |
| `status`, `error` | `ok` | `ok` or `error`, with a plain reason. Only `ok` is charged |

The share-of-voice rows (`type: "summary"`) have, per brand: `mentionRate` (share of answers that name it), `shareOfVoice` (its share of all brand mentions), `avgRank`, `rankedFirst`, `mentionedFirst`, `domainCitedIn`, sentiment counts, and the same numbers per model in `byModel`.

The key-value store also gets a `REPORT` (a Markdown table you can paste into a client update) and a `SUMMARY` with the 20 most cited domains. The domains tell you which pages to get listed on.

### How to use

1. **Enter your brand** and your website. Add other names if people use them, such as an old product name.
2. **Add competitors**, one per line. A name is enough. `HubSpot | HubSpot CRM | hubspot.com` adds another name and a website.
3. **Write the questions** a buyer would type, without your brand name in them. Or give a category such as `CRM software` and the Actor writes buyer-style questions for you.
4. **Pick models** and set **runs per prompt** to 3 or more. The same question gets a different answer each time, so a rate over several runs tells you more than one answer.
5. **Press Start.** Schedule it weekly to track changes.

### Input example

```json
{
  "brandName": "HubSpot",
  "brandDomain": "hubspot.com",
  "competitors": ["Pipedrive | pipedrive.com", "Salesforce | Salesforce Sales Cloud | salesforce.com", "Zoho CRM | Zoho | zoho.com"],
  "prompts": ["What is the best CRM for a small marketing agency?"],
  "category": "CRM software",
  "keywords": ["for small agencies", "with email automation"],
  "maxGeneratedPrompts": 5,
  "models": ["perplexity-sonar", "gemini-flash-lite-search", "gpt-5-mini"],
  "runsPerPrompt": 3,
  "country": "GB"
}
```

That is 6 prompts x 3 models x 3 runs = 54 answers.

### Use it from an AI agent

In Claude, ChatGPT or Cursor, add the Apify MCP server (https://mcp.apify.com) and ask in plain words. The agent fills `brandName`, `brandDomain`, `competitors` and `prompts` from your sentence, runs the Actor and reads the share-of-voice rows and the `REPORT` record.

Example prompt: "Does Perplexity recommend HubSpot when someone asks for the best CRM for a small marketing agency? Compare it with Pipedrive and Zoho CRM, ask three times, and show which sites it cites."

### Real results

From real runs on 21 Nov 2026. Perplexity Sonar, asked "What is the best open-source web scraping library for Node.js?":

| Brand | Mentioned | Rank | Sentiment |
|---|---|---|---|
| Crawlee | yes | 1 | positive |
| Playwright | yes | 2 | positive |
| Puppeteer | yes | 3 | positive |
| Scrapy, Selenium, Beautiful Soup | no | | |

The answer cited 19 sources, among them geekflare.com, context.dev, docs.apify.com and scraperapi.com. crawlee.dev itself was not cited. That gap is the kind of thing this Actor is for.

Gemini 3.1 Flash-Lite with Google Search, asked "What is the best CRM for a small marketing agency?" for a user in the UK, named HubSpot first, Pipedrive second and Zoho CRM third. Salesforce was not mentioned at all. monday.com appeared only in a closing tip, so it has no rank.

The first run took 8 seconds on 128 MB. Three models in parallel took 11 seconds.

### Models

| Model (input value) | Searches the web | Sources returned | Model cost per answer (measured) |
|---|---|---|---|
| Perplexity Sonar (`perplexity-sonar`) | Yes, every time | Yes, usually 10 to 20 | $0.005 |
| Gemini 3.1 Flash-Lite with Google Search (`gemini-flash-lite-search`) | Yes, Google Search grounding | No, see Limits | $0.03 to $0.05. It often runs 2 or 3 searches at $0.014 each |
| GPT-5 mini (`gpt-5-mini`) | No, answers from training | Only links it writes | $0.0014 |
| Gemini 3.1 Flash-Lite (`gemini-flash-lite`) | No | Only links it writes | $0.0016 |
| GPT-5 nano (`gpt-5-nano`) | No | Only links it writes | $0.0003 |

Models without search show what a model "knows" about your market from training. Search models show what it finds today. Both are useful, and they often disagree.

Any other OpenRouter model works through **Other OpenRouter models**, for example `x-ai/grok-4.3` or `anthropic/claude-haiku-4.5:online` (`:online` adds web search). Some are not available through Apify's AI proxy. The Actor tells you in the error and skips that model's remaining checks.

### Pricing

You pay two things, both on your Apify bill:

1. **This Actor: $0.01 per answer checked** (event `answer-checked`), with the brand analysis included. Apify adds its standard small fee per run start.
2. **The AI model cost.** The Actor reaches the models through [Apify's OpenRouter Actor](https://apify.com/apify/openrouter), which bills your Apify account the model's OpenRouter price. On the Apify Free plan that price is 10 times higher, so Perplexity costs about $0.05 per answer there instead of $0.005.

| Answers (Perplexity Sonar, paid Apify plan) | This Actor | Model cost (about) | Total (about) |
|---|---|---|---|
| 10 | $0.10 | $0.05 | $0.15 |
| 100 | $1 | $0.53 | $1.53 |
| 1,000 | $10 | $5.30 | $15.30 |

You need no OpenAI, Google or Perplexity account and no API key.

**Max cost per run.** Before it asks any model, the Actor works out how many answers your max cost per run covers and only asks that many. A check that would not be paid for never reaches a model, so it costs you nothing. The model cost is billed by the OpenRouter Actor, outside this Actor's max cost per run.

**Compared with other options.** Other AI-visibility trackers on the Store charge $0.026 to $0.30 per answer. A Perplexity answer here costs about $0.015 in total, with web search and sources.

### API answers and the consumer apps

This Actor uses the official model APIs. The ChatGPT, Gemini and Perplexity apps add their own system prompts, memory, personalisation and sometimes different model versions. So an answer here approximates what a person sees in the app. It is not a copy of it. Read the numbers as a trend across many runs, and compare like with like from week to week. If you need the exact app answers, Apify's own ChatGPT, Perplexity and Gemini scrapers capture those.

### Limits

- **No OpenAI web search.** Apify's AI proxy only allows providers that keep no data, and OpenAI's search does not qualify. GPT-5 mini and nano here answer from training. Use Perplexity Sonar or Gemini with search for answers based on today's web.
- **Gemini with search returns no source list** through this route, so its `sources` stay empty unless it writes links into the answer. Its cost also depends on how many searches it decides to run.
- **Sentiment is a word count.** It counts positive and negative English words in the sentences about each brand, and "not great" counts as negative. A comparison such as "lacks the automation of HubSpot" can count against HubSpot. Treat it as a flag to read the answer, not a verdict.
- **Names that are ordinary words** (Notion, Monday, Apple) also match the word in a sentence. Turn on **Match brand names case-sensitively** for those.
- **Rank needs a list.** A brand named only in a paragraph gets a mention order but no rank. Answers in plain prose have no ranks at all.
- Brand names inside code samples and links to example.com are ignored.
- Prompts written from a category are templates in English. For another market, write your own prompts in its language and set the country and answer language.

### How it finds your brand

The matching has no AI in it, so the same answer always gives the same result. It handles upper and lower case, accents, spacing and hyphens (`Hub Spot`, `hub-spot`, `HUBSPOT`), possessives, your domain written in the text, and the other names you list. A longer name wins over a shorter one, so `monday.com` is not also counted as `Monday`. Small typos in names of 7 or more letters (`Salesforse`) count when the word is capitalised and the first and last letters match. Every match says how it was found in `matchTypes`: `exact`, `variant`, `domain` or `fuzzy`.

### Works well with

- **[Structured Data Checker](https://apify.com/opstoolkit/structured-data-checker)**: check your key pages (home, product, FAQ, pricing) for missing or broken JSON-LD, then rerun this Actor later to see whether the answers change. Markup is one input among many, so read a change as a hint, not proof.
- **[Website SEO & Broken Link Audit](https://apify.com/opstoolkit/site-seo-link-audit)**: audit your own site for thin pages, missing titles and broken links on the pages that models do or do not cite.
- **[Domain Rank Lookup](https://apify.com/opstoolkit/domain-rank-lookup)**: paste the `citedDomains` from the `SUMMARY` record to see which of the cited sites are big, and which are small sites you could realistically get listed on.

A typical chain: this Actor to find the sources models cite, Domain Rank Lookup to pick the ones worth pursuing, then Structured Data Checker and Website SEO & Broken Link Audit on your own pages.

### Integrations

Everything Apify supports works here: weekly schedules, webhooks, the REST API, and the official integrations with Zapier, Make, n8n and Google Sheets. Export the dataset as JSON, CSV or Excel. The **API** tab on this page has ready code for JavaScript, Python and cURL.

To run the code on your own computer instead of on Apify, set `OPENROUTER_API_KEY` to your own OpenRouter key. Apify's AI proxy only answers inside Apify runs.

### FAQ

**Why does my brand show up in one run and not the next?**
That is how these models work. Each answer is sampled. Set runs per prompt to 3 to 5 and look at `mentionRate`.

**Can I include my brand name in a prompt?**
You can, for questions like "Is HubSpot good for agencies?". For visibility, keep it out, or every answer will mention you.

**Which country does the answer come from?**
With a country set, the model is told where the user is, Perplexity searches from that country, and written prompts name it. Without one, the providers decide.

**Something broke.**
Open an issue on the Issues tab with the run link. I reply within a day.

# Actor input Schema

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

The brand to track, written as people write it in an answer. Example: HubSpot. Needed for a real run. If brand, prompts and category are all empty, the Actor runs a demo with Crawlee instead.

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

Your website's domain, without a path. Example: hubspot.com. Used to tell when an answer cites your site, and a mention of the domain in the answer text counts as a brand mention. Optional.

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

Product names, old names or common spellings, one per entry. Example: \["HubSpot CRM"]. Case, accents, spaces and hyphens are already handled, so 'Hub Spot' and 'hubspot' match 'HubSpot' without listing them. Default: none.

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

Competitors to track, one per entry, up to 40. A name alone works: "Pipedrive". To add other names and a website, use: Name | other name, other name | domain.com. Example: \["Pipedrive | pipedrive.com", "Salesforce | Salesforce Sales Cloud | salesforce.com"]. Only listed brands get a rank and a share of voice.

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

Questions a buyer would ask an AI assistant, one per entry, up to 200 per run and 2,000 characters each. Example: \["What is the best CRM for a small marketing agency?"]. Do not name your brand in them, or every answer will mention it. Optional when you give a category.

## `category` (type: `string`):

Optional. A product category such as 'CRM software' or 'web scraping library'. The Actor adds buyer-style questions from fixed English templates, for example 'What is the best CRM software?'. They run after your own prompts.

## `keywords` (type: `array`):

Optional, used only with a category. Each one becomes a question like 'Which CRM software do you recommend for small agencies?'. Write each as it would end that sentence. Example: \["for small agencies", "with email automation"].

## `maxGeneratedPrompts` (type: `integer`):

Upper limit for prompts made from the category, from 1 to 20. Default 5. Your own prompts are not counted in it.

## `models` (type: `array`):

Models to ask, by id. Every prompt is asked to every model. Allowed: perplexity-sonar (web search with sources, about $0.005 per answer), gemini-flash-lite-search (Google Search, no source list, about $0.03 to $0.05), gpt-5-mini (no search, about $0.002), gemini-flash-lite (no search, about $0.002), gpt-5-nano (no search, under $0.001). Default: \["perplexity-sonar"]. Search models look things up on the web like the consumer apps. Models without search answer from training. The model cost is billed by Apify on top of the check price, see the README.

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

How many times each prompt is asked to each model, from 1 to 10. Default 1. AI answers change from one ask to the next, so use 3 to 5 to measure how often your brand shows up. Each run is one check. Total checks = prompts x models x runs, up to 2,000 per run.

## `customModels` (type: `array`):

Optional, for advanced use. Any model ID from openrouter.ai/models, for example \["x-ai/grok-4.3"]. Add ':online' at the end to give it web search, for example "anthropic/claude-haiku-4.5:online". Billed at that model's OpenRouter price. Some models are not available through Apify's AI proxy.

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

Optional. Where the buyer is: a two-letter code (US, GB, DE) or a country name. The model is told where the user is, Perplexity also searches from there, and written prompts mention the country. Default: not set.

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

Optional. A language name or code, for example German or de. The model is asked to answer in it. Write your prompts in that language too for answers closest to what local buyers see. Default: not set.

## `matchCase` (type: `boolean`):

Turn on when a brand name is also an ordinary word, such as Notion, Monday or Apple, so 'notion' in a sentence does not count. Default false.

## `fuzzyMatching` (type: `boolean`):

Counts one-letter typos of names with 7 or more letters, such as 'Salesforse'. Only capitalised words count, and the first and last letter must match. Default true. Each match says how it was found in `matchTypes`.

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

How many questions are sent to the models at the same time, from 1 to 10. Default 4. A higher value finishes big runs sooner.

## `saveRawResponses` (type: `boolean`):

Stores each full model response in the key-value store as RAW-0001, RAW-0002 and so on. Useful when you want to check a result by hand. Default false.

## Actor input object example

```json
{
  "brandName": "Crawlee",
  "brandDomain": "crawlee.dev",
  "competitors": [
    "Scrapy | scrapy.org",
    "Playwright | playwright.dev",
    "Puppeteer | pptr.dev",
    "Selenium | selenium.dev",
    "Beautiful Soup | BeautifulSoup, bs4"
  ],
  "prompts": [
    "What is the best open-source web scraping library for Node.js?"
  ],
  "maxGeneratedPrompts": 5,
  "models": [
    "perplexity-sonar"
  ],
  "runsPerPrompt": 1,
  "matchCase": false,
  "fuzzyMatching": true,
  "maxConcurrency": 4,
  "saveRawResponses": false
}
```

# Actor output Schema

## `checks` (type: `string`):

No description

## `report` (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 = {
    "brandName": "Crawlee",
    "brandDomain": "crawlee.dev",
    "competitors": [
        "Scrapy | scrapy.org",
        "Playwright | playwright.dev",
        "Puppeteer | pptr.dev",
        "Selenium | selenium.dev",
        "Beautiful Soup | BeautifulSoup, bs4"
    ],
    "prompts": [
        "What is the best open-source web scraping library for Node.js?"
    ],
    "models": [
        "perplexity-sonar"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("opstoolkit/ai-answer-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 = {
    "brandName": "Crawlee",
    "brandDomain": "crawlee.dev",
    "competitors": [
        "Scrapy | scrapy.org",
        "Playwright | playwright.dev",
        "Puppeteer | pptr.dev",
        "Selenium | selenium.dev",
        "Beautiful Soup | BeautifulSoup, bs4",
    ],
    "prompts": ["What is the best open-source web scraping library for Node.js?"],
    "models": ["perplexity-sonar"],
}

# Run the Actor and wait for it to finish
run = client.actor("opstoolkit/ai-answer-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 '{
  "brandName": "Crawlee",
  "brandDomain": "crawlee.dev",
  "competitors": [
    "Scrapy | scrapy.org",
    "Playwright | playwright.dev",
    "Puppeteer | pptr.dev",
    "Selenium | selenium.dev",
    "Beautiful Soup | BeautifulSoup, bs4"
  ],
  "prompts": [
    "What is the best open-source web scraping library for Node.js?"
  ],
  "models": [
    "perplexity-sonar"
  ]
}' |
apify call opstoolkit/ai-answer-visibility --silent --output-dataset

```

## MCP server setup

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