get_pageviews
Get pageview and session timeseries data, bucketed by day or hour, for a given website and date range.
Instructions
Pageviews and sessions as a timeseries over a window, bucketed by day or hour.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"website_id": "<website_id>",
"start": "<start>",
"end": "<end>"
},
"name": "get_pageviews"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Window end: ISO 8601 or epoch ms. | |
| unit | No | Bucket size. Default day. | |
| start | Yes | Window start: ISO 8601 or epoch ms. | |
| country | No | Optional filter: ISO country code. | |
| referrer | No | Optional filter: referrer domain. | |
| website_id | Yes | Umami website id. |