---
title: "Read benchmark results | Retrieval simulator and content testing | AEO API"
description: "Inspect the simulated rankings for each question. Check whether the comparison included competing pages or only pages from the brand."
url: "https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/get-runs-run-id-retrieval-benchmark"
canonical: "https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing/get-runs-run-id-retrieval-benchmark"
last_updated: "2026-11-30"
---

Retrieval simulator and content testing

# Read benchmark results

Inspect the simulated rankings for each question. Check whether the comparison included competing pages or only pages from the brand.

[`GET /v2/runs/{run_id}`](https://aeoapi.dev/docs/api-reference#get-v2-runs-run_id)

- Path `run_id` starts with `retrieval_benchmark:`.

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

analytics:read, audits:read, optimizations:read

**Roles**

viewer, editor, approver, publisher, owner, service

**Plans**

Optimizer

**Credits**

No credit charge.

## Parameters

Request parameters

| Name | Where | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `run_id` | path | `string` | Yes |  |
| `brand_id` | query | `string (uuid)` | No |  |

## Request body

Send this request without a body.

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

```bash
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
  -H "Authorization: Bearer $AEO_API_KEY"
```

```python
from os import environ
from aeo_sdk import AeoClient

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

```typescript
import { AeoClient } from "@aeoapi/aeo-sdk";

const client = new AeoClient(process.env.AEO_API_KEY!, {
  baseUrl: process.env.AEO_API_BASE_URL!,
});
const response = await client.v2GetRunsRunId(
  process.env.RUN_ID!,
);
console.log(response.body);
```

## Responses

Check data.status on the returned run. A succeeded result is ready to read. A failed result ends the run.

#### HTTP 200

Saved result.

`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.benchmark` | `object` | Yes |  |
| `data.benchmark.candidate_count` | `integer` | Yes |  |
| `data.benchmark.comparison_scope` | `"brand_and_competitor" \| "brand_only"` | Yes |  |
| `data.benchmark.measurement` | `"simulated"` | Yes |  |
| `data.benchmark.questions` | `array of object` | Yes |  |
| `data.benchmark.questions[].prompt_id` | `string` | Yes |  |
| `data.benchmark.questions[].revision` | `string` | Yes |  |
| `data.benchmark.questions[].subqueries` | `array of object` | Yes |  |
| `data.benchmark.questions[].subqueries[].best_competitor_passage_id` | `string \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].best_draft_passage_id` | `string \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates` | `array of object` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].combined_rank` | `integer \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].combined_score` | `number \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].final_rank` | `integer \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].final_score` | `number \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].meaning_rank` | `integer \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].meaning_score` | `number \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].passage_id` | `string (uuid)` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].term_rank` | `integer \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].candidates[].term_score` | `number \| null` | Yes |  |
| `data.benchmark.questions[].subqueries[].combined_order` | `array of string (uuid)` | Yes |  |
| `data.benchmark.questions[].subqueries[].coverage` | `object` | Yes |  |
| `data.benchmark.questions[].subqueries[].final_order` | `array of string (uuid)` | Yes |  |
| `data.benchmark.questions[].subqueries[].meaning` | `object` | Yes |  |
| `data.benchmark.questions[].subqueries[].meaning_order` | `array of string (uuid)` | Yes |  |
| `data.benchmark.questions[].subqueries[].origin` | `"inferred" \| "observed"` | Yes |  |
| `data.benchmark.questions[].subqueries[].outcome` | `"win" \| "loss" \| "tie" \| "insufficient_evidence"` | Yes |  |
| `data.benchmark.questions[].subqueries[].source_reference` | `string` | Yes |  |
| `data.benchmark.questions[].subqueries[].subquery_id` | `string` | Yes |  |
| `data.benchmark.questions[].subqueries[].term_order` | `array of string (uuid)` | Yes |  |
| `data.benchmark.questions[].subqueries[].winning_passage_id` | `string \| null` | Yes |  |
| `data.benchmark.reason` | `"competitor_corpus_missing" \| null` | Yes |  |
| `data.benchmark.score_units` | `object` | Yes |  |
| `data.benchmark.score_units.combined` | `string` | Yes |  |
| `data.benchmark.score_units.final` | `string` | Yes |  |
| `data.benchmark.score_units.meaning` | `string` | Yes |  |
| `data.benchmark.score_units.term` | `string` | Yes |  |
| `data.brand_id` | `string (uuid)` | Yes | Identifies the brand this result belongs to. |
| `data.evidence` | `object` | Yes |  |
| `data.evidence.passages` | `object` | Yes |  |
| `data.evidence.passages.[key]` | `object` | No | Value for each key. |
| `data.expires_at` | `string (date-time)` | Yes |  |
| `data.manifest` | `object` | Yes |  |
| `data.metering` | `object` | Yes |  |
| `data.metering.credits` | `0` | Yes |  |
| `data.observed_citations` | `object` | Yes |  |
| `data.observed_citations.items` | `array of object` | Yes |  |
| `data.observed_citations.items[].observed_at` | `string (date-time)` | Yes |  |
| `data.observed_citations.items[].prompt_id` | `string` | Yes |  |
| `data.observed_citations.items[].source_reference` | `string` | Yes |  |
| `data.observed_citations.items[].url` | `string` | Yes |  |
| `data.observed_citations.measurement` | `"measured" \| "simulated" \| "not_measured"` | Yes |  |
| `data.observed_citations.source` | `"customer_reported" \| null` | Yes |  |
| `data.poll_url` | `string (uri-reference)` | Yes | Send an authenticated GET request to this URL to read the current result. |
| `data.result` | `object` | No | Finished output from this run. |
| `data.result.benchmark` | `object` | No |  |
| `data.result.benchmark.candidate_count` | `integer` | Conditional |  |
| `data.result.benchmark.comparison_scope` | `"brand_and_competitor" \| "brand_only"` | Conditional |  |
| `data.result.benchmark.measurement` | `"simulated"` | Conditional |  |
| `data.result.benchmark.questions` | `array of object` | Conditional |  |
| `data.result.benchmark.questions[].prompt_id` | `string` | Conditional |  |
| `data.result.benchmark.questions[].revision` | `string` | Conditional |  |
| `data.result.benchmark.questions[].subqueries` | `array of object` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].best_competitor_passage_id` | `string \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].best_draft_passage_id` | `string \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates` | `array of object` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].combined_rank` | `integer \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].combined_score` | `number \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].final_rank` | `integer \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].final_score` | `number \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].meaning_rank` | `integer \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].meaning_score` | `number \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].passage_id` | `string (uuid)` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].term_rank` | `integer \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].candidates[].term_score` | `number \| null` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].combined_order` | `array of string (uuid)` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].coverage` | `object` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].final_order` | `array of string (uuid)` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].meaning` | `object` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].meaning_order` | `array of string (uuid)` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].origin` | `"inferred" \| "observed"` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].outcome` | `"win" \| "loss" \| "tie" \| "insufficient_evidence"` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].source_reference` | `string` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].subquery_id` | `string` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].term_order` | `array of string (uuid)` | Conditional |  |
| `data.result.benchmark.questions[].subqueries[].winning_passage_id` | `string \| null` | Conditional |  |
| `data.result.benchmark.reason` | `"competitor_corpus_missing" \| null` | Conditional |  |
| `data.result.benchmark.score_units` | `object` | Conditional |  |
| `data.result.benchmark.score_units.combined` | `string` | Conditional |  |
| `data.result.benchmark.score_units.final` | `string` | Conditional |  |
| `data.result.benchmark.score_units.meaning` | `string` | Conditional |  |
| `data.result.benchmark.score_units.term` | `string` | Conditional |  |
| `data.result.evidence` | `object` | No |  |
| `data.result.evidence.passages` | `object` | Conditional |  |
| `data.result.evidence.passages.[key]` | `object` | No | Value for each key. |
| `data.result.manifest` | `object` | No |  |
| `data.result.observed_citations` | `object` | No |  |
| `data.result.observed_citations.items` | `array of object` | Conditional |  |
| `data.result.observed_citations.items[].observed_at` | `string (date-time)` | Conditional |  |
| `data.result.observed_citations.items[].prompt_id` | `string` | Conditional |  |
| `data.result.observed_citations.items[].source_reference` | `string` | Conditional |  |
| `data.result.observed_citations.items[].url` | `string` | Conditional |  |
| `data.result.observed_citations.measurement` | `"measured" \| "simulated" \| "not_measured"` | Conditional |  |
| `data.result.observed_citations.source` | `"customer_reported" \| null` | Conditional |  |
| `data.run_id` | `string` | Yes | Identifies the run. Keep any prefix when using it in a request. |
| `data.status` | `"succeeded"` | Yes |  |
| `data.workflow` | `"retrieval_benchmark"` | Yes | The workflow selected for this run or estimate. |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |
| `meta.as_of` | `string (date-time)` | Yes | The point in time that the response represents. |
| `meta.cohort_version` | `string \| null` | No | Identifies the version of the group used to calculate the results. |
| `meta.collected_at` | `string (date-time) \| null` | Yes | When the data was collected, if available. |
| `meta.metric_version` | `string \| null` | No | The version of the metric definition used for these results. |
| `meta.next_cursor` | `string \| null` | Yes | When present, pass this value as cursor to request the next page with the same filters. |
| `meta.next_refresh_at` | `string (date-time) \| null` | Yes |  |
| `meta.request_id` | `string (uuid)` | Yes | Keep this ID when reporting a problem with the request. |
| `meta.restricted_fields` | `array of string` | No | Fields that your current access does not allow the API to return. |
| `meta.rights_filtered` | `boolean` | Yes | Indicates whether access rights affected the returned data. |
| `meta.schema_version` | `"1.0"` | Yes | The version of the response format. |
| `meta.stale` | `boolean` | Yes |  |
| `meta.warnings` | `array of string` | Yes | Read these notes for limitations that affect the results. |

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

[Retrieval simulator and content testing reference](https://aeoapi.dev/docs/features/retrieval-simulator-and-content-testing)
