Get Website Stats
Retrieve comprehensive analytics statistics for a specific website, including page views, visitors, bounce rate, and visit duration. The endpoint also returns comparison data from the previous period.Endpoint
Headers
Bearer token for authentication
Path Parameters
Website UUID
Query Parameters
Start timestamp in milliseconds (Unix epoch)
End timestamp in milliseconds (Unix epoch)
Start date in ISO 8601 format
End date in ISO 8601 format
Valid IANA timezone (e.g., America/New_York)
Time unit for aggregation (hour, day, week, month, year)
Comparison period (prev, year)
Filter by page path
Filter by referrer URL
Filter by page title
Filter by query parameters
Filter by operating system
Filter by browser
Filter by device type
Filter by country code (ISO 3166-1 alpha-2)
Filter by region
Filter by city
Filter by tag
Filter by hostname
Filter by language
Filter by event name
Filter by segment UUID
Filter by cohort UUID
Filter by event type (positive integer)
Response
Page views data
Unique visitors data
Visits data
Bounce rate data
Total time on site data
Stats from the previous comparison period (same structure as main stats)
Example Request
Example Response
The comparison period is automatically calculated based on the date range. For example, if you query a 7-day period, the comparison will be the previous 7 days.