Guide · December 3, 2026

How to Add AI Visibility to Your SEO Tool With an API

Your customers are asking what ChatGPT says about them. Here is how to add AI visibility to an SEO product: what to build, which data layer to use, real latency and cost numbers from 50 calls, a retry-safe job you can copy, and how to price it.

TL;DR
To add AI visibility to an SEO tool, send each customer's buyer prompts to ChatGPT, Claude, Gemini, and Perplexity as background jobs, store one row per prompt and engine, and show mention rate, share of voice, named-first share, and citations. In our benchmark, checks took a 9.7-second median and 21.9 seconds at p95, so never run them in a page request. Price prompts and frequency so data costs stay under your plan price.

AI visibility is the feature SEO customers ask for next. It is easy to demo and easy to get wrong.

To add AI visibility to your SEO tool, you need a data layer that asks AI engines your customers' buyer prompts, a background job system that handles slow and flaky calls, a table that stores mentions, positions, competitors, and citations per engine, and a pricing model that keeps data costs below what customers pay. An AI visibility API covers the first part, so you can ship in days.

AI visibility integration benchmark, 50 calls on December 3, 2026: median latency 9.7 seconds, 95th percentile 21.9 seconds, ChatGPT app capture slowest at 16.2 seconds median, Perplexity API fastest at 3.4 seconds, all 50 calls succeeded on the first try, raw four-engine check about 9 cents.

The numbers come from a benchmark I ran on December 3, 2026: ten SEO-tool buyer prompts sent to the ChatGPT app and the ChatGPT, Claude, Gemini, and Perplexity APIs with web search on, eight calls in parallel. That made 50 calls through DataForSEO, costing $0.92.

Disclosure: MentionsAPI sells an AI visibility API, so we are one of the options compared here. I have included raw costs, including where building it yourself is cheaper.

Why are SEO tools adding AI visibility?

SEO tools are adding AI visibility because their customers are losing clicks to AI answers and want to know where they stand. In a 2026 AgencyAnalytics survey, 66% of agency professionals said clients want SEO for AI search, and Ahrefs found the top result loses 58% of clicks when an AI Overview appears. Big platforms already sell it, so customers now expect it.

The incumbents have moved. Semrush sells an AI visibility toolkit at $99 a month per domain, SE Ranking has an AI add-on from $71, and Ahrefs has Brand Radar. Our Semrush AI visibility review covers what they include.

Sources: the AgencyAnalytics 2026 agency benchmarks and the Ahrefs AI Overviews click study.

For a smaller SEO tool, that is a risk and a chance. Customers will churn to a tool that has the feature.

What should an AI visibility feature include?

A useful AI visibility feature tracks a set of buyer prompts per project across several AI engines, and shows four numbers: mention rate, share of voice, named-first share, and how often the customer's own site is cited. It breaks each down by engine, prompt, and competitor, and lists the third-party sites the engines cite. Everything else, such as sentiment or content tools, can wait for version two.

Field to storeWhy it matters
Mentioned (yes or no)Mention rate, the headline number
Position in the answerNamed-first share and average position
Brands in the answerCompetitors and share of voice from one call
Cited domainsOwn-site citation and the outreach list
Engine, prompt, timestampBreakdowns and trends over time
Raw answer textDebugging, audits, and re-scoring later

Store the list of brands in each answer, not just your customer's brand. That one list gives you the competitor view without a separate call per competitor.

Our share of voice guide and report template define each metric in detail.

Which AI engines should you support first?

Support ChatGPT, Perplexity, and Google AI Overviews first, since those are the engines customers ask about most and the ones rivals include in base plans. Add Gemini and Claude next, then Google AI Mode and Copilot. Decide early whether you track ChatGPT through its API or its consumer app, because the two give different answers and customers will compare your numbers with what they see.

EngineHow to get the dataWatch out for
ChatGPTOpenAI API with web search, or an app captureAPI and app answers differ
PerplexitySonar APIFast and cheap; strong citations
Google AI Overviews and AI ModeSERP-based captureOnly some queries show an AI Overview
GeminiGemini API with Google Search groundingSource links can be redirects
ClaudeAnthropic API with web searchHighest cost per call in our test

Our ChatGPT scraper vs API test found the API named only 72% of the brands the app named. If customers compare your report with their own ChatGPT screen, track the app.

Raw model APIs or an AI visibility API?

Raw model APIs are cheaper per call, but you build everything around them. You parse brand names out of free text, work out positions, resolve citation links, handle each provider's quirks, and track model changes. An AI visibility API returns mentions, positions, brands, and citations already normalized, for a higher price per call. The trade is engineering time against data cost.

Data layerCost per four-engine checkYou build
Model APIs with web searchAbout 9 cents in our benchmarkBrand extraction, ranking, citations, retries, per-provider code
Consumer-app scrapersUnder 1 cent per ChatGPT captureParsing, plus terms-of-service risk
AI visibility API (MentionsAPI quick)150 credits, about 45 to 75 centsStorage, scheduling, and your UI

