Product & MCP

How do you check what ChatGPT and Claude say about a brand with an API?

How to check programmatically whether ChatGPT and Claude name your brand: one request, the fields back, a 25-question batch, weekly cost and limits.

Search Genie team, Waggle 6 min read

TL;DR

To check what ChatGPT and Claude say about a brand, send one buyer question, your brand and your competitors to an AI visibility API and read the measurements back: whether you were named, in what position, and which sources were cited. Search Genie’s ai-check route does it for $0.15 per ChatGPT answer and $0.50 per Claude answer.

A first sandbox call costs nothing. One batch job checks up to 25 questions, and 20 questions on both assistants cost $13.00 a week.

We make Search Genie. This guide shows our own API, with every price read from our developers page. The method (ask a fixed set of questions, measure the answers, repeat) works with any tool.

What is an AI visibility API?

An AI visibility API is a web service that asks AI assistants a question on your behalf and reports what they said about brands as data, so 20 questions on two assistants become 40 rows of measurements instead of 40 answers to read. It replaces a manual loop: open a chat, type the question, read the answer, write down who was named. That loop works once. Run weekly, it is 40 answers to read and tally by hand.

What should one check return?

A useful check returns seven things for each assistant, because answer text alone is hard to count. A paragraph tells you a story. It does not tell you whether you were named, how often, and which competitors were named, unless someone reads it and tallies it by hand, and two readers tally differently.

What a single check should tell you, and the field of /ai-check that carries it
The question you haveThe field that answers it
Was my brand named?brand.named
How many times?brand.mentions
In what position?brand.first_position
Which competitors were named, and where?competitors[].named, first_position
Which sources were cited?citations[].url, domain, title
Did the assistant answer, and did it run a web search?status (ok or unavailable), searched_web
What did the call cost?meta.cost_usd, balance_usd, request_id

What /ai-check does not return is the text of the answer. The API gives measurements, not raw answer text. That is deliberate, and it is what lets you chart the results.

Step 1: Get a key

Sign in at /developer, create a developer account and a free sandbox key to build. When you are ready, accept the API terms, add credit by card from $10 and press Create live key.

A sandbox key starts with sg_test_, makes no live lookup and charges nothing. Routes that fetch data about a page, a query or a brand answer with fixed sample data. You make a live key yourself in the same console. Accept the API terms, add credit by card from $10, then press Create live key. The console may ask you to confirm it is you before it creates the key. The console shows the key one time. For larger volumes or an invoice, write to contact@waggle.ae. The details are in the guide to Search Genie API keys. Send the key as a bearer token in the Authorization header, never in the URL.

Step 2: Send one question

POST your question, your brand, its domain, your competitors, a market and a language to the ai-check route, with your key in the Authorization header.

This is the request from the developers page, for the invented brand Marra Coffee:

curl -X POST https://search-genie.waggle.ae/api/v1/ai-check \
  -H "Authorization: Bearer sg_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "question": "What is the best specialty coffee subscription in Dubai?",
    "brand": "Marra Coffee",
    "brand_domain": "marracoffee.example",
    "competitors": ["Harbor Roast", "Lantern Beans"],
    "market": "AE",
    "language": "en",
    "engines": ["chatgpt", "claude"]
  }'

To try it free, send your sg_test_ key instead. The answer then has the same fields but fixed sample values, so the numbers will not match the response that follows.

  • question is the buyer question, in the words a customer would type.
  • brand and brand_domain say who you are, and competitors lists the names to look for beside you.
  • market is a two-letter country code and language is en or ar.
  • engines accepts chatgpt and claude, and defaults to chatgpt.

Step 3: Read the measurements

For each assistant, read whether your brand was named, how many times, in what position, which competitors were named and which sources were cited.

{
  "data": {
    "question": "What is the best specialty coffee subscription in Dubai?",
    "market": "AE",
    "language": "en",
    "engines": [
      {
        "engine": "chatgpt",
        "status": "ok",
        "searched_web": true,
        "brand": { "named": true, "mentions": 2, "first_position": 3 },
        "competitors": [
          { "name": "Harbor Roast", "named": true, "first_position": 1 },
          { "name": "Lantern Beans", "named": false, "first_position": null }
        ],
        "citations": [
          { "url": "https://marracoffee.example/subscriptions", "domain": "marracoffee.example", "title": "Coffee subscriptions" }
        ]
      },
      {
        "engine": "claude",
        "status": "ok",
        "searched_web": false,
        "brand": { "named": false, "mentions": 0, "first_position": null },
        "competitors": [
          { "name": "Harbor Roast", "named": true, "first_position": 2 },
          { "name": "Lantern Beans", "named": true, "first_position": 4 }
        ],
        "citations": []
      }
    ]
  },
  "meta": { "cost_usd": 0.65, "balance_usd": 48.8, "request_id": "req_2b81d0e4" }
}

Read it by assistant. On ChatGPT, Marra Coffee was named twice, with first_position 3, and Harbor Roast was named with first_position 1. On Claude, Marra Coffee was not named and both competitors were. In this example ChatGPT named the brand and Claude did not. One answer is a sample, so repeat the check before you act on a gap.

