Tutorial · July 29, 2026

How to check if ChatGPT mentions your brand (with code)

You cannot tell from one chat. ChatGPT answers vary, and most brand mentions have no link to catch. Here is how to check properly, with a few lines of code.

TL;DR
You cannot check whether ChatGPT mentions your brand by asking it once. Answers vary by user and time, and in one study only 23.1% of brand mentions carried a citation link. So you have to run your buyer prompts several times and read the answer text for your name. The reliable way is to script it: POST your prompts to an API, count how often ChatGPT names you, and track that rate. This guide shows the code.

You can ask ChatGPT if it recommends you, get a confident yes, and still be wrong. The next person who asks gets a different answer.

That is the trap with checking ChatGPT by hand. It feels like an answer, but it is one sample from a system that gives everyone something slightly different. To actually know whether ChatGPT names your brand, you have to measure a rate, not read a screenshot. Here is how, and where a few lines of code beat an afternoon of manual prompting.

Can you check whether ChatGPT mentions your brand?

Yes, but not by asking it once. ChatGPT reaches 900 million weekly users, so being named there matters. But its answers are generated fresh each time and vary from person to person. To check reliably you run the questions your buyers ask, repeat each one several times, and read the answers for your brand name. That gives you a mention rate, which a single chat never can.

The mistake is treating ChatGPT like a search box that returns one true result. It does not. Where a Google query gives one ranked list, ChatGPT writes a different answer each time it runs. Checking it means sampling, the way you would poll anything that changes.

Why one ChatGPT answer tells you nothing

Because ChatGPT is not deterministic. The same prompt returns different answers depending on the user, their settings and memory, and the moment you ask, even at low temperature. One run might name you, the next a competitor, the next nobody. So a single screenshot is a single sample, and it tells you nothing reliable about how often ChatGPT actually names your brand.

The same prompt asked three times returns three different answers: one names your brand, one names a competitor, one names nobody. A single screenshot is one sample.
Ask once and you learn one roll of the dice, not the odds.

We dug into exactly why this happens in does ChatGPT give everyone the same answer. The short version: the same question is a different question depending on who asks it. That is the whole reason you measure a rate instead of trusting a lucky screenshot.

Mentions vs citations: what you are actually checking for

You are checking for your brand name in the answer text, not for a link. Those are different things. In a BuzzStream study of 12,000 AI responses, only 23.1% of brand mentions were backed by a citation in the same response. So most of the time ChatGPT names a brand with no clickable source, which means watching for links misses roughly three of every four mentions.

Of every 100 brand mentions in AI answers, only 23.1 carry a citation link; 76.9 have no link. When the brand is the direct subject of a query, 39 percent of mentions get a citation, and ChatGPT names the brand 92.7 percent of the times it cites.
A mention is your name in the text. A citation is a link. Most mentions are not links.

The same study found ChatGPT is relatively good on the flip side: when it does cite a source, it names the brand in the text 92.7% of the time. And when a brand is the direct subject of a query, like "what does Asana do?", 39% of mentions come with a citation. But the headline still holds: to find your mentions, you have to read the words, not scan for hyperlinks.

If you only look for links to your site, you will miss most of the times ChatGPT talks about you. The mention is in the sentence, not the citation.The core idea

Three ways to check ChatGPT mentions

There are three. You can ask ChatGPT by hand, use a monitoring dashboard, or call an API from your own code. Asking by hand is free but does not scale and cannot be automated. A dashboard runs scheduled checks for a monthly fee. An API lets you run any number of prompts on your own cadence and pay per call. For developers and for scale, the API wins.

Ask manuallyDashboard toolAPI + code
Prompts coveredA handfulManyUnlimited
Runs per promptOne (you retype)ScheduledAs many as you set
AutomatableNoPartlyFully
CostFree$29 to $499/moPay per call
Best forQuick spot checkMarketersDevelopers + scale
Three ways to check ChatGPT mentions compared: asking manually is free and does not scale; a dashboard tool runs scheduled checks for 29 to 499 dollars a month; an API with code covers unlimited prompts, is fully automatable, and is billed per call.
The manual check is fine for a one-off. Anything you want to trend needs code.

If you want a no-code starting point, our free AI visibility checker walks through the manual method, and the best AI monitoring tools compares the dashboards. The rest of this guide is the code path.

How to check ChatGPT mentions with code

Send your prompt and brand name to an API, and read the structured result. With MentionsAPI you POST to /v1/check with a query, your brand, and the ChatGPT provider (openai). It runs the prompt, reads the answer, and returns a brand_mentions array that tells you whether ChatGPT named you, at what rank, and with what sentiment. One prompt is one call.

How the API check works in four steps: send your prompts, run each several times on ChatGPT, parse the answer text for your brand and competitors, and return a mention rate, citation, and share of voice.
Prompts in, a mention rate out. The parsing you would do by hand happens for you.

Start with a single check to see the shape of the data:

POST /v1/check
curl https://api.mentionsapi.com/v1/check \
  -H "Authorization: Bearer $MENTIONSAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "best tools for tracking AI brand mentions",
    "brand": "MentionsAPI",
    "providers": ["openai"]
  }'

That returns your brand mentions for one run. But one run has the same problem as one screenshot. So loop: run several prompts several times each, and count how often ChatGPT names you. That ratio is your mention rate.

mention-rate.mjs
const prompts = [
  "best tools for tracking AI brand mentions",
  "how do I check if ChatGPT recommends my product",
  "top AI visibility platforms for developers",
];

const RUNS = 5; // ask each prompt several times, not once
let hits = 0;

