Get pageviews time series
get_pageviewsRetrieve pageviews and sessions over time for a Umami website, bucketed by minute, hour, day, month, or year. Filter by date range, URL, referrer, device, location, and more.
Instructions
Pageviews and sessions over time, bucketed by unit. Returns { pageviews: [{x,y}], sessions: [{x,y}] } where x is the bucket timestamp and y the count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| tag | No | ||
| url | No | ||
| city | No | ||
| host | No | ||
| unit | No | Bucket size (default day). | |
| endAt | No | Explicit end — ISO 8601, YYYY-MM-DD, or epoch milliseconds. Defaults to now. | |
| event | No | ||
| query | No | ||
| range | No | Relative window: "24h", "7d", "30d", "12w", "today", "yesterday", "this-week", "last-month", "this-year". Ignored when startAt/endAt are set. Default "7d". | |
| title | No | ||
| device | No | ||
| region | No | ||
| browser | No | ||
| country | No | ||
| startAt | No | Explicit start — ISO 8601, YYYY-MM-DD, or epoch milliseconds. Overrides range. | |
| language | No | ||
| referrer | No | ||
| timezone | No | IANA timezone for bucketing (e.g. America/New_York). Defaults to the server's configured tz. | |
| websiteId | Yes | Umami website UUID (obtain from list_websites). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endAt | Yes | ||
| startAt | Yes | ||
| sessions | Yes | ||
| pageviews | Yes | ||
| websiteId | Yes |