---
title: Add upgrade to Historical and Real-Time Stats APIs
summary: null
url: https://www.fastly.com/documentation/reference/changes/2025/10/add-upgrade
---

You can now retrieve the number of requests that resulted in a WebSocket upgrade using the `upgrade` field in the [Historical Stats API](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats/) and the [Real-Time Analytics API](https://www.fastly.com/documentation/reference/api/metrics-stats/realtime/).
