Citations
Rank cited sources
Lists source URLs ranked by how many saved answers cite them.
- Path
datasetiscitations. - Query
sectionis omitted.
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
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
brand_id | query | string (uuid) | Yes | |
month | query | string | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
limit | query | integer | No | |
offset | query | integer | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | null | No | |
include_page_details | query | boolean | 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.
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"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="citations",
brand_id=environ["BRAND_ID"],
)
print(response.body)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(
"citations",
{
brand_id: process.env.BRAND_ID!,
},
);
console.log(response.body);Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.month | string | null | Yes | |
data.next_offset | integer | null | Yes | |
data.total_urls | integer | Yes | |
data.urls | array of object | Yes | |
data.urls[].citing_answers | integer | Yes | |
data.urls[].domain | string | Yes | |
data.urls[].page_id | string | Yes | |
data.urls[].url | string (uri) | 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. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.month | string | null | Yes | |
data.next_offset | integer | null | Yes | |
data.total_urls | integer | Yes | |
data.urls | array of object | Yes | |
data.urls[].brand_mentioned_on_page | boolean | null | No | |
data.urls[].changed_since_previous_check | boolean | null | No | |
data.urls[].citing_answers | integer | No | |
data.urls[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.urls[].classification_confidence | number | No | |
data.urls[].competitors_mentioned_on_page | object | No | |
data.urls[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.urls[].domain | string | No | |
data.urls[].last_checked_at | string | No | |
data.urls[].page_id | string | Yes | |
data.urls[].page_status | "in_progress" | "live" | "gone" | Yes | |
data.urls[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.urls[].page_type_confidence | number | null | No | |
data.urls[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.urls[].url | 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 - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited