API
Performance endpoints
These endpoints return Web Vitals from real visits. Scope: analytics:read. Public sites and private links can call them. All three take the shared time parameters, filters and segment_id.
Last updated . This guide belongs to Web Vitals.
Which endpoints are there?
| Endpoint | Returns |
|---|---|
GET /sites/:siteId/performance/overview | Percentiles for the whole period |
GET /sites/:siteId/performance/time-series | The same per bucket. Default hour |
GET /sites/:siteId/performance/by-dimension | The same per value of one dimension |
Each metric comes at four percentiles. The field name is the metric and the percentile, such as lcp_p75 or inp_p90.
{ "data": { "lcp_p50": 1820.5, "lcp_p75": 2440, "lcp_p90": 3610, "lcp_p99": 7020, "cls_p75": 0.05, "inp_p75": 168, "fcp_p75": 1650, "ttfb_p75": 480, "total_performance_events": 5233 } }
The example is shortened. The response holds p50, p75, p90 and p99 for all five metrics.
How does by-dimension work?
| Parameter | Values | Default |
|---|---|---|
dimension | Required. pathname, country, device_type, browser, operating_system or region | |
sort_by | event_count, or a metric with _avg, _p50, _p75, _p90 or _p99 | event_count |
sort_order | asc or desc | desc |
limit, page | Paging. limit is at most 1,000, and a higher value is lowered to 1,000 | 100, 1 |
Each row has the dimension value, event_count and the metrics as averages and percentiles. totalCount gives the number of rows across all pages.