---
title: "Get WebRTC statistics from a running flow."
method: GET
path: "/api/flows/{id}/webrtc-stats"
tags: ["flows"]
---

# Get WebRTC statistics from a running flow.

`GET /api/flows/{id}/webrtc-stats`

Returns statistics from all webrtcbin elements in the pipeline, including
those nested in bins like whepclientsrc and whipclientsink. Stats include
RTP stream information, ICE connection state, and raw stats data.

## Path parameters

- `id` string, required

## Response `200`

WebRTC statistics retrieved

- WebRtcStatsResponse — Response containing WebRTC statistics.
  - `flow_id` string, uuid, required
  - `stats` WebRtcStats, required — WebRTC statistics for a flow.
    - `connections` object, required — Stats for each WebRTC connection (keyed by element name)

## Other responses

- `404` — Flow not running
- `500` — Internal server error

---

[API](https://skmtc.dev/eyevinn/apis/strom-api.md) · [All operations](https://skmtc.dev/eyevinn/apis/strom-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eyevinn/strom-api/revisions/0df7ca64263f/schema)
