Performance

Query Core Web Vitals and frontend performance metrics collected by the Vision tracker.

Endpoint

GET NEXT_PUBLIC_API_URL/projects/:projectId/performance

GET NEXT_PUBLIC_API_URL/projects/:projectId/performance

Returns aggregated Core Web Vitals metrics, including Largest Contentful Paint (LCP), Interaction to Next Paint (INP), Cumulative Layout Shift (CLS), First Contentful Paint (FCP), and Time to First Byte (TTFB).

Parameters

ParameterTypeDescription
startAtnumberStart timestamp in milliseconds.
endAtnumberEnd timestamp in milliseconds.
urlstring(optional) Filter performance by page URL.
devicestring(optional) Filter by device category.
countrystring(optional) Filter by country code.

Sample response

{
  "lcp": {
    "value": 1420,
    "rating": "good",
    "p75": 1850
  },
  "inp": {
    "value": 45,
    "rating": "good",
    "p75": 80
  },
  "cls": {
    "value": 0.04,
    "rating": "good",
    "p75": 0.08
  },
  "fcp": {
    "value": 920,
    "rating": "good",
    "p75": 1100
  },
  "ttfb": {
    "value": 180,
    "rating": "good",
    "p75": 240
  }
}