query_stats
Query Plausible Analytics for website metrics (visitors, pageviews, conversions) by site and date range, using filters, dimensions, and custom ordering to get the exact data you need.
Instructions
Execute a general-purpose analytics query against Plausible Analytics API v2.
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>",
"metrics": "<metrics>",
"date_range": "<date_range>"
},
"name": "query_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | ||
| metrics | Yes | ||
| site_id | Yes | ||
| order_by | No | ||
| date_range | Yes | ||
| dimensions | No | ||
| pagination | No |