Pricing on MentionsAPI depends on plan: credits cost $3 to $5 per 1,000. Model providers also charge per web search, which our guide to web search API citations breaks down for OpenAI, Claude, and Gemini.

A simple rule: if you will track thousands of prompts daily and have engineers to spare, build on raw APIs. If you want to ship this quarter, start on an AI visibility API and move hot paths in-house later.

What our integration benchmark found

Our benchmark showed that AI visibility checks are slow and uneven, so they must run as background jobs. Across 50 calls, the median took 9.7 seconds and the 95th percentile 21.9 seconds. Perplexity's API was fastest at a 3.4-second median. The ChatGPT app capture was slowest at 16.2 seconds, with one call taking 57 seconds. All 50 calls succeeded on the first try.

EngineMedianp95Cited links (median)Cost per call
ChatGPT app (scraper)16.2s42.0s8$0.004
ChatGPT API7.8s10.6s2$0.015
Claude API9.7s12.3s12.5$0.052
Gemini API12.4s20.7s0$0.016
Perplexity API3.4s5.1s10$0.006

Gemini's API returned no usable source links in this test, which matches what we saw in earlier tests, where its links were Google redirect URLs. Plan your citation features around that gap.

This clean run was not typical. Two days earlier, all 15 of our Gemini calls failed with a rate-limit error at six parallel calls, then succeeded when retried one at a time. Build retries in from day one.

For comparison, MentionsAPI's public health endpoint reported a 100% seven-day success rate and an 18-second p95 for its four-engine quick checks on December 3.

9.7smedian AI visibility check across 50 calls
21.9s95th percentile, so run checks as jobs
57sslowest single call, a ChatGPT app capture
Median and 95th percentile latency by engine, December 3, 2026: Perplexity API 3.4 and 5.1 seconds, ChatGPT API 7.8 and 10.6, Claude API 9.7 and 12.3, Gemini API 12.4 and 20.7, ChatGPT app capture 16.2 and 42.0.
Too slow for a page request, fine for a queue.

How to build the integration

Build the integration as a queue of background jobs: one job per prompt per project, run on a schedule, with retries on rate limits and server errors. Each job calls the data layer once, normalizes the result into one row per engine, and stores it. Your app reads from the table, never from the API directly, so slow or failed calls never block a customer's page.

This Node job checks one prompt for one brand and returns rows ready to store:

// Background job: check one prompt for one customer brand, with retries.
export async function runCheck(job, apiKey) {
  for (let attempt = 1; attempt <= 4; attempt++) {
    const res = await fetch('https://api.mentionsapi.com/v1/check', {
      method: 'POST',
      headers: { Authorization: `Bearer ${apiKey}`, 'Content-Type': 'application/json' },
      body: JSON.stringify({ query: job.prompt, brand: job.brand, mode: 'quick', include: ['citations'] }),
    });
    if (res.ok) {
      const data = await res.json();
      return Object.entries(data.providers || {}).map(([engine, r]) => ({
        projectId: job.projectId,
        prompt: job.prompt,
        engine,
        mentioned: Boolean(r.mentioned),
        position: r.rank ?? null,
        brandsInAnswer: (r.brand_entities || []).map((b) => b.name),
        citedDomains: [...new Set((r.citations || []).map((c) => new URL(c.url).hostname.replace(/^www\./, '')))],
        checkedAt: data.created_at,
      }));
    }
    if (res.status !== 429 && res.status < 500) throw new Error(`check failed: ${res.status}`);
    await new Promise((resolve) => setTimeout(resolve, 2 ** attempt * 1000));
  }
  throw new Error('check failed after 4 attempts');
}

I tested it against mocked responses: it retried after a 429 and a 503, succeeded on the third attempt, removed duplicate cited domains, and failed straight away on a 401 so a bad key does not burn retries.

  • Queue jobs with your existing worker system, such as BullMQ, Sidekiq, or Cloud Tasks.
  • Spread scheduled checks across the day so you do not hit rate limits at midnight.
  • Store raw answers as well as rows, so you can re-score when your brand matching improves.
  • Use webhooks for scheduled checks where the provider offers them, instead of polling.

MentionsAPI's watch endpoint runs checks on a schedule and sends a signed webhook when the answer changes. Our Slack alerts guide shows the receiving side.

AI visibility integration architecture: a scheduler queues one job per prompt per project, workers call an AI visibility API with retries, results are stored as one row per engine, and the SEO tool's dashboard reads from that table; webhooks from scheduled watches feed the same table.
The app reads from your table, never from the API.

How should the feature look in your product?

Put AI visibility on its own tab in each project, with four scorecards at the top, a breakdown by engine, a table of prompts sorted by worst position, a competitor share-of-voice chart, and a list of the most cited domains. Show the date of the last check on every chart. Customers trust numbers more when they can see how fresh they are and which engine each one came from.

Let customers click any prompt to read the full answer. Seeing the actual sentence that names a rival does more to sell the feature than any score.

