Export CSV
Export analytics data as a CSV file.
Export CSV
Exports analytics data as a downloadable CSV file.
Endpoint
GET /api/v1/organizations/:orgId/sites/:siteId/analytics/export
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
period | string | No | Time period (day, 7d, 30d, month, 12mo, custom) |
metric | string | Yes | Export type: pageviews, sources, pages, devices, locations, or goals |
filters | string | No | JSON-encoded filter array |
Response
Returns a CSV file with Content-Type: text/csv and a Content-Disposition header for download. The columns vary by export type.