CubePathDOCS
CDN

Get Time to First Byte

get/cdn/zones/{zone_uuid}/metrics/latency

Get the time to first byte of your zone in milliseconds (p50, p95 and p99), for all the requests the CDN answered and apart for cache hits and misses. Requests the CDN refused itself are left out. The window is at most 1440 minutes and the figures exist from 24 Nov 2026 21:00 UTC.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

zone_uuid*string

Parámetros de consulta

minutes?integer | null

Window in minutes looking back, 60 by default, at most 43200 (30 days). Not with from.

from?string | null

Start of an absolute window: an ISO 8601 date (UTC when it has no zone) or Unix seconds.

to?string | null

End of the absolute window (default now, never later than 30 seconds ago).

country?string | null

Comma-separated ISO country codes.

asn?string | null

Comma-separated AS numbers.

status_range?string | null

2xx, 3xx, 4xx or 5xx.

status?string | null

Comma-separated exact response codes.

cache_status?string | null

HIT or MISS.

device_type?string | null

mobile, desktop or bot.

path_prefix?string | null

Path prefix, for example /assets.

host?string | null

Comma-separated hosts (up to 20), lower case.

method?string | null

Comma-separated HTTP methods (up to 9).

client_ip?string | null

Visitor address. Needs the cdn_visitors:view permission.

referer_host?string | null

Host of the referer, or - for no referer.

http_version?string | null

Comma-separated: 1.0, 1.1, 2, 3.

tls_version?string | null

Comma-separated: 1.0, 1.1, 1.2, 1.3, none.

content_type?string | null

Comma-separated types (up to 10); one ending in / is a family, image/.

pop?string | null

Comma-separated locations (BCN01) or instances (bcn01-2).

rule?string | null

Comma-separated uuids of rules of the zone or names of the system (up to 20).

Respuestas

Successful Response

application/json

from?string | null

Start of the window read (UTC).

to?string | null

End of the window read, excluded (UTC).

zone_uuid*string
domain*string
period_minutes*integer
ttfb*CDNLatencyTTFB
Propiedades (3)
total*CDNLatencyStats

Percentiles in ms of the time to first byte; None when there is no sample.

Propiedades (4)
samples*integer
p50_ms?number | null
p95_ms?number | null
p99_ms?number | null
hit*CDNLatencyStats

Percentiles in ms of the time to first byte; None when there is no sample.

Propiedades (4)
samples*integer
p50_ms?number | null
p95_ms?number | null
p99_ms?number | null
miss*CDNLatencyStats

Percentiles in ms of the time to first byte; None when there is no sample.

Propiedades (4)
samples*integer
p50_ms?number | null
p95_ms?number | null
p99_ms?number | null