get_aggregate_stats
Retrieve aggregate website performance totals such as visitors, pageviews, bounce rate, and visit duration for a chosen date range, giving a quick summary of overall site traffic.
Instructions
Get aggregate website performance totals: visitors, pageviews, bounce_rate, and visit_duration.
Args: site_id: Domain name of the site in Plausible (e.g. 'surendranb.com', 'freeinference.dev'). date_range: Time period ('day', 'today', 'yesterday', '7d', '30d', 'month', '6mo', '12mo', or 'YYYY-MM-DD,YYYY-MM-DD'). Default '30d'. metrics: Optional list of metrics (e.g. ['visitors', 'pageviews', 'bounce_rate', 'visit_duration', 'visits']). Defaults to standard 4 metrics. token: Optional Plausible API token. If omitted, uses PLAUSIBLE_API_KEY environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | ||
| metrics | No | ||
| site_id | Yes | ||
| date_range | No | 30d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |