get_pageviews
Retrieve time-series pageview and session data for website analytics, allowing filtering by time period, granularity, and various metrics like URL, referrer, device, and location.
Instructions
Get time-series pageview and session data for a website, bucketed by the chosen time unit.
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 | |
| unit | Yes | Time bucket granularity | |
| timezone | Yes | Timezone for bucketing (e.g. 'America/New_York', 'UTC') | |
| 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 |