get_timeseries
Retrieve visitor and pageview time series for a website, bucketed by hour or day. Supports custom date ranges and comparison to previous period.
Instructions
Time series of visitors and pageviews for a site, bucketed by hour or day.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (use with `from`). | |
| tz | No | IANA timezone for bucketing, e.g. Europe/Paris. | |
| from | No | Start date YYYY-MM-DD (use with `to` for a custom range). | |
| domain | Yes | Site domain. | |
| period | No | Preset period (default 7d). Ignored when both `from` and `to` are set. | |
| interval | No | Bucket size (default day). | |
| compareToPrevious | No | Also return the previous period series. |