Sub topic 3
How tools collect responses: APIs versus interface capture
This chapter assumes you know how mentions and citations are defined, can compute simple ratios, and can read basic Python.
Two ways to collect answers
An API (application programming interface) returns a model's answer as structured data that code can parse. Interface capture means a tool drives the public web page or app, like a browser, and records what appears on screen.
APIs give labeled fields, repeatable calls, and lower cost per run. Their answers can differ from the consumer product, because the product adds retrieval, personalization, and formatting that the raw endpoint may skip. Interface capture matches what users see, including linked source cards. It is slower, breaks when page layouts change, and may conflict with a site's terms of service.
| Method | Strength | Weakness |
|---|---|---|
| API | Structured, repeatable, cheaper | May differ from the consumer product |
| Interface capture | Matches what users see | Slow, brittle, sensitive to location and account |
Benchmarking against competitors and cited sources
Share of voice requires competitor names in the prompt set. Compare your numbers with each competitor's using the same prompts, engines, and date range. Also tally which domains the answers cite. If a review site appears in 40% of answers and your site in 5%, that review site is a benchmark for where to act.
from collections import Counter
from urllib.parse import urlparse
cited_urls = [
"https://www.review-site.example/best-crm",
"https://acme.example/crm",
"https://www.review-site.example/crm-pricing",
]
domains = Counter(urlparse(u).netloc.removeprefix("www.") for u in cited_urls)
for domain, count in domains.most_common():
print(domain, count)Output:
review-site.example 2
acme.example 1Comparing and choosing a tracking tool
Compare tools on four points: collection method, engines covered, metric definitions, and runs per prompt. Definitions cause most disagreements. Ask whether "mention" counts unlinked brand text, and how share of voice is calculated. Request a sample export and recompute one metric by hand.
Turning visibility metrics into actions
Sort findings by prompt intent. A low mention rate on high-intent prompts points to pages that need to answer those questions. If a competitor dominates citations, identify the pages the engine cites and consider earning coverage on those sources.
Limitations and common misreadings
- A mention rate does not measure traffic or revenue.
- One run per prompt shows a single sample, not the engine's typical behavior.
- Engines change models and answers without notice, so trends can shift for reasons unrelated to your work.
- A citation does not mean the engine recommends the source.
Exercise
Exercise
Your tool uses API calls, and its export lists a citation that never appears in the consumer app. What is the likely cause, and what should you check before reporting it?
Show answer
The API may use a retrieval path or formatting that differs from the consumer product. Check which endpoint and model the tool documents, then compare manual interface captures for the same prompts before reporting the citation as visible to users.