piwik_top_pages
Retrieve top pages by pageviews for a specified Piwik PRO site, with optional date range and result limit, to identify the content driving traffic.
Instructions
Get top pages by pageviews for a site
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": {
"siteId": "<siteId>"
},
"name": "piwik_top_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results (default 10) | |
| dateTo | No | End date (YYYY-MM-DD). Defaults to today | |
| siteId | Yes | The site/app ID | |
| dateFrom | No | Start date (YYYY-MM-DD). Defaults to 30 days ago |