---
title: "Read prompt metrics | Analytics and attribution | AEO API"
description: "Read metrics for each prompt with answer evidence. Use view=history for dated samples or view=compare to compare two periods."
url: "https://aeoapi.dev/docs/features/analytics-and-attribution/get-analytics-dataset-prompts"
canonical: "https://aeoapi.dev/docs/features/analytics-and-attribution/get-analytics-dataset-prompts"
last_updated: "2026-11-30"
---

Analytics and attribution

# Read prompt metrics

Read metrics for each prompt with answer evidence. Use view=history for dated samples or view=compare to compare two periods.

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

- Path `dataset` is `prompts`.

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

Request parameters

| Name | Where | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `dataset` | path | `"prompts"` | Yes |  |
| `brand_id` | query | `string (uuid)` | Yes | brand_id |
| `start_at` | query | `string (date-time)` | Yes | Inclusive UTC timestamp. |
| `end_at` | query | `string (date-time)` | Yes | Exclusive UTC timestamp; after start_at. Maximum window per plan/history and 366 days per synchronous query. |
| `category_id` | query | `string \| null` | No | category_id |
| `platform` | query | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | No | platform |
| `mode` | query | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | No | mode |
| `country` | query | `string` | No | country |
| `language` | query | `string` | No | language |
| `location_id` | query | `string (uuid)` | No | location_id |
| `cohort_version` | query | `string \| null` | No | cohort_version |
| `metric_version` | query | `string \| null` | No | metric_version |
| `group_by` | query | `array of "date" \| "source" \| "country" \| "language" \| "location" \| "currency" \| "city" \| "region"` | No | group_by |
| `cursor` | query | `string` | No | cursor |
| `limit` | query | `integer` | No | limit |
| `prompt_id` | query | `string (uuid)` | No | prompt_id |
| `observation_id` | query | `string (uuid)` | No | observation_id |
| `include_evidence` | query | `boolean` | No | include_evidence |
| `provider` | query | `string \| null` | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
| `city` | query | `string \| null` | No | city |
| `device` | query | `"desktop" \| "mobile" \| "unknown"` | No | device |
| `search_activity` | query | `"observed" \| "not_observed" \| "unknown"` | No | Filter actual evidenced web-search state independently of requested mode. Omit for all states; not_observed requires reliable no-search evidence. |
| `view` | query | `"summary" \| "history" \| "compare"` | No | history returns dated samples; compare requires both previous-window parameters and prompt_id. |
| `prompt_version` | query | `integer` | No | Pin version; comparisons never silently merge versions. |
| `compare_start_at` | query | `string (date-time)` | No | Inclusive previous-window start; required with view=compare. |
| `compare_end_at` | query | `string (date-time)` | No | Exclusive previous-window end; required with view=compare. |

## 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 --get "$AEO_API_BASE_URL/v2/analytics/prompts" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  --data-urlencode "brand_id=$BRAND_ID" \
  --data-urlencode "start_at=$START_AT" \
  --data-urlencode "end_at=$END_AT"