for (const query of prompts) {
  for (let i = 0; i < RUNS; i++) {
    const res = await fetch("https://api.mentionsapi.com/v1/check", {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.MENTIONSAPI_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({ query, brand: "MentionsAPI", providers: ["openai"] }),
    });
    const data = await res.json();
    const named = data.brand_mentions.some((m) => m.brand === "MentionsAPI");
    if (named) hits++;
  }
}

const total = prompts.length * RUNS;
console.log(`Mention rate: ${((hits / total) * 100).toFixed(1)}% (${hits}/${total})`);

The response you are reading looks like this, trimmed to the parts that matter:

response.json
{
  "providers": [
    { "provider": "openai", "model": "gpt-4o", "content": "For tracking AI brand mentions, tools like MentionsAPI..." }
  ],
  "brand_mentions": [
    { "brand": "MentionsAPI", "provider": "openai", "rank": 1, "sentiment": "positive", "context": "tools like MentionsAPI..." }
  ],
  "citations": [
    { "canonical_url": "https://mentionsapi.com", "providers_cited": ["openai"] }
  ]
}

The brand_mentions array is the whole game. You do not parse prose yourself; you check whether your brand is in that array, at what rank, and with what sentiment. Do that across every run and you have a number you can put on a dashboard. Our quickstart has the same call in Python if you prefer.

900Mweekly ChatGPT users, so mentions matter
23.1%of brand mentions carry a citation link
12,000AI responses in the BuzzStream study

How to read the results

Turn the raw runs into four numbers. Mention rate is the share of runs that named you, and it is the headline figure to trend. Citation rate is the share of your mentions that carried a link, against that 23.1% baseline. Share of voice is how often you appeared versus named competitors. Sentiment is how you were described when named. A single screenshot has none of these; a repeated check gives you all four.

Four metrics to track once you can check: mention rate (share of runs that name you), citation rate (share of mentions with a link, baseline about 23.1 percent), share of voice (you versus competitors), and sentiment (how you are described).
Mention rate is the number your CEO wants. The other three explain it.

The API returns rank and sentiment on each mention, so share of voice and sentiment fall out of the same call. Add your competitors to the brand list and you can see who ChatGPT names instead of you, which is usually the more useful chart.

Check your competitors in the same loop. Add their names alongside yours, and the brand_mentions array tells you who ChatGPT reaches for in your category. We cover that in how to monitor competitor visibility in AI search.

How often should you check?

Weekly is a sensible baseline. AI answers drift as models update and as the web behind them changes, so a number you pulled once is stale within weeks. Run your check on a schedule, and run it more often around a launch, a competitor move, or a big content push. Once it is scripted, a weekly run costs you nothing in effort.

That cadence is the real payoff of the code path. A screenshot is a guess frozen in time; a scheduled check is a trend line. We go deeper on cadence and what to log in AI search tracking.

Check whether ChatGPT names your brand
POST a prompt and your brand to /v1/check and get back a structured mention: named or not, at what rank, with what sentiment, across ChatGPT, Claude, Gemini, and Perplexity. Pay-as-you-go, $1 free signup credit.

Frequently asked questions

How do I check if ChatGPT mentions my brand?
Ask ChatGPT the questions your buyers ask, run each one several times, and read the answer text for your brand name. Because answers vary, one check is not enough. The reliable way is to script it: send your prompts to an API, count how often ChatGPT names you, and track that rate over time.
Can I check ChatGPT brand mentions with an API?
Yes. With MentionsAPI you POST a query and your brand name to /v1/check, and it returns a brand_mentions array telling you if ChatGPT named you, at what rank, and with what sentiment. You can loop over many prompts and many runs to compute a mention rate, which no single manual check gives you.
Why does ChatGPT give me a different answer every time?
ChatGPT is not deterministic. The same prompt returns different answers depending on the user, their settings, memory, and the time you ask, even at low temperature. That is why one screenshot proves nothing about whether ChatGPT reliably names your brand. You need many runs to see the real rate.
Does ChatGPT link to my site when it mentions me?
Usually not. In a BuzzStream study of 12,000 AI responses, only 23.1% of brand mentions were backed by a citation. So most mentions are just your name in the text, with no clickable link. To find them you have to read the answer, not watch for links.
How often should I check whether ChatGPT mentions my brand?
Weekly is a sensible baseline for most brands, because AI answers shift as models update and the web changes. Check more often around a launch, a competitor move, or a big content push. The point of scripting it is that a weekly run costs you nothing in effort once it is set up.
Is checking ChatGPT the same as checking Google rankings?
No. Google gives one ranked list per query; ChatGPT gives a different generated answer each time, often with no links. So you measure a mention rate across many runs, not a single position. The mindset shift is from "where do I rank" to "how often does ChatGPT name me, and how."

Measure the rate, not the screenshot

Do this today: write down the five questions your buyers ask ChatGPT, run each one five times through /v1/check with your brand name, and read the mention rate. That single number tells you more than any screenshot, because it samples a system that answers everyone differently.

Then put it on a schedule. Pull a weekly mention rate for you and your top competitors, keep your source-side work going, and watch the trend. That is how you turn "I think ChatGPT mentions us" into a number you can defend.

Nikhil Kumar
Founder, MentionsAPI

Growth marketer at the intersection of marketing, product, and technology. 8+ years across startups and scale-ups in India, Switzerland, and the Netherlands. Founder of Landkit (landkit.pro).

Stop guessing whether AI can see you.

Check whether ChatGPT, Claude, Gemini, and Perplexity mention and cite your brand in one API call. $1 free signup credit, pay-as-you-go.