Documentation
APIAPI reference

Performance

Core Web Vitals (TTFB, FCP, LCP, CLS, INP) as a summary, a time series, or a breakdown by page or country.

POST/api/v1/sites/{siteId}/analytics/performance/summary

Get performance summary

Returns Core Web Vitals for the range: average and percentile values of TTFB, FCP, LCP, CLS, and INP, with sample counts.

Scopesanalytics:readBatchable
Conditional scopes
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.

filterobject | any | null

Optional filter: { "type": "dsl", "expression": "page.path startsWith \"/blog\"" } uses the filter language, { "type": "inline", "expression": … } passes a structured expression, and { "type": "saved", "id": "…" } references a saved filter (requires analysis:read). Team queries accept dsl and inline only. Use null or omit the field for no filter.

scopestring

Which entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.

Allowed"auto""event""session""visitor"
Responses
POST/api/v1/sites/{siteId}/analytics/performance/timeseries

Returns Core Web Vitals for each time bucket.

Scopesanalytics:readBatchable
Conditional scopes
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
Request bodyapplication/json
timeRangeobjectrequired

Reporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.

filterobject | any | null

Optional filter: { "type": "dsl", "expression": "page.path startsWith \"/blog\"" } uses the filter language, { "type": "inline", "expression": … } passes a structured expression, and { "type": "saved", "id": "…" } references a saved filter (requires analysis:read). Team queries accept dsl and inline only. Use null or omit the field for no filter.

scopestring

Which entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.

Allowed"auto""event""session""visitor"
intervalstringrequired

Bucket size of the time series: minute, hour, day, week, or month. Keep the number of buckets reasonable for the time range.

Allowed"minute""hour""day""week""month"
Responses
POST/api/v1/sites/{siteId}/analytics/performance/breakdowns/{dimension}

Breaks down Core Web Vitals by page.path or geo.country. Other dimensions are not supported and return validation_failed.

Scopesanalytics:readBatchable
Conditional scopes
[
  {
    "when": "filter.type=saved",
    "scopes": [
      "analytics:read",
      "analysis:read"
    ]
  }
]
Path parameters
siteIdstringrequired

ID of the site (see List sites).

≥ 1 chars
dimensionstringrequired

Dimension to group by: page.path or geo.country.

Allowed"page.path""geo.country"
Request bodyapplication/json
timeRangeobjectrequired

Reporting window. Use { "kind": "preset", "preset": "last_7_days" } or an absolute range { "kind": "absolute", "from": "…", "to": "…" } with RFC 3339 timestamps. timeZone (IANA name) sets calendar boundaries for presets and buckets.

filterobject | any | null

Optional filter: { "type": "dsl", "expression": "page.path startsWith \"/blog\"" } uses the filter language, { "type": "inline", "expression": … } passes a structured expression, and { "type": "saved", "id": "…" } references a saved filter (requires analysis:read). Team queries accept dsl and inline only. Use null or omit the field for no filter.

scopestring

Which entity a filter condition selects. auto (default) picks the narrowest scope that fits the expression; event, session, and visitor force one.

Allowed"auto""event""session""visitor"
metricstringrequired

Metric used to rank rows. Defaults to lcp.

Allowed"ttfb""fcp""lcp""cls""inp"
Default "lcp"
limitintegerrequired

Maximum number of rows, 1–200.

Default 1001–200
Responses