We’re excited to introduce the Platform Metrics API, a new historical stats API with location-based grouping, curated metric sets, and support for querying at scale, through two simple endpoints.
Group by POP or region: see exactly where activity is happening
Use the new group_by parameter to break results out by datacenter or region directly in the response, for any entity type. No more running a separate query per datacenter or region and merging the results yourself, you get the full geographic picture in a single call.
Metric sets: pull a bundle of related metrics in one call
Named sets like delivery_traffic_flow, compute_performance, ddos, or ngwaf return a curated group of related metrics together, instead of requesting one field at a time. Fewer calls, less client-side assembly, just request the set that matches what you’re building.
Cursor-based pagination: built for larger queries
Each response includes a next_cursor value you pass into your next request to fetch the following page, up to 10,000 results per page. This lets you reliably pull long time ranges or account-wide queries, like a full year of daily data, without missing or duplicating rows as new data arrives mid-query.
Clearer naming: entity_id instead of service_id
One consistent identifier for any resource type, VCL service, Compute service, NGWAF workspace, and more, instead of service_id for things that aren’t really services.
Two simple endpoints
GET /metrics/v2/platform/entities/{entity_id}/{granularity} fetches metrics for a single entity (a VCL service, a Compute service, an NGWAF workspace, and more), use metric or metric_set to specify what you want back.
GET /metrics/v2/platform/aggregate/{granularity} rolls up metrics across every entity on your account. That’s the whole surface area, no separate endpoints to remember for different fields, entities, or views.
For more details, check out the API documentation here and let us know what you think, your feedback helps shape what comes next. Here are some examples of a few dashboard visualizations made possible by this API.

