get_aggregate
Retrieves aggregate Plausible Analytics metrics for a specified date range, including visitors, pageviews, bounce rate, and visit duration, with optional filters.
Instructions
Get aggregate analytics metrics for a time period. Metrics can include: visitors, visits, pageviews, views_per_visit, bounce_rate, visit_duration, events. Date range examples: '7d', '30d', 'month', 'year', 'all', or ['2024-01-01', '2024-03-01'].
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": {
"metrics": "<metrics>",
"date_range": "<date_range>"
},
"name": "get_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | Optional filters, e.g. [["is", "visit:source", ["Google"]]] | |
| metrics | Yes | Metrics to retrieve, e.g. ['visitors', 'pageviews', 'bounce_rate'] | |
| date_range | Yes | Date range: '7d', '30d', 'month', 'year', 'all', or ['YYYY-MM-DD', 'YYYY-MM-DD'] |