---
title: "A page's web vitals next to the backend requests that served it"
method: GET
path: "/otel/pages/backend"
tags: ["OpenTelemetry"]
---

# A page's web vitals next to the backend requests that served it

`GET /otel/pages/backend`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/pages/backend`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer, required
- `path` string, required
- `start_time` string, date-time, nullable
- `end_time` string, date-time, nullable

## Response `200`

Web vitals and backend timing of the page

- PageBackendResponse: A page's web vitals next to the backend requests for its path.
  - `backend_share_of_ttfb` number, double, nullable: Backend p75 over the page's p75 time to first byte: the part of the wait the backend explains. Null without both.
  - `configured` boolean, required: True when backend requests for the path were found.
  - `end_time` string, date-time, required
  - `errors` integer, required
  - `p50_ms` number, double, nullable
  - `p75_ms` number, double, nullable
  - `p95_ms` number, double, nullable
  - `path` string, required
  - `reason` string, nullable: Why none were, when `configured` is false.
  - `requests` integer, required: Backend requests found; at most 500 per attribute are read.
  - `services` ServiceRequestsResponse[], required: Services that served the path, most requests first.
    - `requests` integer, required
    - `service_name` string, required
  - `setup_path` string, nullable: The console page, relative to the project, that sets up what is missing.
  - `slowest` BackendRequestResponse[], required: Slowest first, at most 10, each linking to its trace.
    - `duration_ms` number, double, required
    - `error` boolean, required
    - `service_name` string, required
    - `span_name` string, required
    - `start_time` string, date-time, required
    - `trace_id` string, required
  - `start_time` string, date-time, required
  - `vitals` PageVitalsResponse, required: The 75th percentiles of a page's web vitals.
    - `fcp_p75_ms` number, double, nullable
    - `inp_p75_ms` number, double, nullable
    - `lcp_p75_ms` number, double, nullable
    - `page_loads` integer, required
    - `ttfb_p75_ms` number, double, nullable

## Other responses

- `400`: A path not starting with /, or a window over 7 days
- `401`: Not authenticated
- `403`: Missing otel:read or project access
- `500`: Internal server error

## Changes

- **2026-11-20** `89a5fa242f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/pages/backend/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
