Skip to main content
GET
Get edge and origin latency
Returns edge and origin response-time percentiles (p50, p95, p99) for the application over a time window, plus per-country, per-colo and slowest-path breakdowns. Useful for diagnosing latency regressions and identifying which routes or regions are slowest.
Available only on Pro and Enterprise plans. Cache misses share one limit of 20 requests per 60 seconds per application owner, across the analytics, errors, logs and performance endpoints. Cached responses do not count. During platform-wide busy periods the endpoint may return the most recent cached data for the requested window instead.
string
required
The API key for your account. You can find this in your account settings.
Requires an API key with the apps:read scope. Edge latency (edge) measures time-to-first-byte at Cloudflare’s network; origin latency (origin) measures how long the application itself took to respond once the edge reached it. A gap between the two that grows during a window usually points at the application or its cluster node, while both rising together points at network conditions between the client and the edge. This measures network latency, not container resource usage; for CPU, RAM, and bandwidth sampled from the container itself, see Get Application Metrics. Combine colos and countries with Network Analytics to see whether a slow region is also a low-traffic one before prioritizing a fix.

Parameters

string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
string
required
ISO 8601 start timestamp for the analysis window.
string
required
ISO 8601 end timestamp. Must be after start.

Response

string
Indicates whether the call was successful: success if it was, error if not.
object
Latency percentiles and breakdowns for the window.

Common errors