```

```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_analytics_dataset(
        dataset="prompts",
        brand_id=environ["BRAND_ID"],
        start_at=environ["START_AT"],
        end_at=environ["END_AT"],
    )
    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.v2GetAnalyticsDataset(
  "prompts",
  {
    brand_id: process.env.BRAND_ID!,
    start_at: process.env.START_AT!,
    end_at: process.env.END_AT!,
  },
);
console.log(response.body);
```

## Responses

#### HTTP 200

Read prompt metrics and answer evidence result.

HTTP 200 headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `X-RateLimit-Limit` | `integer` | No | Requests in rate window. |
| `X-RateLimit-Remaining` | `integer` | No | Remaining request tokens. |
| `X-RateLimit-Reset` | `integer` | No | UTC Unix seconds when window resets. |
| `X-Request-Id` | `string (uuid)` | No | Trace identifier. |
| `X-Usage-Units` | `integer` | No | CU charged by this response; GET and account/usage always zero. |

`application/json`

```
{
  "data": [],
  "meta": {
    "as_of": "2026-11-06T00:00:00Z",
    "collected_at": null,
    "next_cursor": null,
    "next_refresh_at": null,
    "request_id": "00000000-0000-4000-8000-000000000001",
    "rights_filtered": false,
    "schema_version": "1.0",
    "stale": false,
    "warnings": []
  }
}
```

HTTP 200 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array of object` | Yes | The requested result. See the fields below for its contents. |
| `data[].brand_id` | `string (uuid)` | Yes |  |
| `data[].city` | `string \| null \| null` | Yes |  |
| `data[].competitor_gap` | `number \| null` | Yes |  |
| `data[].country` | `string` | Yes |  |
| `data[].coverage` | `object` | Yes |  |
| `data[].coverage.effective_prompts` | `number` | No |  |
| `data[].coverage.expected_prompts` | `integer` | Yes |  |
| `data[].coverage.failed_attempts` | `integer` | Yes |  |
| `data[].coverage.low_sample` | `boolean` | Yes |  |
| `data[].coverage.missing_weight` | `number` | Yes |  |
| `data[].coverage.observed_weight` | `number` | Yes |  |
| `data[].coverage.ranked_answers` | `integer` | No |  |
| `data[].coverage.repeat_count` | `integer` | No |  |
| `data[].coverage.status` | `"ok" \| "partial" \| "insufficient_data"` | Yes |  |
| `data[].coverage.unique_prompts` | `integer` | Yes |  |
| `data[].coverage.valid_answers` | `integer` | Yes |  |
| `data[].device` | `"desktop" \| "mobile" \| "unknown"` | Yes |  |
| `data[].evidence` | `array of object` | Yes |  |
| `data[].evidence[].answer_text` | `string \| null` | No |  |
| `data[].evidence[].answer_text_truncated` | `boolean` | No |  |
| `data[].evidence[].applied_location` | `object \| null` | No |  |
| `data[].evidence[].applied_location.city` | `string \| null` | No |  |
| `data[].evidence[].applied_location.country` | `string \| null` | No |  |
| `data[].evidence[].applied_location.granularity` | `"country" \| "region" \| "city" \| "postal" \| "coordinates"` | Conditional |  |
| `data[].evidence[].applied_location.latitude` | `number \| null` | No |  |
| `data[].evidence[].applied_location.longitude` | `number \| null` | No |  |
| `data[].evidence[].applied_location.postal_code` | `string \| null` | No |  |
| `data[].evidence[].applied_location.region` | `string \| null` | No |  |
| `data[].evidence[].brand_cited` | `boolean \| null` | No |  |
| `data[].evidence[].brand_mentioned` | `boolean \| null` | No |  |
| `data[].evidence[].brand_present` | `boolean \| null` | No |  |
| `data[].evidence[].citations` | `array of object` | Yes |  |
| `data[].evidence[].citations[].anchor` | `string \| null` | No |  |
| `data[].evidence[].citations[].domain` | `string \| null` | Yes |  |
| `data[].evidence[].citations[].evidence` | `string \| null` | No |  |
| `data[].evidence[].citations[].observation_id` | `string (uuid)` | Yes |  |
| `data[].evidence[].citations[].order` | `integer` | Yes |  |
| `data[].evidence[].citations[].title` | `string \| null \| null` | No |  |
| `data[].evidence[].citations[].url` | `string (uri)` | Yes |  |
| `data[].evidence[].collected_at` | `string (date-time)` | Yes |  |
| `data[].evidence[].effective_country` | `string \| null` | No |  |
| `data[].evidence[].grounding_observed` | `boolean \| null` | Yes |  |
| `data[].evidence[].grounding_requested` | `boolean \| null` | Yes |  |
| `data[].evidence[].location_id` | `string (uuid)` | No |  |
| `data[].evidence[].market` | `object` | Yes |  |
| `data[].evidence[].market.city` | `string \| null \| null` | No |  |
| `data[].evidence[].market.country` | `string` | Yes |  |
| `data[].evidence[].market.language` | `string` | Yes |  |
| `data[].evidence[].market.latitude` | `number \| null` | No |  |
| `data[].evidence[].market.location_id` | `string (uuid)` | No |  |
| `data[].evidence[].market.longitude` | `number \| null` | No |  |
| `data[].evidence[].market.postal_code` | `string \| null` | No |  |
| `data[].evidence[].market.region` | `string \| null \| null` | No |  |
| `data[].evidence[].mentions` | `array of object` | Yes |  |
| `data[].evidence[].mentions[].confidence` | `number` | Yes |  |
| `data[].evidence[].mentions[].end` | `integer` | Yes |  |
| `data[].evidence[].mentions[].entity_id` | `string (uuid) \| null` | No |  |
| `data[].evidence[].mentions[].name` | `string \| null` | Yes |  |
| `data[].evidence[].mentions[].rank` | `integer \| null` | Yes |  |
| `data[].evidence[].mentions[].role` | `"mention" \| "recommendation"` | Yes |  |
| `data[].evidence[].mentions[].start` | `integer` | Yes |  |
| `data[].evidence[].mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search" \| "unverified"` | Yes |  |
| `data[].evidence[].observation_id` | `string (uuid)` | Yes |  |
| `data[].evidence[].observed_country` | `string \| null` | No |  |
| `data[].evidence[].platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Yes |  |
| `data[].evidence[].prompt_id` | `string (uuid)` | Yes |  |
| `data[].evidence[].prompt_version` | `integer` | Yes |  |
| `data[].evidence[].provider` | `string \| null` | Yes |  |
| `data[].evidence[].quality_flags` | `array of string` | Yes |  |
| `data[].evidence[].rank` | `integer \| null` | No |  |
| `data[].evidence[].raw_download_url` | `string (uri) \| null` | No |  |
| `data[].evidence[].recommended` | `boolean \| null` | No |  |
| `data[].evidence[].recommended_competitors` | `array of object` | No |  |
| `data[].evidence[].recommended_competitors[].name` | `string` | Conditional |  |
| `data[].evidence[].recommended_competitors[].rank` | `integer \| null` | Conditional |  |
| `data[].evidence[].response_text` | `string \| null` | Yes | Display text while evidence rights allow. |
| `data[].evidence[].rights_class` | `"commercial_approved"` | Yes |  |
| `data[].evidence[].search_trace` | `object` | Yes | If search_observed is null, the result is unknown and includes a reason. If it is false, the evidence shows no search. A provider_complete result means the source reported all the search activity it can show. That activity may omit sites considered during the search. |
| `data[].evidence[].search_trace.disclosure` | `"none" \| "partial" \| "provider_complete"` | Yes |  |
| `data[].evidence[].search_trace.events` | `array of object` | Yes |  |
| `data[].evidence[].search_trace.events[].domain` | `string \| null` | No |  |
| `data[].evidence[].search_trace.events[].evidence_reference` | `string` | Yes |  |
| `data[].evidence[].search_trace.events[].kind` | `"query" \| "search_result" \| "visited_page" \| "citation"` | Yes |  |
| `data[].evidence[].search_trace.events[].occurred_at` | `string (date-time) \| null` | No |  |
| `data[].evidence[].search_trace.events[].ordinal` | `integer \| null` | No |  |
| `data[].evidence[].search_trace.events[].origin` | `"provider_report" \| "native_tool_trace" \| "authorized_ui_observation" \| "citation_extraction"` | Yes |  |
| `data[].evidence[].search_trace.events[].query` | `string \| null` | No |  |
| `data[].evidence[].search_trace.events[].url` | `string (uri) \| null` | No |  |
| `data[].evidence[].search_trace.search_observed` | `boolean \| null` | Yes |  |
| `data[].evidence[].search_trace.unknown_reason` | `string \| null` | Yes |  |
| `data[].evidence[].sentiment` | `Value` | No |  |
| `data[].evidence[].text_truncated` | `boolean` | No |  |
| `data[].language` | `string` | Yes |  |
| `data[].mention_rate` | `number \| null` | Yes |  |
| `data[].mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | Yes |  |
| `data[].platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Yes |  |
| `data[].prompt_id` | `string (uuid)` | Yes |  |
| `data[].provider` | `string \| null` | Yes |  |
| `data[].search_activity` | `"observed" \| "not_observed" \| "unknown" \| "all"` | No | Grouping across observed states is explicit as all; unknown never relabeled not_observed. |
| `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. |

