Documentation menuAPI: Performance

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?

EndpointReturns
GET /sites/:siteId/performance/overviewPercentiles for the whole period
GET /sites/:siteId/performance/time-seriesThe same per bucket. Default hour
GET /sites/:siteId/performance/by-dimensionThe 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?

ParameterValuesDefault
dimensionRequired. pathname, country, device_type, browser, operating_system or region
sort_byevent_count, or a metric with _avg, _p50, _p75, _p90 or _p99event_count
sort_orderasc or descdesc
limit, pagePaging. limit is at most 1,000, and a higher value is lowered to 1,000100, 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.