AI Brand Visibility API
The AI Brand Visibility API measures one brand in AI answers, the core job of generative engine optimization (GEO): whether each answer names it, at which rank, in which tone and next to which sources. Every task returns the same data for each competitor the answer names, on 8 engines, so the benchmark needs no list to configure.
ChatGPT
Gemini
Google AI Mode
AI Overviews
Microsoft Copilot
Grok
Rufus
Alexa for Shopping
Updated
Definition
What brand visibility in AI answers means
Brand visibility in AI answers is how often, how early and how well AI engines name a brand when buyers ask them for advice. It is measured over a fixed set of prompts and engines, against the competitors the answers name. A brand can be named often and still lose, if it comes last or is named as the option to avoid.
Four numbers describe it: the mention rate, the average rank, the share of voice and the average sentiment. The AI visibility API returns the inputs of all four in every task, for your brand and for every competitor in the same answer. The guide on how to measure AI visibility gives each formula.
Per brand
What the API returns per brand: mention, rank, sentiment and sources
Each completed task returns one object per brand the answer names: a stable id, its rank in the answer, its mention count, a sentiment from -1 to +1 and a stance, from chosen to criticized. The same result lists every page the answer cites, so you can see which sources name your brand and which name only your competitors.
| Field | Type | Description |
|---|---|---|
result.entities[].id | string | The same entity has the same id in every task of your workspace. |
result.entities[].name | string | The entity's name. |
result.entities[].position | integer | null | Its rank in the answer, 1 for the first named. |
result.entities[].mentions | integer | How many times the answer names it. |
result.entities[].sentiment | number | null | From -1 (negative) to +1 (positive). |
result.entities[].stance | enum | null | How the answer treats it: chosen · described · named · dismissed · criticized. |
result.sources[].url | string | null | The cited page, as the engine linked it. |
result.sources[].domain | string | The domain of the cited page. |
result.sources[].position | integer | null | Its rank among the answer's sources. |
Competitor benchmark
Competitor benchmark: Loopwork leads 4 rivals over 30 ChatGPT answers
The competitor benchmark is the same four numbers for every brand on the same prompts, engines and dates. You compute it from the tasks you store. In this sample of 30 ChatGPT tasks in the US, Loopwork is named in 68.4% of answers with an average rank of 1.8, ahead of Cadence at 54.2% and 2.4.
| Brand | Mention rate | Share of voice | Average rank |
|---|---|---|---|
| Loopwork | 24.1% | 1.8 | |
| Cadence | 19.6% | 2.4 | |
| Northbeam | 14.2% | 3.1 | |
| Fieldnote | 11.8% | 3.6 | |
| Atlaskit | 8.4% | 4.2 |
Coming soon: Aggregated visibility. Mention rate, share of voice, average position and trends computed across your tasks.
Example
Example request and response: 5 brands in one ChatGPT answer
Create a task with the prompt, the model, the country and the language, then read it once it completes, or get it by webhook. In this sample, ChatGPT names five brands: Loopwork first, chosen, with a sentiment of 0.72, and Atlaskit fifth, criticized, at -0.35.
GET/v1/tasks/{taskId}
# 1. Create the task curl -X POST https://api.apiforgeo.com/v1/tasks \ -H "Authorization: Bearer $API_FOR_GEO_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }' # 2. Read its result curl https://api.apiforgeo.com/v1/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a00 \ -H "Authorization: Bearer $API_FOR_GEO_KEY"
import os, requests API = "https://api.apiforgeo.com/v1" H = {"Authorization": f"Bearer {os.environ['API_FOR_GEO_KEY']}"} # 1. Create the task requests.post(f"{API}/tasks", headers=H, json={ "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }, timeout=30) # 2. Read its result r = requests.get(f"{API}/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a00", headers=H, timeout=30) print(r.json())
const API = "https://api.apiforgeo.com/v1"; const auth = { Authorization: `Bearer ${process.env.API_FOR_GEO_KEY}` }; const post = (path, body) => fetch(API + path, { method: "POST", headers: { ...auth, "Content-Type": "application/json" }, body: JSON.stringify(body) }).then((r) => r.json()); const get = (path) => fetch(API + path, { headers: auth }).then((r) => r.json()); // 1. Create the task await post("/tasks", { "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }); // 2. Read its result console.log(await get("/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a00"));
200 OK
{
"id": "task_0193f2a7c1d84e6f9b2a5c7d3e1f4a00",
"status": "completed",
"prompt": "best project management tool for creative agencies",
"model": "chatgpt",
"country": "US",
"language": "en",
"completedAt": "2026-11-02T06:00:16Z",
"resultExpiresAt": "2026-11-09T06:00:16Z",
"result": {
"entities": [
{
"id": "ent_7a41c09e2b5d4f8a9c3e1b6d0f2a8c45",
"type": "brand",
"name": "Loopwork",
"position": 1,
"mentions": 4,
"sentiment": 0.72,
"stance": "chosen"
},
{
"id": "ent_2c9e5b1a7f3d4e60b8a2c4d6e1f9a3b7",
"type": "brand",
"name": "Cadence",
"position": 2,
"mentions": 3,
"sentiment": 0.48,
"stance": "described"
},
{
"id": "ent_5f0b3d8e1a6c4b2f9e7d0a3c5b8e1f64",
"type": "brand",
"name": "Northbeam",
"position": 3,
"mentions": 2,
"sentiment": 0.31,
"stance": "described"
},
{
"id": "ent_8d2a6f4c0e9b4a1d7c5f3e8b2a6d0c19",
"type": "brand",
"name": "Fieldnote",
"position": 4,
"mentions": 1,
"sentiment": 0.12,
"stance": "named"
},
{
"id": "ent_1e7c3a9f5b2d4c8e0a6f4b1d9c3e7a52",
"type": "company",
"name": "Atlaskit",
"position": 5,
"mentions": 1,
"sentiment": -0.35,
"stance": "criticized"
}
]
}
} | Field | Type | Description |
|---|---|---|
result.entities[].position | integer | null | Its rank in the answer, 1 for the first named. |
result.entities[].mentions | integer | How many times the answer names it. |
result.entities[].sentiment | number | null | From -1 (negative) to +1 (positive). |
result.entities[].stance | enum | null | How the answer treats it: chosen · described · named · dismissed · criticized. |
Pricing
AI Brand Visibility API pricing runs from $0.013 to $0.007 per task
The AI Brand Visibility API is billed per task: one prompt on one model in one country and language, with every brand in the answer and every cited source included. Reading a task is free, a failed task is refunded, and the month's volume sets the tier with no commitment.
Price per task, set by the month's total volume.
FAQ
Brand visibility in AI answers, answered
How is this different from the AI Visibility Tracking API?
Both read the same task result. The AI Visibility Tracking API page documents the endpoint and its fields. This page starts from one brand: how often it is named, how it ranks against its competitors and how it is described. Use the tracking page to build, and this one to plan what to measure. See the AI Visibility Tracking API.
Does the API compute my mention rate and share of voice?
Not yet: aggregated visibility is coming soon. Each task returns the brands its answer names, with stable ids. You compute the mention rate, the average rank, the share of voice and the average sentiment across the tasks you store, with a few lines of code.
Do I need to list my competitors?
No. An answer names whoever it names, and the API returns all of them. A new competitor appears in result.entities[] the first time an engine names it, with an id that stays the same in every later task, so it joins your benchmark on its own.
Which engines can I measure?
ChatGPT, Gemini, Google AI Mode, Google AI Overviews, Microsoft Copilot, Grok, Amazon Rufus and Alexa for Shopping: 8 engines, one task each. Measure each engine on its own first, because each one searches and cites in its own way.
Related GEO APIs
Themes & Perception API →
Coming soon: the themes each engine raises, and how it frames your brand in each one.
APIAI Visibility Tracking API →
The endpoint reference: every field of result.entities[], with a playground.
APICitations API →
The pages behind each answer, to see which sources name your brand.
Same topic: AI brand sentiment tool