Analytics and attribution
Track URL impact
Reads the citation series and your reported traffic for target URLs over a date range.
- Path
datasetisurl_impact.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "url_impact" | Yes | |
brand_id | query | string (uuid) | Yes | |
url | query | string | null | No | |
start | query | string (date) | null | No | |
end | query | string (date) | null | No | |
after_url | query | string | null | No | |
limit | query | integer | No | |
traffic_limit | query | integer | No | |
traffic_offset | query | integer | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | 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/url_impact" \
-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="url_impact",
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(
"url_impact",
{
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.from_date | string | Yes | |
data.next_after_url | string | null | Yes | |
data.targets | array of object | Yes | |
data.targets[].action_channel | string | null | Yes | |
data.targets[].citation_series | string | Yes | |
data.targets[].label | string | Yes | |
data.targets[].next_traffic_offset | integer | null | Yes | |
data.targets[].started_on | string | Yes | |
data.targets[].traffic | array of object | Yes | |
data.targets[].traffic[].count | integer | Yes | |
data.targets[].traffic[].day | string | Yes | |
data.targets[].traffic[].kind | "bot_requests" | "referral_sessions" | Yes | |
data.targets[].traffic[].source | string | Yes | |
data.targets[].url | string | Yes | |
data.to_date | string | Yes | |
data.traffic_basis | "customer_reported_daily_totals" | Yes | |
data.unreported_days | "unknown" | Yes | |
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 - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited