get_metrics
Retrieve aggregated website metrics like top pages, browsers, countries, devices, OS, and events by specifying a website ID, time range, and metric type. Apply optional filters like URL or referrer to narrow results.
Instructions
Get aggregated metrics for a website (e.g. top pages, browsers, countries, devices, OS, events)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID | |
| startAt | Yes | Start timestamp in milliseconds | |
| endAt | Yes | End timestamp in milliseconds | |
| type | Yes | Metric type to aggregate | |
| url | No | Filter by URL path | |
| referrer | No | Filter by referrer | |
| limit | No | Max results to return (default 500) |