Get Time to First Byte
/cdn/zones/{zone_uuid}/metrics/latencyGet 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.
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Query parameters
Window in minutes looking back, 60 by default, at most 43200 (30 days). Not with from.
Start of an absolute window: an ISO 8601 date (UTC when it has no zone) or Unix seconds.
End of the absolute window (default now, never later than 30 seconds ago).
Comma-separated ISO country codes.
Comma-separated AS numbers.
2xx, 3xx, 4xx or 5xx.
Comma-separated exact response codes.
HIT or MISS.
mobile, desktop or bot.
Path prefix, for example /assets.
Comma-separated hosts (up to 20), lower case.
Comma-separated HTTP methods (up to 9).
Visitor address. Needs the cdn_visitors:view permission.
Host of the referer, or - for no referer.
Comma-separated: 1.0, 1.1, 2, 3.
Comma-separated: 1.0, 1.1, 1.2, 1.3, none.
Comma-separated types (up to 10); one ending in / is a family, image/.
Comma-separated locations (BCN01) or instances (bcn01-2).
Comma-separated uuids of rules of the zone or names of the system (up to 20).
Responses
Successful Response
application/json
Start of the window read (UTC).
End of the window read, excluded (UTC).
Properties (3)
Percentiles in ms of the time to first byte; None when there is no sample.
Properties (4)
Percentiles in ms of the time to first byte; None when there is no sample.
Properties (4)
Percentiles in ms of the time to first byte; None when there is no sample.