get_stats
Retrieve summary analytics for a website over a time window, including visitors, pageviews, bounces, total time, and compare to previous period with computed deltas.
Instructions
Summary stats for a website over a window: visitors, visits, pageviews, bounces, totaltime, plus the previous period's values and computed deltas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Window end: ISO 8601 or epoch ms. | |
| url | No | Optional filter: page URL/path. | |
| start | Yes | Window start: ISO 8601 or epoch ms. Naive datetimes are UTC. | |
| country | No | Optional filter: ISO country code, e.g. US. | |
| referrer | No | Optional filter: referrer domain. | |
| website_id | Yes | Umami website id (from list_websites). |