get_pageview_series
Retrieve a time series of pageviews and sessions, bucketed by hour, day, or month, for a specified website and date range.
Instructions
Get a pageviews-and-sessions time series, bucketed by hour, day, or month.
Use 'hour' for short ranges (1-7 days), 'day' for medium ranges, 'month' for long ranges.
Args: website_id: The website id (from get_websites). start_at: Range start (UTC). end_at: Range end (UTC). unit: Bucket size: hour, day, or month. timezone: IANA timezone for bucketing, e.g. 'UTC' or 'Europe/London'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| website_id | Yes | ||
| start_at | Yes | ||
| end_at | Yes | ||
| unit | Yes | ||
| timezone | No | UTC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |