# ChatGPT Answer Tracker: Brand Mentions & Sources (`ivanjurina/ai-answer-tracker`) Actor

See what ChatGPT answers when people ask about your market. Get the full answer, the cited sources, and whether your brand and your competitors are mentioned.

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

## Pricing

from $60.00 / 1,000 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

## ChatGPT Answer Tracker: Brand Mentions & Sources

See what ChatGPT answers when people ask about your market, and whether it mentions or cites your brand.

### What you get

- **The full answer** from ChatGPT for each prompt, with web search turned on.
- **The cited sources** as a clean list of URLs, titles and domains.
- **Brand analysis**: is your brand mentioned, how often, in which position against your competitors, and is your website cited.

You get one row for each prompt that succeeded. Duplicate prompts are run once.

### Sample output

```json
{
    "prompt": "best project management tool for small teams",
    "engine": "chatgpt",
    "model": "gpt-5-mini",
    "answer": "For small teams, Trello and Asana are the most common picks. Trello is simple and visual. Asana fits teams that need more structure...",
    "sources": [
        {
            "url": "https://asana.com/resources/best-project-management-software",
            "title": "Best project management software",
            "domain": "asana.com"
        },
        {
            "url": "https://www.example.com/reviews/project-management-tools",
            "title": "Project management tools compared",
            "domain": "example.com"
        }
    ],
    "sourceCount": 2,
    "searched": true,
    "brandMentioned": true,
    "brandMentionCount": 2,
    "brandFirstIndex": 28,
    "brandRank": 2,
    "competitorsMentioned": ["Trello"],
    "brandCited": true,
    "keyUsed": "default",
    "costUsd": null,
    "scrapedAt": "2026-11-10T09:30:00.000Z"
}
```

Field notes:

- `brandRank` is the position of your brand among your brand and competitors, ordered by who appears first in the answer. 1 means you were named first.
- `brandCited` is true when one of the sources is on your domain or a subdomain of it.
- `searched` tells you whether ChatGPT ran a web search for this answer.
- When you give no brand, `brandMentioned`, `brandRank` and `brandFirstIndex` are null, `brandMentionCount` is 0 and `competitorsMentioned` is `[]`. When you give no brand domain, `brandCited` is null.
- Competitors are matched without regard to case. Duplicates and your own brand are dropped from the competitor list.

### How to use

1. Add your prompts, one per line. Write them the way a customer would ask.
2. Optional: add your brand name, your domain and your competitors.
3. Click Start. Download the results as JSON, CSV or Excel, or read them through the API.

Schedule the Actor daily or weekly to see how the answers change over time.

### Pricing

You pay per saved answer. There are two prices:

- **Own key price.** You add your own OpenAI API key. You pay OpenAI directly for the API usage, and a lower price per answer here.
- **Our key price.** You add no key. We call OpenAI with our key and the API cost is included in the price per answer.

Failed calls are not charged. When pay per event is on, they are not in the dataset. They are listed in the `ERRORS` record in the key-value store.

For the current prices, see the Pricing tab.

### Free Apify plan

On the free Apify plan you need to add your own OpenAI API key. Without it the run calls no API, charges nothing, and returns one row with a notice. On a paid Apify plan, the key is optional.

### How the answers are produced

Answers come from OpenAI's official API with web search turned on. This is close to what the ChatGPT app shows, but it is not identical. The app adds its own personalization, location, memory and model choices, so the wording and the sources can differ. Answers also change from one run to the next. Treat the results as a reliable signal of what ChatGPT says, not as a screenshot of one user's chat.

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `prompts` | array of strings | yes | Questions to ask. One per line. |
| `brand` | string | no | Your brand name, for example `Asana`. |
| `brandDomain` | string | no | Your website domain, for example `asana.com`. |
| `competitors` | array of strings | no | Competitor names to look for in the answers. |
| `openaiApiKey` | secret string | no | Your own OpenAI key. Gives you the own key price. |
| `maxConcurrency` | integer | no | API calls running at the same time. 1 to 10, default 4. |

Your API key is stored as secret input. It is sent only to OpenAI and is redacted from logs and output.

### Errors and limits

- If a call fails after retries, the other calls still run. The run summary is saved in the key-value store under `RUN_SUMMARY`.
- For calls made with our key, the error text is short and shows only the HTTP status. With your own key you also see the start of the provider's error message.
- If you set a maximum charge for the run, the Actor skips the calls that no longer fit the budget and keeps what it already saved. The number of skipped calls is in `RUN_SUMMARY` as `skippedByChargeLimit`.

# Actor input Schema

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

Questions to ask ChatGPT. One prompt per line. Write them the way a real customer would ask.

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

Optional. Your brand or product name, for example Asana. The Actor checks whether each answer mentions it.

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

Optional. Your website domain, for example asana.com. The Actor checks whether each answer cites it as a source.

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

Optional. Competitor names to look for in each answer. One name per line.

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

Optional. Add your own OpenAI API key to pay the lower own-key price.

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

How many API calls run at the same time.

## Actor input object example

```json
{
  "prompts": [
    "best project management tool for small teams"
  ],
  "maxConcurrency": 4
}
```

# Actor output Schema

## `results` (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 = {
    "prompts": [
        "best project management tool for small teams"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ivanjurina/ai-answer-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 = { "prompts": ["best project management tool for small teams"] }

# Run the Actor and wait for it to finish
run = client.actor("ivanjurina/ai-answer-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 '{
  "prompts": [
    "best project management tool for small teams"
  ]
}' |
apify call ivanjurina/ai-answer-tracker --silent --output-dataset

```

## MCP server setup

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