Get headline stats
get_statsVisitors, visits, pageviews, bounce rate and visit duration for a period, compared with the period of the same length just before (change in %).
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": "<site>"
},
"name": "get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (site timezone), included. | |
| from | No | Start date YYYY-MM-DD (site timezone), with `to`. | |
| site | Yes | The site: its domain (example.com), its id, or its public id. See list_sites. | |
| period | No | A preset period ending today: today, 7d, 30d, 90d, 1y (one year) or all (everything since the site's first visit, five years at most). Default 30d. Ignored when from/to are given. |