# ChatGPT Brand Visibility Tracker - AI SEO Rank Monitor (`gio21/chatgpt-brand-visibility`) Actor

Track how often ChatGPT mentions your brand vs competitors for target queries. Bring your own OpenAI API key.

- **URL**: https://apify.com/gio21/chatgpt-brand-visibility.md
- **Developed by:** [Gio](https://apify.com/gio21) (community)
- **Categories:** AI, SEO tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 prompt trackeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## ChatGPT Brand Visibility Tracker

Track how often **ChatGPT mentions your brand vs competitors** for target search-intent queries — AI SEO / LLM SEO rank monitoring.

For: brand managers, SEO/AI marketing teams, AI search optimization, SaaS competitive intel.

### How it works

1. Provide your brand, competitor brands, and a list of prompts users might ask ChatGPT.
2. Actor queries OpenAI for each prompt.
3. Parses the response to find your brand + competitor mentions, ranks them, and reports.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `brand` | String (required) | Your brand name. |
| `competitors` | Array | Competitor brands to track ranks for. |
| `prompts` | Array (required) | Search-intent prompts (1+). |
| `model` | String | OpenAI model. Default `gpt-4o-mini` (cheap). |
| `temperature` | Number | 0 = deterministic, 1 = creative. Default 0. |
| `openaiApiKey` | String (required) | Bring your own OpenAI API key. |

### Output

```json
{
  "brand": "Apify",
  "prompt": "What are the best web scraping platforms?",
  "model": "gpt-4o-mini",
  "response": "Here are the leading web scraping platforms:\n1. Bright Data...\n2. Apify...\n3. ScraperAPI...",
  "mentioned": true,
  "rank": 2,
  "mentionCount": 3,
  "firstPosition": 142,
  "competitors": {
    "Bright Data": { "mentioned": true, "rank": 1, "count": 2 },
    "Scrapfly": { "mentioned": false, "rank": null, "count": 0 },
    "Oxylabs": { "mentioned": false, "rank": null, "count": 0 }
  },
  "tokensUsed": 312,
  "scrapedAt": "2026-05-31T12:00:00.000Z"
}
````

### Pricing (Apify)

$0.02 per prompt tracked. Plus your OpenAI API costs (typically $0.001-0.01 per prompt depending on model).

### Limitations

- ChatGPT responses are non-deterministic. Use temperature=0 for stable rankings.
- Brand match is case-insensitive substring. Names with common words may have false positives.
- Rank is detected only if the brand appears in a numbered list. Otherwise rank=null but mentioned=true.

### Tips

- Run weekly to build a time series.
- Use 5-20 prompts per run for a good visibility snapshot.
- Test different model versions (gpt-4o vs gpt-4o-mini) — results differ.

If this actor helped you, please leave a review on the Apify Store.

# Actor input Schema

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

Your brand or product name. Case-insensitive matching in ChatGPT responses.

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

Competitor brand names to track ranks for.

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

Search-intent prompts. ChatGPT will answer each, then we check brand mentions + rank.

## `model` (type: `string`):

Default gpt-4o-mini (cheap). Other options: gpt-4o, gpt-4-turbo, gpt-3.5-turbo.

## `temperature` (type: `number`):

0 = deterministic. 1 = creative.

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

Your OpenAI API key. Required. Get one at platform.openai.com/api-keys.

## Actor input object example

```json
{
  "brand": "Apify",
  "competitors": [
    "Bright Data",
    "Scrapfly",
    "Oxylabs",
    "ScraperAPI"
  ],
  "prompts": [
    "What are the best web scraping platforms?",
    "Recommend a no-code web scraper for developers",
    "Top alternatives to Bright Data for proxy and scraping"
  ],
  "model": "gpt-4o-mini",
  "temperature": 0
}
```

# Actor output Schema

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

Each row: brand, prompt, model, response, mentioned, rank, mentionCount, firstPosition, competitors{brandName:{mentioned,rank,count}}, tokensUsed.

# 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": "Apify",
    "competitors": [
        "Bright Data",
        "Scrapfly",
        "Oxylabs",
        "ScraperAPI"
    ],
    "prompts": [
        "What are the best web scraping platforms?",
        "Recommend a no-code web scraper for developers",
        "Top alternatives to Bright Data for proxy and scraping"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gio21/chatgpt-brand-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 = {
    "brand": "Apify",
    "competitors": [
        "Bright Data",
        "Scrapfly",
        "Oxylabs",
        "ScraperAPI",
    ],
    "prompts": [
        "What are the best web scraping platforms?",
        "Recommend a no-code web scraper for developers",
        "Top alternatives to Bright Data for proxy and scraping",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("gio21/chatgpt-brand-visibility").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "Apify",
  "competitors": [
    "Bright Data",
    "Scrapfly",
    "Oxylabs",
    "ScraperAPI"
  ],
  "prompts": [
    "What are the best web scraping platforms?",
    "Recommend a no-code web scraper for developers",
    "Top alternatives to Bright Data for proxy and scraping"
  ]
}' |
apify call gio21/chatgpt-brand-visibility --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gio21/chatgpt-brand-visibility",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "ChatGPT Brand Visibility Tracker - AI SEO Rank Monitor",
        "description": "Track how often ChatGPT mentions your brand vs competitors for target queries. Bring your own OpenAI API key.",
        "version": "0.0",
        "x-build-id": "w3WmHdfmubgr8HMOK"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gio21~chatgpt-brand-visibility/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gio21-chatgpt-brand-visibility",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/gio21~chatgpt-brand-visibility/runs": {
            "post": {
                "operationId": "runs-sync-gio21-chatgpt-brand-visibility",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/gio21~chatgpt-brand-visibility/run-sync": {
            "post": {
                "operationId": "run-sync-gio21-chatgpt-brand-visibility",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "brand",
                    "prompts",
                    "openaiApiKey"
                ],
                "properties": {
                    "brand": {
                        "title": "Brand to track",
                        "type": "string",
                        "description": "Your brand or product name. Case-insensitive matching in ChatGPT responses."
                    },
                    "competitors": {
                        "title": "Competitor brands",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Competitor brand names to track ranks for.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "prompts": {
                        "title": "Prompts to query ChatGPT with",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Search-intent prompts. ChatGPT will answer each, then we check brand mentions + rank.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "model": {
                        "title": "OpenAI model",
                        "type": "string",
                        "description": "Default gpt-4o-mini (cheap). Other options: gpt-4o, gpt-4-turbo, gpt-3.5-turbo.",
                        "default": "gpt-4o-mini"
                    },
                    "temperature": {
                        "title": "Temperature",
                        "type": "number",
                        "description": "0 = deterministic. 1 = creative.",
                        "default": 0
                    },
                    "openaiApiKey": {
                        "title": "OpenAI API key",
                        "type": "string",
                        "description": "Your OpenAI API key. Required. Get one at platform.openai.com/api-keys."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
