# AI Visibility Tracker: ChatGPT, Claude, Gemini & Perplexity (`betterscaperever/ai-visibility-tracker-scraper`) Actor

AI visibility tracker for GEO and AEO: see if ChatGPT, Claude, Gemini, Perplexity and Google AI Overviews name your brand, with position vs competitors, sentiment, share of voice, cited sources and change since the last run. Full answers, no API keys, no subscription.

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

## Pricing

from $15.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: Brand Mentions in ChatGPT, Claude, Gemini, Perplexity & Google AI Overviews

**$0.015 per AI answer + the AI model cost** (about $0.005-0.06 per answer, ten times that on the Apify free plan unless you use your own OpenRouter key; shown in every record), with a **$2 model-cost limit per run** by default. No API keys, no subscription.

### What does AI Visibility Tracker do?

**AI Visibility Tracker** tells you whether **ChatGPT, Claude, Gemini, Perplexity and Google AI
Overviews** recommend your brand. Give it your brand, your competitors and the questions your
customers ask. It asks every question to each AI assistant with web search on and returns, for
every answer:

- **Brand mentioned?** Whether the answer names your brand or one of its aliases, and how many times.
- **Position.** Your rank among the tracked brands, by order of first appearance (1 = named first).
- **Sentiment.** Whether the answer portrays your brand as positive, neutral or negative.
- **Competitors named.** Which of your competitors appear in the same answer.
- **Share of voice.** Your mentions against the mentions of every tracked brand.
- **Cited sources.** Every link the assistant attached to its answer, and whether your own site is one of them.
- **The full answer.** The complete text, not an excerpt, so you can read what was actually said.

A run summary adds mention rate, first-position rate, average position, share of voice and
sentiment counts, overall, per engine and per prompt, plus the most cited domains. From the
second run on it also tells you **what changed since the previous run**. Use it for **GEO / AEO**
(generative and answer engine optimization) reporting, competitor benchmarks and content planning.

### Why use it instead of an AI visibility subscription?

| | AI Visibility Tracker | AI visibility SaaS tools |
|---|---|---|
| **Price** | Pay per answer | Monthly subscription |
| **Commitment** | None: run once, weekly, or on a schedule | Monthly or annual plan |
| **Engines** | ChatGPT, Claude, Gemini, Perplexity, Google AI Overviews in one run | Often a subset, more on higher tiers |
| **Models** | You choose: low-cost or flagship | Fixed by the vendor |
| **Answer text** | Complete answer and every cited link | Often a dashboard view |
| **History** | Change since the previous run, in every summary | Dashboard charts |
| **Output** | JSON, CSV, Excel, API, webhooks | Locked in a dashboard |
| **AI provider keys** | None needed, or bring your own OpenRouter key | Not applicable |

### Who is it for?

- **SEO and GEO agencies** reporting AI visibility for several clients without a seat-based tool.
- **Marketing teams** checking whether AI assistants recommend them or a competitor.
- **Content teams** finding which sites the assistants cite, to know where to earn a mention.
- **Founders** measuring how a launch or a PR push changes what AI says about the product.
- **Developers and AI agents** that need brand-visibility data as JSON, through the API or MCP.

### What data do you get?

| Field | Description |
|---|---|
| `prompt`, `engine`, `model` | The question, the assistant and the exact model that answered |
| `brandMentioned`, `brandMentions` | Whether your brand is named, and how many times |
| `brandPosition` | Rank among tracked brands by first appearance (`null` if not named) |
| `brandSentiment` | `positive`, `neutral` or `negative` (`null` if not named or not classified) |
| `brandsMentioned` | Every tracked brand found, with mentions and position |
| `competitorsMentioned` | Names of the competitors found in the answer |
| `citations`, `citedDomains` | Links attached to the answer (URL, domain, title) |
| `brandDomainCited` | Whether your website is among the cited sources |
| `webSearches` | How many web searches the assistant ran for this answer |
| `llmCostUsd` | AI model cost billed for this answer (including the 10x free-plan rate when it applies) |
| `answer` | The complete answer text |
| `country`, `runIndex`, `checkedAt` | Search location, repetition number, timestamp |

### How to track your brand in AI answers