HTTP 200 response fields 2

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array of object` | Yes | The requested result. See the fields below for its contents. |
| `data[].added_citations` | `array of string (uri)` | Yes |  |
| `data[].answer_changed` | `boolean \| null` | Yes |  |
| `data[].brand_id` | `string (uuid)` | Yes |  |
| `data[].brand_present` | `boolean \| null` | Yes |  |
| `data[].cohort_key` | `string` | Yes |  |
| `data[].collected_at` | `string (date-time) \| null` | Yes |  |
| `data[].evidence` | `object \| null` | Yes |  |
| `data[].evidence.answer_text` | `string \| null` | No |  |
| `data[].evidence.answer_text_truncated` | `boolean` | No |  |
| `data[].evidence.applied_location` | `object \| null` | No |  |
| `data[].evidence.applied_location.city` | `string \| null` | No |  |
| `data[].evidence.applied_location.country` | `string \| null` | No |  |
| `data[].evidence.applied_location.granularity` | `"country" \| "region" \| "city" \| "postal" \| "coordinates"` | Conditional |  |
| `data[].evidence.applied_location.latitude` | `number \| null` | No |  |
| `data[].evidence.applied_location.longitude` | `number \| null` | No |  |
| `data[].evidence.applied_location.postal_code` | `string \| null` | No |  |
| `data[].evidence.applied_location.region` | `string \| null` | No |  |
| `data[].evidence.brand_cited` | `boolean \| null` | No |  |
| `data[].evidence.brand_mentioned` | `boolean \| null` | No |  |
| `data[].evidence.brand_present` | `boolean \| null` | No |  |
| `data[].evidence.citations` | `array of object` | Conditional |  |
| `data[].evidence.citations[].anchor` | `string \| null` | No |  |
| `data[].evidence.citations[].domain` | `string \| null` | Conditional |  |
| `data[].evidence.citations[].evidence` | `string \| null` | No |  |
| `data[].evidence.citations[].observation_id` | `string (uuid)` | Conditional |  |
| `data[].evidence.citations[].order` | `integer` | Conditional |  |
| `data[].evidence.citations[].title` | `string \| null \| null` | No |  |
| `data[].evidence.citations[].url` | `string (uri)` | Conditional |  |
| `data[].evidence.collected_at` | `string (date-time)` | Conditional |  |
| `data[].evidence.effective_country` | `string \| null` | No |  |
| `data[].evidence.grounding_observed` | `boolean \| null` | Conditional |  |
| `data[].evidence.grounding_requested` | `boolean \| null` | Conditional |  |
| `data[].evidence.location_id` | `string (uuid)` | No |  |
| `data[].evidence.market` | `object` | Conditional |  |
| `data[].evidence.market.city` | `string \| null \| null` | No |  |
| `data[].evidence.market.country` | `string` | Conditional |  |
| `data[].evidence.market.language` | `string` | Conditional |  |
| `data[].evidence.market.latitude` | `number \| null` | No |  |
| `data[].evidence.market.location_id` | `string (uuid)` | No |  |
| `data[].evidence.market.longitude` | `number \| null` | No |  |
| `data[].evidence.market.postal_code` | `string \| null` | No |  |
| `data[].evidence.market.region` | `string \| null \| null` | No |  |
| `data[].evidence.mentions` | `array of object` | Conditional |  |
| `data[].evidence.mentions[].confidence` | `number` | Conditional |  |
| `data[].evidence.mentions[].end` | `integer` | Conditional |  |
| `data[].evidence.mentions[].entity_id` | `string (uuid) \| null` | No |  |
| `data[].evidence.mentions[].name` | `string \| null` | Conditional |  |
| `data[].evidence.mentions[].rank` | `integer \| null` | Conditional |  |
| `data[].evidence.mentions[].role` | `"mention" \| "recommendation"` | Conditional |  |
| `data[].evidence.mentions[].start` | `integer` | Conditional |  |
| `data[].evidence.mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search" \| "unverified"` | Conditional |  |
| `data[].evidence.observation_id` | `string (uuid)` | Conditional |  |
| `data[].evidence.observed_country` | `string \| null` | No |  |
| `data[].evidence.platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Conditional |  |
| `data[].evidence.prompt_id` | `string (uuid)` | Conditional |  |
| `data[].evidence.prompt_version` | `integer` | Conditional |  |
| `data[].evidence.provider` | `string \| null` | Conditional |  |
| `data[].evidence.quality_flags` | `array of string` | Conditional |  |
| `data[].evidence.rank` | `integer \| null` | No |  |
| `data[].evidence.raw_download_url` | `string (uri) \| null` | No |  |
| `data[].evidence.recommended` | `boolean \| null` | No |  |
| `data[].evidence.recommended_competitors` | `array of object` | No |  |
| `data[].evidence.recommended_competitors[].name` | `string` | Conditional |  |
| `data[].evidence.recommended_competitors[].rank` | `integer \| null` | Conditional |  |
| `data[].evidence.response_text` | `string \| null` | Conditional | Display text while evidence rights allow. |
| `data[].evidence.rights_class` | `"commercial_approved"` | Conditional |  |
| `data[].evidence.search_trace` | `object` | Conditional | If search_observed is null, the result is unknown and includes a reason. If it is false, the evidence shows no search. A provider_complete result means the source reported all the search activity it can show. That activity may omit sites considered during the search. |
| `data[].evidence.search_trace.disclosure` | `"none" \| "partial" \| "provider_complete"` | Conditional |  |
| `data[].evidence.search_trace.events` | `array of object` | Conditional |  |
| `data[].evidence.search_trace.events[].domain` | `string \| null` | No |  |
| `data[].evidence.search_trace.events[].evidence_reference` | `string` | Conditional |  |
| `data[].evidence.search_trace.events[].kind` | `"query" \| "search_result" \| "visited_page" \| "citation"` | Conditional |  |
| `data[].evidence.search_trace.events[].occurred_at` | `string (date-time) \| null` | No |  |
| `data[].evidence.search_trace.events[].ordinal` | `integer \| null` | No |  |
| `data[].evidence.search_trace.events[].origin` | `"provider_report" \| "native_tool_trace" \| "authorized_ui_observation" \| "citation_extraction"` | Conditional |  |
| `data[].evidence.search_trace.events[].query` | `string \| null` | No |  |
| `data[].evidence.search_trace.events[].url` | `string (uri) \| null` | No |  |
| `data[].evidence.search_trace.search_observed` | `boolean \| null` | Conditional |  |
| `data[].evidence.search_trace.unknown_reason` | `string \| null` | Conditional |  |
| `data[].evidence.sentiment` | `Value` | No |  |
| `data[].evidence.text_truncated` | `boolean` | No |  |
| `data[].location_id` | `string (uuid)` | No |  |
| `data[].market` | `object` | Yes |  |
| `data[].market.city` | `string \| null \| null` | No |  |
| `data[].market.country` | `string` | Yes |  |
| `data[].market.language` | `string` | Yes |  |
| `data[].market.latitude` | `number \| null` | No |  |
| `data[].market.location_id` | `string (uuid)` | No |  |
| `data[].market.longitude` | `number \| null` | No |  |
| `data[].market.postal_code` | `string \| null` | No |  |
| `data[].market.region` | `string \| null \| null` | No |  |
| `data[].mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | Yes |  |
| `data[].platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Yes |  |
| `data[].prompt_id` | `string (uuid)` | Yes |  |
| `data[].prompt_version` | `integer` | Yes |  |
| `data[].provider` | `string \| null` | Yes |  |
| `data[].rank` | `integer \| null` | No |  |
| `data[].recommended` | `boolean \| null` | Yes |  |
| `data[].recommended_competitors` | `array of object` | No |  |
| `data[].recommended_competitors[].name` | `string` | Conditional |  |
| `data[].recommended_competitors[].rank` | `integer \| null` | Conditional |  |
| `data[].removed_citations` | `array of string (uri)` | Yes |  |
| `data[].sample_status` | `"valid" \| "failed" \| "missed" \| "blocked" \| "invalid"` | Yes |  |
| `data[].scheduled_at` | `string (date-time)` | Yes |  |
| `data[].search_observed` | `boolean \| null` | Yes |  |
| `data[].sentiment` | `Value` | No |  |
| `data[].warnings` | `array of string` | Yes |  |
| `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. |

