# Introducing the Platform Metrics API (Beta)

**URL:** <https://community.fastly.com/t/introducing-the-platform-metrics-api-beta/4543>\
**Category:** Product Releases\
**Tags:** edge, security, cdn, compute, observability\
**Created:** [October 22, 2026, 4:32pm UTC](https://community.fastly.com/t/introducing-the-platform-metrics-api-beta/4543 "2026-10-22T16:32:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dd4327](https://sea1.discourse-cdn.com/flex019/user_avatar/community.fastly.com/dd4327/32/1127_2.png) [@dd4327](https://community.fastly.com/u/dd4327)\
**Post date:** [October 22, 2026, 4:32pm UTC](https://community.fastly.com/t/introducing-the-platform-metrics-api-beta/4543/1 "2026-10-22T16:32:24Z")

</div>

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](https://www.fastly.com/documentation/reference/api/metrics-stats/metrics-v2/platform/) 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.

 ![Screenshot 2026-10-21 at 11.07.07 AM](https://us1.discourse-cdn.com/flex019/uploads/fastly1/original/2X/3/3938ad2a8c45a4910c07ccc89d26712e417f37c9.png)

 ![Screenshot 2026-10-21 at 11.06.57 AM](https://us1.discourse-cdn.com/flex019/uploads/fastly1/original/2X/1/1e30da40786febcc3e296af52bb2138e87f3fca3.png)

---

<div class="post-metadata">

**Author:** ![Mrlaura](https://sea1.discourse-cdn.com/flex019/user_avatar/community.fastly.com/mrlaura/32/1180_2.png) [@Mrlaura](https://community.fastly.com/u/Mrlaura)\
**Post date:** [October 28, 2026, 12:40pm UTC](https://community.fastly.com/t/introducing-the-platform-metrics-api-beta/4543/2 "2026-10-28T12:40:19Z")

</div>

I think the cursor pagination is probably the part I’m most interested in here.

One thing I’m a bit curious about though: what happens if historical metrics get updated while someone is paging through a large result set?

For example, if you’re exporting a few months of daily stats and some late-arriving data changes an earlier day, would the cursor still give you a consistent snapshot?

I’m not entirely sure how Fastly handles that internally. It might not matter much for a live dashboard, but for reporting or comparing historical traffic, I imagine it could make a difference.

---

<div class="post-metadata">

**Author:** ![kevin.fleming](https://sea1.discourse-cdn.com/flex019/user_avatar/community.fastly.com/kevin.fleming/32/244_2.png) [@kevin.fleming](https://community.fastly.com/u/kevin.fleming)\
**Post date:** [October 28, 2026, 12:50pm UTC](https://community.fastly.com/t/introducing-the-platform-metrics-api-beta/4543/3 "2026-10-28T12:50:45Z")

</div>

That’s not really possible; data for time periods ‘in the past’ cannot arrive while you are obtaining those statistics.