1. Open the Actor and enter your **brand** name.
2. Add the **prompts**: the questions a customer would ask an AI assistant, one per line.
3. Add your **competitors**, so position and share of voice can be computed.
4. Pick the **AI engines** (add Google AI Overview if you want it) and the **model quality**.
5. Click **Start**. Each answer appears in the dataset as soon as it is analyzed.
6. Download the results as JSON, CSV or Excel. For the totals, open **Summary** in the run's
   Output tab (the `SUMMARY` record of the run's key-value store).
7. Run it again later, or on a schedule: the summary then shows what changed.

Good prompts are the ones real buyers type: "What is the best CRM for a small business?",
"HubSpot vs Salesforce: which one should I choose?", "Which tools do you recommend for email marketing?".

### Input

| Field | Description |
|---|---|
| `brand` | Brand name to look for (required) |
| `prompts` | Questions to ask, one per line (required) |
| `competitors` | Competitor names, used for position and share of voice |
| `engines` | `chatgpt`, `claude`, `gemini`, `perplexity` (default: these four), `google_ai_overview` (optional) |
| `modelTier` | `fast` (default, cheapest) or `flagship` (closest to the consumer apps) |
| `brandAliases` | Other spellings that count as your brand |
| `brandDomain` | Your website, e.g. `hubspot.com`: reports whether it is cited |
| `country` | Two-letter search location (ChatGPT, Claude and Gemini) |
| `runsPerPrompt` | Ask each prompt 1-10 times; AI answers vary between requests |
| `analyzeSentiment` | Classify how each answer portrays your brand (default `true`) |
| `trackHistory` | Compare each run with the previous one (default `true`) |
| `includeAnswerText` | Set to `false` to leave the answer text out of the dataset |
| `maxConcurrency` | How many answers to request at the same time, 1-20 (default `5`) |
| `maxModelCostUsd` | Stop asking new questions before the AI model cost would pass this amount, in USD (default `2`, `0` = no limit) |
| `openRouterApiKey` | Optional. Your own OpenRouter key, to pay the AI models there instead of through Apify |

```json
{
  "brand": "HubSpot",
  "brandDomain": "hubspot.com",
  "competitors": ["Salesforce", "Pipedrive", "Zoho"],
  "prompts": [
    "What is the best CRM for a small business?",
    "HubSpot vs Salesforce: which one should I choose?"
  ],
  "engines": ["chatgpt", "claude", "gemini", "perplexity"],
  "modelTier": "fast",
  "country": "US"
}
```

### Output example

One dataset record per answer (prompt x engine x run):

```json
{
  "prompt": "What is the best CRM for a small business?",
  "engine": "claude",
  "model": "anthropic/claude-haiku-5.5",
  "runIndex": 1,
  "country": "US",
  "brand": "HubSpot",
  "brandMentioned": true,
  "brandMentions": 2,
  "brandPosition": 1,
  "brandSentiment": "positive",
  "brandsMentioned": [
    { "name": "HubSpot", "mentions": 2, "position": 1 },
    { "name": "Pipedrive", "mentions": 1, "position": 2 }
  ],
  "competitorsMentioned": ["Pipedrive"],
  "citations": [
    { "url": "https://www.hubspot.com/products/crm", "domain": "hubspot.com", "title": "Free CRM Software | HubSpot" }
  ],
  "citedDomains": ["hubspot.com"],
  "brandDomainCited": true,
  "webSearches": 1,
  "llmCostUsd": 0.0112,
  "answer": "For small teams the options most often recommended are...",
  "checkedAt": "2026-11-15T13:01:54+00:00"
}
```

The run summary is saved in the key-value store under the `SUMMARY` key:

```json
{
  "brand": "HubSpot",
  "overall": {
    "answers": 8,
    "brandMentionRate": 0.875,
    "brandFirstRate": 0.5,
    "brandAveragePosition": 1.6,
    "brandShareOfVoice": 0.41,
    "brandDomainCitedRate": 0.625,
    "brandSentiment": { "positive": 5, "neutral": 2, "negative": 0 },
    "competitorMentionRates": { "Salesforce": 0.75, "Pipedrive": 0.5, "Zoho": 0.375 }
  },
  "byEngine": { "chatgpt": { "...": "same metrics per engine" } },
  "byPrompt": [{ "prompt": "...", "brandMentionRate": 1.0 }],
  "topCitedDomains": [{ "domain": "g2.com", "answers": 6 }],
  "previousRun": { "checkedAt": "2026-11-08T09:00:12+00:00", "answers": 8, "brandMentionRate": 0.75 },
  "change": {
    "overall": { "brandMentionRate": 0.125, "brandShareOfVoice": 0.03, "brandAveragePosition": -0.4 },
    "byEngine": { "chatgpt": { "...": "same changes per engine" } }
  },
  "trend": [{ "checkedAt": "2026-11-08T09:00:12+00:00", "brandMentionRate": 0.75 }, { "...": "up to 12 runs" }],
  "llmCostUsd": 0.094,
  "failedAnswers": []
}
```

`change` is the current value minus the previous one. Rates are fractions, so `0.125` means
12.5 percentage points more. For `brandAveragePosition` a negative change is an improvement: your
brand is named earlier.

### How much does it cost to track AI visibility?

The number of answers is `prompts x engines x runs per prompt`. Ten prompts on four engines, asked
once, are 40 answers. These charges appear on your usage:

1. **This Actor**: **$0.015 for every answer returned** ($15 per 1,000), plus Apify's small standard
   fee for starting a run.
   **Answers that fail are not charged**, and the run never asks for more answers than your
   maximum charge per run can pay for.
2. **The AI models**: you choose how to pay for them.
   - **Automatic (default)**: leave `openRouterApiKey` empty. Each question goes through Apify's
     [OpenRouter](https://apify.com/apify/openrouter) Actor, which bills your Apify account for
     the model usage at OpenRouter's rates. Nothing to set up.
   - **Your own key**: paste an [OpenRouter](https://openrouter.ai/settings/keys) API key in
     `openRouterApiKey`. The model usage is billed to your OpenRouter account and nothing extra
     is charged on Apify. One key covers all four assistants; keys from OpenAI, Anthropic,
     Google or Perplexity do not work.
3. **Google AI Overview, only if you select it**: the Actor runs Apify's
   [Google AI Overviews Scraper](https://apify.com/apify/google-ai-overviews-scraper) for you,
   once per repetition with all your prompts. That run is billed by that Actor at its own price.
   Queries for which Google shows no AI Overview are not charged by this Actor.

**Two separate limits.** *Maximum cost per run* (in the run options) limits this Actor's price only: the AI models are billed separately, so it does not stop them. For that there is **`maxModelCostUsd`** (default **$2**): the run stops asking new questions before the billed model cost would pass it, including the 10x rate on the Apify free plan, based on the most expensive answer seen so far for each engine. Set `0` for no limit. The Google AI Overviews Scraper run, if you select that engine, is billed by that Actor and is not part of this limit.

`llmCostUsd` in each record, and the total in the summary, show what the AI models are billed for your
run, so you always see what the AI models cost you. Sentiment adds one short request per answer
that names your brand, on a low-cost model; its cost is included in `llmCostUsd`.

Model cost per answer on the `fast` setting, as reported by the gateway in test runs on
2026-11-15 (two to four answers each, so treat them as an indication):

| Engine | Model cost per answer | Why |
|---|---|---|
| Perplexity | about $0.005 | Search is included in the model price |
| Claude | about $0.013-0.026 | One or two web searches plus the tokens read from the results |
| ChatGPT | about $0.02-0.06 | It ran two to six web searches per question |
| Gemini | about $0.043 | It ran three Google searches for one question |
| Sentiment | about $0.0001 | One short request, only when your brand is named |

**On the Apify free plan, automatic billing costs ten times more.** Apify's OpenRouter Actor
charges free-plan accounts ten times the normal rate and caps the answer length. In our tests,
one question asked to the four default engines cost about $0.08-0.12 in model usage at the
normal rate, so about $0.80-1.20 on the free plan. On the free plan, your own OpenRouter key is
much cheaper.

### Which models answer?

| Engine | `fast` | `flagship` |
|---|---|---|
| ChatGPT | `openai/gpt-6-luna` | `openai/gpt-6.1-sol` |
| Claude | `anthropic/claude-haiku-5.5` | `anthropic/claude-sonnet-5.5` |
| Gemini | `google/gemini-3.1-flash-lite` | `google/gemini-3.5-flash` |
| Perplexity | `perplexity/sonar` | `perplexity/sonar-pro` |

ChatGPT, Claude and Gemini use their provider's own web search and decide by themselves whether
to search, as they do in the apps. Perplexity always searches. The `model` field of every record
tells you exactly which model answered. OpenAI's models are served through Microsoft Azure's
OpenAI service.

**Google AI Overview** is different: it is not a model you can ask, it is the AI box on Google's
results page. The Actor reads it with Apify's Google AI Overviews Scraper, so what you get is what
Google actually showed. Google does not show an AI Overview for every query: those prompts are
listed under `failedAnswers` with the reason and are not charged. Model quality and country do
not apply to it. Reading an overview can take a minute or two.

**Sources per engine.** ChatGPT, Claude, Perplexity and Google AI Overview return the pages they
used. Gemini returns its sources only for some answers, and as Google redirect links: the
`domain` of each citation is the real site, while the `url` is the redirect. When Gemini returns
none, `citations` is empty and the record still has the answer, mentions, position and sentiment.

### How the metrics are computed

- **Mention**: the brand name or an alias appears as a whole word, ignoring case, accents and
  Markdown. A name that only appears inside a link address is not counted.
- **Position**: tracked brands are ranked by where they first appear in the answer.
- **Share of voice**: your brand's mentions divided by the mentions of all tracked brands.
- **Citations**: the links the assistant attaches to its answer; tracking parameters are removed,
  and `blog.yoursite.com` counts as `yoursite.com`.
- **Sentiment**: a low-cost AI model reads the answer and labels how it portrays your brand:
  `positive` (recommended or praised), `negative` (criticized or advised against) or `neutral`
  (only listed, or mixed). It is asked only when your brand is named.
- **Change since the previous run**: runs are compared when they share the same brand, prompts,
  engines, model quality and country. Only the summary numbers are kept between runs, in a
  key-value store in your own Apify account; answer text is never stored there.

Mentions, position, share of voice and citations use exact text matching, not an AI judgment:
the same answer always gives the same numbers. Sentiment is an AI judgment and can vary.

### Tips for reliable results

- **Repeat the prompts.** AI answers change from one request to the next. Set `runsPerPrompt` to
  3-5 and read the mention rate, not a single answer.
- **List your aliases.** Add the legal name, product names and common misspellings to `brandAliases`.
- **Use buyer questions.** "Best X for Y" and "A vs B" prompts are where recommendations happen.
- **Compare like with like.** History only links runs with the same brand, prompts, engines,
  model quality and country. Change one of them and a new history starts.
- **Start with `fast`.** Move to `flagship` for the prompts that matter most.

### Schedule it and connect your tools

Run the Actor on a schedule (daily, weekly, monthly) from Apify Console: every summary then
carries the change since the previous run and a trend of up to 12 runs. Send the results to
Google Sheets, Slack, Zapier, Make or n8n with Apify integrations, call a webhook when a run
finishes, or read the dataset with the Apify API and the JavaScript and Python clients.

### Use with AI agents via MCP

The Actor is available as a tool for AI assistants through the
[Model Context Protocol](https://docs.apify.com/platform/integrations/mcp):

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=betterscaperever/ai-visibility-tracker-scraper"
    }
  }
}
```

Example prompts: "Check whether ChatGPT and Claude recommend Acme for 'best project management
tool'", "Compare our share of voice against Globex on these five questions".

### What this Actor does not do

- It does not read the ChatGPT, Claude, Gemini or Perplexity apps or websites. Answers come from
  the providers' models with their own web search, so they are close to, but not identical to,
  what a person sees in those apps.
- It does not cover Google AI Mode, Copilot or Grok.
- It does not always get cited sources for Gemini answers (see "Sources per engine").
- It does not keep the answers between runs: only the summary numbers, for the comparison.
- It does not estimate how often a question is asked in AI search.

### FAQ

#### Is this the same answer I would get in the ChatGPT app?

Not exactly. The Actor asks the provider's model with web search on, without your account's
memory or personalization. Wording and sources can differ from the app, and from one request to
the next. Treat the results as a measurement over several runs, not as a screenshot.

#### Does it scrape ChatGPT or other AI websites?

No. It does not open or scrape the assistants' websites. Questions are sent to the providers'
models through OpenRouter's API, either via Apify's OpenRouter Actor or with your own key. The
only page read directly is Google's results page, for AI Overviews, and only when you select that
engine: Apify's own Google AI Overviews Scraper reads it.

#### Do I need API keys or accounts with OpenAI, Anthropic or Google?

No. With automatic billing you need nothing besides your Apify account. An OpenRouter key is
optional.

#### Is my OpenRouter key safe?

The key is a secret input: Apify stores it encrypted, and the Actor sends it only to OpenRouter.
It is never written to the dataset, the summary or the log.

#### Why is there no Google AI Overview for some of my prompts?

Google decides query by query whether to show an AI Overview. Long, conversational or
comparative questions often get none. Those prompts appear under `failedAnswers` and are not
charged by this Actor. Short, search-style questions get an overview more often.

#### Where is the history stored, and how do I reset it?

In a key-value store named `ai-visibility-tracker-history` in your own Apify account. It holds
only summary numbers per run. Delete that store in Apify Console to start over, or set
`trackHistory` to `false` to skip it.

#### Am I charged for answers that fail?

Not by this Actor: it charges only for answers that are returned. Failed answers are listed in
the summary under `failedAnswers`, with the reason. Model usage spent on a request that failed
can still appear on your Apify or OpenRouter bill.

#### Which languages and countries are supported?

Any language: prompts are sent exactly as you write them, with no extra instructions. Set
`country` to localize the web search for ChatGPT, Claude and Gemini.

#### Can I track several brands?

One brand per run, with any number of competitors tracked alongside it. For another brand, run
the Actor again with that brand as `brand`.

#### What should I not put in the prompts?

Confidential or personal data. Prompts are sent to OpenRouter and to the model provider.

# Actor input Schema

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

The brand name to look for in the AI answers.

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

The questions your customers would ask an AI assistant, one per line. Each prompt is asked to every selected engine.

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

Competitor brand names. Used to rank your brand's position and to compute share of voice.

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

Which AI assistants to ask. One answer is produced per prompt and engine. Google AI Overview is read from Google's results page by Apify's own scraper, which is billed separately.

## `modelTier` (type: `string`):

Fast uses each provider's low-cost model and keeps the AI model cost low. Flagship uses the models closest to what people get in the consumer apps and costs several times more.

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

Alternative names that should count as your brand, for example the legal name or a product name.

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

For example hubspot.com. When set, each answer reports whether your site is among the cited sources.

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

Two-letter country code (IT, US, DE...) used as the search location. Applied to ChatGPT, Claude and Gemini only.

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

AI answers change from one request to the next. Ask each prompt several times for a more reliable mention rate. Each run is charged.

## `analyzeSentiment` (type: `boolean`):

For every answer that names your brand, classify whether it is portrayed as positive, neutral or negative. Uses one short extra AI request per answer, on a low-cost model.

## `trackHistory` (type: `boolean`):

Keep the key numbers of each run and report what changed since the last run with the same brand, prompts, engines, model quality and country. Only metrics are stored, never answer text.

## `includeAnswerText` (type: `boolean`):

Turn off to keep the dataset small when you only need the metrics.

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

How many answers to request at the same time.

## `maxModelCostUsd` (type: `number`):

AI model usage is billed separately from this Actor's price, so the run's "Maximum cost per run" does not limit it. The run stops asking new questions before the billed AI model cost would pass this amount, including the 10x rate Apify's OpenRouter Actor charges on the free plan. 0 = no limit.

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

Leave empty to have the AI model usage billed to your Apify account automatically. Paste an OpenRouter key (it starts with sk-or-) to have it billed to your OpenRouter account instead: useful on the Apify free plan, where automatic billing costs ten times more. Keys from OpenAI, Anthropic, Google or Perplexity do not work. The key is stored encrypted and is sent only to OpenRouter.

## Actor input object example

```json
{
  "brand": "HubSpot",
  "prompts": [
    "What is the best CRM for a small business?",
    "HubSpot vs Salesforce: which one should I choose?"
  ],
  "competitors": [
    "Salesforce",
    "Pipedrive",
    "Zoho"
  ],
  "engines": [
    "chatgpt",
    "claude",
    "gemini",
    "perplexity"
  ],
  "modelTier": "fast",
  "runsPerPrompt": 1,
  "analyzeSentiment": true,
  "trackHistory": true,
  "includeAnswerText": true,
  "maxConcurrency": 5,
  "maxModelCostUsd": 2
}
```

# Actor output Schema

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

One record per answer: brand mention, position, sentiment, competitors and cited sources.

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

Mention rate, share of voice, sentiment and position per engine and prompt, change since the previous run, failed answers.

# 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": "HubSpot",
    "prompts": [
        "What is the best CRM for a small business?",
        "HubSpot vs Salesforce: which one should I choose?"
    ],
    "competitors": [
        "Salesforce",
        "Pipedrive",
        "Zoho"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("betterscaperever/ai-visibility-tracker-scraper").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": "HubSpot",
    "prompts": [
        "What is the best CRM for a small business?",
        "HubSpot vs Salesforce: which one should I choose?",
    ],
    "competitors": [
        "Salesforce",
        "Pipedrive",
        "Zoho",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("betterscaperever/ai-visibility-tracker-scraper").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": "HubSpot",
  "prompts": [
    "What is the best CRM for a small business?",
    "HubSpot vs Salesforce: which one should I choose?"
  ],
  "competitors": [
    "Salesforce",
    "Pipedrive",
    "Zoho"
  ]
}' |
apify call betterscaperever/ai-visibility-tracker-scraper --silent --output-dataset

```

## MCP server setup

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

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/TldMjKrjkh0imeHsi/builds/wQ5y9QegFsxeEhyKb/openapi.json