HTTP 200 response fields 3

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array of object` | Yes | The requested result. See the fields below for its contents. |
| `data[].brand_id` | `string (uuid)` | Yes |  |
| `data[].cohort_key` | `string` | Yes |  |
| `data[].comparable` | `boolean` | Yes |  |
| `data[].current` | `object` | Yes |  |
| `data[].current.end_at` | `string (date-time)` | Yes |  |
| `data[].current.expected_samples` | `integer` | Yes |  |
| `data[].current.mention_rate` | `number \| null` | Yes |  |
| `data[].current.present_samples` | `integer` | Yes |  |
| `data[].current.start_at` | `string (date-time)` | Yes |  |
| `data[].current.valid_samples` | `integer` | Yes |  |
| `data[].market` | `object` | Yes |  |
| `data[].market.city` | `string \| null \| null` | No |  |
| `data[].market.country` | `string` | Yes |  |
| `data[].market.language` | `string` | Yes |  |
| `data[].market.region` | `string \| null \| null` | No |  |
| `data[].mention_delta_pp` | `number \| null` | Yes |  |
| `data[].mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | Yes |  |
| `data[].platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Yes |  |
| `data[].previous` | `object` | Yes |  |
| `data[].previous.end_at` | `string (date-time)` | Yes |  |
| `data[].previous.expected_samples` | `integer` | Yes |  |
| `data[].previous.mention_rate` | `number \| null` | Yes |  |
| `data[].previous.present_samples` | `integer` | Yes |  |
| `data[].previous.start_at` | `string (date-time)` | Yes |  |
| `data[].previous.valid_samples` | `integer` | Yes |  |
| `data[].prompt_id` | `string (uuid)` | Yes |  |
| `data[].prompt_version` | `integer` | Yes |  |
| `data[].provider` | `string \| null` | Yes |  |
| `data[].warnings` | `array of string` | Yes |  |
| `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 409 [`conflict`](https://aeoapi.dev/docs/errors#conflict)
- HTTP 412 [`precondition_failed`](https://aeoapi.dev/docs/errors#precondition_failed)
- HTTP 422 [`validation_error`](https://aeoapi.dev/docs/errors#validation_error)
- HTTP 429 [`rate_limited`](https://aeoapi.dev/docs/errors#rate_limited)
- HTTP 500 [`internal_error`](https://aeoapi.dev/docs/errors#internal_error)
- HTTP 503 [`source_pending`](https://aeoapi.dev/docs/errors#source_pending), [`feature_not_offered`](https://aeoapi.dev/docs/errors#feature_not_offered)

[Analytics and attribution reference](https://aeoapi.dev/docs/features/analytics-and-attribution)
