get_pageviews
Retrieve total pageviews and daily time series for a site over a specified period (day, 7d, 30d, or 90d).
Instructions
Get pageview counts for a site over a time period. Returns total pageviews and a daily time series.
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": {
"site_id": "<site_id>"
},
"name": "get_pageviews"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Site ID (get from list_sites) | |
| period | No | Time period: 'day', '7d', '30d', or '90d' | 7d |