get_pageviews
Retrieve website pageviews and sessions over time with configurable granularity (minute to year) and filters like path, country, device, browser, OS, referrer, and event.
Instructions
Pageviews and sessions over time.
unit is minute, hour, day, month, or year. When omitted, a short range uses hours and a longer one uses days or months. See get_stats for website, date_range, and timezone.
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": "<website>"
},
"name": "get_pageviews"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| path | No | ||
| unit | No | ||
| event | No | ||
| device | No | ||
| browser | No | ||
| country | No | ||
| website | Yes | ||
| referrer | No | ||
| timezone | No | ||
| date_range | No | 7d |