---
title: "Explain a visibility change | Recommendations and visibility analyst | AEO API"
description: "Explains a change in AI visibility between two months from the saved report, with up to five findings and example answers."
url: "https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/post-runs-explain-visibility-change"
canonical: "https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst/post-runs-explain-visibility-change"
last_updated: "2026-11-30"
---

Recommendations and visibility analyst

# Explain a visibility change

Explains a change in AI visibility between two months from the saved report, with up to five findings and example answers.

[`POST /v2/runs`](https://aeoapi.dev/docs/api-reference#post-v2-runs)

- Body `workflow` is `explain_visibility_change`.
- Body `estimate` is `false`. Default is `false`.

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

analytics:read

**Roles**

approver, editor, owner, publisher, service, viewer

**Plans**

Optimizer, Analyzer

**Credits**

No credit charge.

## Parameters

The contract lists no fields for this section.

## Request body

```
{
  "brand_id": "00000000-0000-4000-8000-000000000001",
  "estimate": false,
  "from_month": "2026-10",
  "to_month": "2026-11",
  "workflow": "explain_visibility_change"
}
```

Request body fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `brand_id` | `string (uuid)` | Yes |  |
| `estimate` | `false` | No |  |
| `from_month` | `string` | Yes |  |
| `report_id` | `string (uuid) \| null` | No |  |
| `to_month` | `string` | Yes |  |
| `workflow` | `"explain_visibility_change"` | Yes |  |

## Request examples

Set `AEO_API_BASE_URL` to `https://api.aeoapi.dev` and `AEO_API_KEY` to your server-side API key. Set the other environment variables to the values for your request.

Save the JSON request body as `request.json`. Replace sample IDs, revisions and other values with your own.

```bash
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @request.json
```

```python
import json
from pathlib import Path
from os import environ
from aeo_sdk import AeoClient

body = json.loads(Path("request.json").read_text())

with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
    response = client.v2_post_runs(
        body=body,
    )
    print(response.body)
```

```typescript
import { AeoClient } from "@aeoapi/aeo-sdk";
import { readFile } from "node:fs/promises";

const client = new AeoClient(process.env.AEO_API_KEY!, {
  baseUrl: process.env.AEO_API_BASE_URL!,
});
const body = JSON.parse(await readFile("request.json", "utf8"));
const response = await client.v2PostRuns(
  body,
);
console.log(response.body);
```

## Responses

#### HTTP 200

Successful Response

`application/json`

Response fields are listed below.

HTTP 200 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | The requested result. See the fields below for its contents. |
| `data.after` | `object` | Yes |  |
| `data.after.gaps` | `object` | Yes |  |
| `data.after.gaps.[key]` | `integer` | No | Value for each key. |
| `data.after.mentions` | `integer` | Yes |  |
| `data.after.month` | `string` | Yes |  |
| `data.after.scheduled_samples` | `integer` | Yes |  |
| `data.after.valid_answers` | `integer` | Yes |  |
| `data.before` | `object` | Yes |  |
| `data.before.gaps` | `object` | Yes |  |
| `data.before.gaps.[key]` | `integer` | No | Value for each key. |
| `data.before.mentions` | `integer` | Yes |  |
| `data.before.month` | `string` | Yes |  |
| `data.before.scheduled_samples` | `integer` | Yes |  |
| `data.before.valid_answers` | `integer` | Yes |  |
| `data.brand_id` | `string` | Yes | Identifies the brand this result belongs to. |
| `data.changed_groups` | `integer` | Yes |  |
| `data.comparison` | `object` | Yes |  |
| `data.comparison.current_only` | `integer` | Yes |  |
| `data.comparison.matched_cohorts` | `integer` | Yes |  |
| `data.comparison.mention_change_percentage_points` | `number \| null` | Yes |  |
| `data.comparison.previous_only` | `integer` | Yes |  |
| `data.findings` | `array of object` | Yes |  |
| `data.findings[].after` | `object` | Yes |  |
| `data.findings[].after.mentions` | `integer` | Yes |  |
| `data.findings[].after.valid_answers` | `integer` | Yes |  |
| `data.findings[].ai_search` | `string` | Yes | The AI search product the answer came from, such as google_ai_overviews. |
| `data.findings[].before` | `object` | Yes |  |
| `data.findings[].before.mentions` | `integer` | Yes |  |
| `data.findings[].before.valid_answers` | `integer` | Yes |  |
| `data.findings[].change_percentage_points` | `number` | Yes |  |
| `data.findings[].comparison_set_version` | `string` | Yes |  |
| `data.findings[].evidence` | `object` | Yes |  |
| `data.findings[].evidence.after` | `object \| null` | Yes |  |
| `data.findings[].evidence.after.brand_mentioned` | `boolean` | Conditional |  |
| `data.findings[].evidence.after.cited_urls` | `array of string` | Conditional |  |
| `data.findings[].evidence.after.excerpt` | `string` | Conditional |  |
| `data.findings[].evidence.after.excerpt_truncated` | `boolean` | Conditional |  |
| `data.findings[].evidence.after.mention_in_excerpt` | `boolean` | Conditional |  |
| `data.findings[].evidence.after.observation_id` | `string` | Conditional |  |
| `data.findings[].evidence.after.origin` | `string \| null` | Conditional |  |
| `data.findings[].evidence.before` | `object \| null` | Yes |  |
| `data.findings[].evidence.before.brand_mentioned` | `boolean` | Conditional |  |
| `data.findings[].evidence.before.cited_urls` | `array of string` | Conditional |  |
| `data.findings[].evidence.before.excerpt` | `string` | Conditional |  |
| `data.findings[].evidence.before.excerpt_truncated` | `boolean` | Conditional |  |
| `data.findings[].evidence.before.mention_in_excerpt` | `boolean` | Conditional |  |
| `data.findings[].evidence.before.observation_id` | `string` | Conditional |  |
| `data.findings[].evidence.before.origin` | `string \| null` | Conditional |  |
| `data.findings[].finding` | `string` | Yes |  |
| `data.findings[].finding_id` | `string` | Yes |  |
| `data.findings[].prompt_id` | `string` | Yes |  |
| `data.findings[].prompt_text` | `string \| null` | Yes |  |
| `data.findings[].prompt_version` | `integer` | Yes |  |
| `data.findings[].source` | `object` | Yes |  |
| `data.report_id` | `string` | Yes |  |
| `data.run_id` | `string` | Yes | Identifies the run. Keep any prefix when using it in a request. |
| `data.summary` | `string` | Yes |  |
| `data.usage_units` | `integer` | Yes |  |
| `data.v2_run_id` | `string` | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
| `data.workflow` | `"explain_visibility_change"` | Yes | The workflow selected for this run or estimate. |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |

## Errors

Read `code` and `message` in the error response. Keep `request_id` when you contact support.

- HTTP 400 [`invalid_request`](https://aeoapi.dev/docs/errors#invalid_request)
- HTTP 401 [`unauthenticated`](https://aeoapi.dev/docs/errors#unauthenticated)
- HTTP 403 [`forbidden`](https://aeoapi.dev/docs/errors#forbidden)
- HTTP 404 [`not_found`](https://aeoapi.dev/docs/errors#not_found)
- HTTP 422 [`validation_error`](https://aeoapi.dev/docs/errors#validation_error)
- HTTP 429 [`rate_limited`](https://aeoapi.dev/docs/errors#rate_limited)

[Recommendations and visibility analyst reference](https://aeoapi.dev/docs/features/recommendations-and-visibility-analyst)
