---
title: Add API Enforcement metrics to Historical Stats and Real-Time Analytics APIs
summary: null
url: >-
  https://www.fastly.com/documentation/reference/changes/2026/10/add-api-enforcement-metrics
---

The [Historical Stats API](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats/) and [Real-Time Analytics API](https://www.fastly.com/documentation/reference/api/metrics-stats/realtime/) now track API Enforcement requests via the new `api_enforcement_allowed_requests_count` and `api_enforcement_flagged_requests_count` metrics.
