---
title: "Explain a change in brand visibility | AEO API"
description: "Compare two report months, inspect the questions behind a change and reopen the explanation by its run ID."
url: "https://aeoapi.dev/docs/guides/explain-visibility-change"
canonical: "https://aeoapi.dev/docs/guides/explain-visibility-change"
last_updated: "2026-11-30"
---

# Explain a change in brand visibility

A change in the set of questions or sources can affect a monthly headline. Compare the answer groups present in both months before attributing a rise or fall to a particular question.

## Before you start

Use an Analyzer or Optimizer key with `analytics:read` in `AEO_API_KEY` and a `BRAND_ID` with saved answers in two months. Add `prompts:read` to see prompt text when available. Replace the example months with months covered by your account.

## 1. Check the comparison

```
curl --fail-with-body --get 'https://api.aeoapi.dev/v2/reports' \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode 'view=compare' \
  --data-urlencode "brand_id=$BRAND_ID" \
  --data-urlencode 'from_month=2026-09' \
  --data-urlencode 'to_month=2026-10'
```

Read `data.comparison.matched_cohorts`, the number of groups present in both months. `previous_only` and `current_only` count groups missing from the other month. If no groups match, report that the periods cannot be compared.

## 2. Inspect the underlying findings

```
curl --fail-with-body 'https://api.aeoapi.dev/v2/runs' \
  -H "Authorization: Bearer $AEO_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<JSON
{
  "workflow": "explain_visibility_change",
  "brand_id": "$BRAND_ID",
  "from_month": "2026-09",
  "to_month": "2026-10"
}
JSON
```

The response includes a `summary` and up to five `findings` in `data`. A finding identifies the prompt and records the counts `before` and `after`. Use its `change_percentage_points` when describing the difference. Inspect `evidence` for examples your key may display.

## 3. Reopen the explanation

Save `data.v2_run_id` as `ANALYST_RUN_ID`. Keep the `analyst:` prefix.

```
curl --fail-with-body --get "https://api.aeoapi.dev/v2/runs/$ANALYST_RUN_ID" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode "brand_id=$BRAND_ID"
```

Keep the finding ID with any follow-up work so a reviewer can trace the decision. When a change calls for a fix, [review a proposed change](https://aeoapi.dev/docs/guides/optimizer-review-workflow).