Add a CSV export and a scheduled email from day one. Agencies on your platform will paste the numbers into client reports, and they will ask for exports in the first week.

Our Looker Studio dashboard guide shows a tested layout and the formulas behind each metric, which carry over directly to your own UI.

How to price the AI visibility feature

Price the feature by prompts and check frequency, because those drive your data cost. On MentionsAPI, 25 prompts checked weekly across four engines uses about 16,000 credits a month, roughly $50 to $66. Checked daily, the same 25 prompts cost about seven times as much. Compare that with what rivals charge: Semrush asks $99 a month for 25 prompts per domain.

Package per customerRaw model APIsMentionsAPI quick
25 prompts weekly (about 108 checks)About $10 a monthAbout $50 to $66 a month
25 prompts daily (about 750 checks)About $66 a monthAbout $340 to $450 a month

The raw figures use our benchmark cost of about 9 cents per four-engine check, before your engineering time. The MentionsAPI range covers the annual and monthly plans.

This math points to a common pattern: weekly checks on a base plan, daily checks as a paid upgrade, and extra engines such as Claude or Google AI Mode as add-ons. Rivals like Searchable sell extra engines the same way.

The median check took ten seconds. The slowest took a minute. Design for the minute.From the benchmark
Our benchmark used 50 calls on one day. Latency and rate limits change with provider load, so measure your own p95 in production and set job timeouts with room to spare.

Mistakes to avoid when adding AI visibility

The most common mistakes are calling AI engines inside a page request, treating a single run as the truth, matching brand names with naive string search, merging all engines into one score, and promising citation data for engines that hide their sources. Each one either breaks the product under load or shows customers numbers that move for no reason.

  • Sync calls: a 20-second check inside a request will time out your app.
  • Single runs: AI answers vary, so average several runs before showing a trend.
  • Naive matching: "Close" and "Kit" are also ordinary words. Use entity lists.
  • One blended score: engines differ, so always show the breakdown.
  • Gemini citations: plan for missing or redirected links.

For a deeper look at building from scratch, see our guide on how to build an AI visibility tool, and our comparison of building with an API versus buying a dashboard.

Add AI visibility to your product this week
One call checks a prompt across ChatGPT, Claude, Gemini, and Perplexity and returns mentions, positions, brands, and citations as JSON. 300 free credits, no card.

Frequently asked questions

How do SEO tools track AI visibility?
SEO tools track AI visibility by sending a fixed set of buyer prompts to ChatGPT, Claude, Gemini, Perplexity, and Google AI features on a schedule, then recording whether each answer mentions the customer, in what position, next to which competitors, and which sites it cites. The data comes from model APIs, scrapers of the consumer apps, or AI visibility APIs that do both.
Should I build on the OpenAI API or an AI visibility API?
Build on raw model APIs if you have engineers to maintain brand extraction, ranking, citation parsing, and retries, and you need the lowest cost per call. Use an AI visibility API if you want normalized mentions, positions, and citations from one call and to ship in days. Many teams start on an API and move hot paths in-house later.
How long does an AI visibility check take?
In our benchmark of 50 calls on December 3, 2026, the median answer took 9.7 seconds and 95% finished within 21.9 seconds. Perplexity was fastest at a 3.4-second median, and the ChatGPT app capture was slowest at 16.2 seconds, with one call taking 57 seconds. Run checks as background jobs, never inside a page request.
What does AI visibility data cost per customer?
It depends on prompts, engines, and frequency. In our benchmark, raw calls to ChatGPT, Claude, Gemini, and Perplexity APIs cost about 9 cents per four-engine check. On MentionsAPI, a four-engine check is 150 credits, so 25 prompts weekly costs about $50 to $66 a month. Daily checks cost roughly seven times as much.
Which AI engines should an SEO tool track first?
Start with ChatGPT, Google AI Overviews, and Perplexity, which most rivals include in their base plans, then add Gemini, Claude, Google AI Mode, and Copilot as paid tiers or add-ons. Track the ChatGPT consumer app as well as the API if customers care about what real users see, since the two give different answers.
Can I white-label AI visibility data in my SEO tool?
Yes, if your data source allows it. API providers return raw JSON, so you control the charts, branding, and reports, and your customers never see the vendor. Check the provider terms for resale and display rules, and check engine terms too, since some, such as the ChatGPT consumer app, restrict automated extraction.

Ship a small version first

Start with ten prompts per project, four engines, weekly checks, and four metrics. Run checks as background jobs, store one row per engine, and show the breakdown. Once customers use it, add daily checks and more engines as paid upgrades, and decide then whether to move the hot paths onto raw APIs.

The tools that ship a simple version this quarter will set what customers expect from everyone else.

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).

Give your SEO tool an AI visibility feature.

Check any prompt across ChatGPT, Claude, Gemini, and Perplexity and get mentions, positions, brands, and citations in one response shape, ready for your own UI. 300 free credits, no card.