How to measure AI visibility with confidence intervals

AI visibility is a rate: out of N answers to your customers' questions, how many mention your brand or cite your site. Because AI answers change from run to run, that rate needs an interval that says how precise it is. This guide shows the math, how much data it takes, and how to get it from a free API call.

Why one answer misleads

Suppose an AI names your brand in 50% of its answers to a question. Ask once and you will see either 0% or 100%, never the truth. Ask twice and the two answers disagree 50% of the time. A screenshot of one answer is evidence of what happened once, not of how often it happens.

How many runs buy how much precision

For a true rate of 50%, this is how wide the 95% Wilson interval is at each sample size. The numbers come from the formula, not from collected data:

Answers95% interval at 50%Width
313%–87%75 points
1024%–76%53 points
3033%–67%34 points
10040%–60%19 points
30044%–56%11 points

Precision grows with the square root of the sample: four times the answers roughly halves the width. 30 answers is the minimum for reading a rate, not a standard for ranking brands; two brands whose intervals overlap cannot be ordered.

Prompts matter more than runs

Runs of the same prompt tend to look alike, so 30 runs of one prompt usually say less than 3 runs each of 10 prompts. With several prompts, the report first computes each prompt's own rate, averages them with equal weight, and builds the interval by resampling prompts rather than answers (5,000 rounds, fixed seed 20261130, so the same data always gives the same result).

Resampling alone can claim false certainty. If 20 prompts all show 0%, every resample is also 0%. So when there are few prompts, or few prompts that differ from the rest, the interval is widened to treat each prompt as one sample: here the upper bound is 16%, not 0%.

When data counts as enough

ConditionThreshold
Answers per groupAt least 30
Prompts, when several are combinedAt least 10
Failed or unfinished answersAt most 20%
Answers with an unknown resultAt most 5%

Below a threshold you still get the count, rate and interval, marked enough: false. Failed captures are never counted as “not mentioned”, and a missing brand or domain gives null, not 0%.

Get intervals from the API

Collect answers first (a job can hold up to 500), then ask for the report. It is free, and one row comes back per engine and set of capture conditions: surfaces are never merged into one score.

curl https://api.askcrawl.com/v1/reports/visibility \
  -H "Authorization: Bearer $ASKCRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "job_ids": [
      "JOB_ID"
    ],
    "brand": "Acme",
    "domains": [
      "acme.com"
    ]
  }'

Each rate carries count, sample_size, prompt_count, value, low, high, method (wilson_95 or cluster_bootstrap_95) and enough. The brand visibility report page shows it run on real public samples.

Before and after

To see whether something changed, collect a second batch with the same prompt set and conditions and compare. These rows are illustrative inputs run through the same comparison code the API uses:

IllustrationBeforeAfterDifference95% intervalVerdict
12 prompts × 5 runs16 of 6034 of 60+30 pts+23 to +37Up
12 prompts × 5 runs16 of 6018 of 60+3 pts−5 to +12Not clear
8 prompts × 5 runs10 of 4023 of 40+33 pts—Not enough data

“Not clear” means the interval includes zero. It is not the same as “no change”, and an “up” verdict still does not prove what caused it.

curl https://api.askcrawl.com/v1/reports/compare \
  -H "Authorization: Bearer $ASKCRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "a": { "job_ids": ["BEFORE_JOB_ID"] },
    "b": { "job_ids": ["AFTER_JOB_ID"] },
    "brand": "Acme"
  }'

Measure your prompts with intervals

At least 10 prompts and 30 answers per surface before reading a rate. Reports are free.

New job