get_stats
Retrieve website analytics including pageviews, visitors, and engagement metrics for a specified date range with optional filters for detailed insights.
Instructions
Get summary statistics (pageviews, visitors, visits, bounces, totaltime) for a website over a date range. Timestamps are Unix milliseconds.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID | |
| startAt | Yes | Start timestamp in Unix milliseconds | |
| endAt | Yes | End timestamp in Unix milliseconds | |
| compare | No | Compare with previous period ('prev') or year-over-year ('yoy') | |
| path | No | Filter by URL path | |
| referrer | No | Filter by referrer | |
| title | No | Filter by page title | |
| query | No | Filter by query string | |
| browser | No | Filter by browser name | |
| os | No | Filter by operating system | |
| device | No | Filter by device type (desktop, mobile, tablet) | |
| country | No | Filter by country code (e.g. US, DE) | |
| region | No | Filter by region | |
| city | No | Filter by city | |
| hostname | No | Filter by hostname | |
| language | No | Filter by language | |
| event | No | Filter by event name | |
| tag | No | Filter by tag |