status is ok when an assistant answered and unavailable when it did not, and each assistant is charged only for ok. meta.cost_usd is $0.65 here, which is $0.15 plus $0.50.

Step 4: Run 25 questions as one job

Send up to 25 questions to the ai-check-batch route. It answers at once with a job id instead of making you wait for every answer.

The batch route is POST /ai-check-batch. The body is { "questions": [ ... ] }, a list of 1 to 25 objects, each with the fields of /ai-check.

curl -X POST https://search-genie.waggle.ae/api/v1/ai-check-batch \
  -H "Authorization: Bearer sg_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "questions": [
      {
        "question": "What is the best specialty coffee subscription in Dubai?",
        "brand": "Marra Coffee",
        "brand_domain": "marracoffee.example",
        "competitors": ["Harbor Roast", "Lantern Beans"],
        "market": "AE",
        "language": "en",
        "engines": ["chatgpt", "claude"]
      },
      {
        "question": "Which coffee subscription ships fastest in Abu Dhabi?",
        "brand": "Marra Coffee",
        "brand_domain": "marracoffee.example",
        "competitors": ["Harbor Roast", "Lantern Beans"],
        "market": "AE",
        "language": "en",
        "engines": ["chatgpt"]
      }
    ]
  }'

Each question returns the same fields as a single check. The job sets aside its whole maximum price up front. Each question is charged only when it is measured, and what the job did not spend is released when it finishes. A request may be up to 32 KB, and an account may have two jobs open at a time. Every field is described in the machine-readable file at https://search-genie.waggle.ae/api/v1/openapi.json, which needs no key.

Step 5: Poll the job until it ends

Read the job with the jobs route until its status is done, failed or cancelled. Reading a job is free.

GET /jobs/{job_id} returns the job’s status, what it has charged so far, and each question’s result or error code. The status is queued, running, done, failed or cancelled, and queued and running mean the job is still open. A job’s inputs and results are deleted 30 days after it was submitted, so store the numbers you want to keep.

Step 6: Repeat each week and compare

Run the same questions on the same day each week, and compare the counts across runs instead of trusting one answer.

Answers vary between runs, so a single answer is a sample. Fix your question set, run it on the same day each week, and chart how often you are named, in which position and which sources keep appearing. If you want an agent in your editor to run the weekly job, see the guide to SEO tools for coding agents.

What does it cost to check a brand every week?

One answer costs $0.15 on ChatGPT and $0.50 on Claude, so 20 questions on both cost $13.00 a week. A call that fails, or returns nothing, is not charged.

What a weekly run costs, from the per-answer prices
Weekly runCalculationCost per run
20 questions, ChatGPT only20 × $0.15$3.00
20 questions, Claude only20 × $0.50$10.00
20 questions, both20 × $0.65$13.00
25 questions, both (one full job)25 × $0.65$16.25

What are the limits of this API?

This API has six limits: two assistants, answers that vary, sandbox samples, slow calls, no ChatGPT key and a daily spend limit.

  • Two assistants. ChatGPT and Claude. No other assistant is returned by this API today.
  • Answers vary. Ask again, and the assistant may answer differently. Measure repeatedly and read the trend.
  • Sandbox lookups are fixed samples. They say nothing about your brand. Use them to build your client.
  • A call can be slow. It can take up to 45 seconds, and a call cut off after 58 seconds may still have finished and been charged, so check /usage before you retry.
  • Not from ChatGPT with a key. ChatGPT connects through the separate Search Genie app.
  • A live account has a daily limit. Once it has credit, an account you open yourself may make 60 requests a minute and spend 50 USD a day. Set a lower cap in the console if you want one.

Where can you read more?

Read the full route list, prices and error codes on the developers page. Run your first question on a sandbox key this afternoon, then create your live key in the console when the shape of the data fits your report.

Frequently asked questions

What is an AI visibility API?

An AI visibility API is a web service that asks AI assistants a question for you and returns what they said about brands as data: whether your brand was named, in what position, who else was named and which sources were cited. You can run it from a script every week instead of copying answers out of a chat window by hand.

How do I check programmatically if ChatGPT recommends my brand?

Send the buyer question, your brand, your domain and your competitors to an AI check route and read the measurements it returns for each assistant. With the Search Genie API that route is /ai-check. Run the same question set on the same day each week, because one answer is a sample and the count across runs is the signal.

Which AI assistants does the Search Genie API cover?

ChatGPT and Claude. The engines field of /ai-check accepts chatgpt and claude, and defaults to chatgpt. No other assistant is returned by this API today. Google results are a separate route, /search. The API cannot be called from ChatGPT with an API key, because ChatGPT connects through the separate Search Genie app.

Does the API return the full text of the answer?

No. It returns measurements built from our own fields: whether the brand was named, the number of mentions, the position, the competitors named, the sources cited, a status for each assistant and what the call cost. You get numbers you can count and chart, not raw answer text to read and tally by hand.

How much does it cost to track 20 questions a week?

On both assistants it costs $13.00 a week, which is 20 questions at $0.15 per ChatGPT answer plus $0.50 per Claude answer. ChatGPT alone is $3.00 a week and Claude alone is $10.00. An assistant is charged only when its answer came back with status ok.

Find out what AI says about your brand

Free, human-reviewed audit across AI answers and search.