Analytics API
Use these endpoints for impressions, clicks, CTR, and revenue broken down by website, campaign, placement, ad, and date.
All routes require a dashboard session and an organization scope (X-Organization-Id).
| Method | Path | Purpose |
|---|---|---|
GET | /v1/analytics/overview | Daily time series + totals |
GET | /v1/analytics/totals | Single aggregate totals |
GET | /v1/analytics/report | Dimensioned report rows |
GET | /v1/analytics/auction | OpenRTB win/loss report |
GET | /v1/reports/export | PDF/CSV of the same report |
WordPress tokens can call project-scoped totals and overview under /v1/integrations/wp/projects/{projectId}/analytics/*.
Shared query parameters
Time range
| Param | Description |
|---|---|
range | 1d, 7d (default), 30d, or custom |
from | YYYY-MM-DD (with to, for custom windows) |
to | YYYY-MM-DD |
Filters
| Param | Description |
|---|---|
projectId / projectIds | Website UUID(s) |
campaignId / campaignIds | Campaign UUID(s) |
placementId / placementIds | Placement UUID(s) |
adId / adUnitIds | Ad-unit UUID(s) |
Filters apply first; breakdowns then group the remaining rows.
Breakdown
| Param | Description |
|---|---|
breakdown | Comma-separated levels, max 3 |
groupBy | Single level (legacy; used when breakdown is absent) |
Allowed levels: date, website, campaign, placement, ad.
Examples
GET /v1/analytics/report?breakdown=campaign,placement&range=7d
X-Organization-Id: <org-uuid>
Cookie: <session>
Per website:
GET /v1/analytics/report?breakdown=website&range=7d
One campaign by placement and date:
GET /v1/analytics/report?campaignId=<uuid>&breakdown=placement,date&range=custom&from=2026-08-01&to=2026-08-10
Overview response
GET /v1/analytics/overview?range=7d
{
"impressions": 12000,
"clicks": 340,
"ctr": 0.0283,
"series": [
{
"date": "2026-08-01",
"impressions": 1500,
"invalid_impressions": 12,
"clicks": 40,
"revenue": 18.5
}
]
}
Report rows
GET /v1/analytics/report returns an array. dimensions[i] aligns with breakdown[i]. IDs are UUIDs (or dates). Dashboard PDF/CSV export resolves IDs to labels.
Marketing reports
Saved report packs:
| Method | Path |
|---|---|
GET | /v1/organizations/:orgId/marketing-reports |
POST | /v1/organizations/:orgId/marketing-reports |
GET | /v1/organizations/:orgId/marketing-reports/:id |
GET | /v1/organizations/:orgId/marketing-reports/:id/export |
DELETE | /v1/organizations/:orgId/marketing-reports/:id |
breakdown on a saved report uses the same levels as analytics (max 3).
Metrics
| Metric | Notes |
|---|---|
| Impressions | Valid, unique-session serves |
| Invalid impressions | Flagged as invalid traffic |
| Clicks | Unique clicks tied to impressions |
| Revenue | Sum of recorded revenue |
| CTR | clicks / impressions |
These routes do not exist; use analytics query params instead:
/ads/:id/impressions/placements/:id/clicks/campaigns/:id/stats