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

# Get SRT statistics from a running flow.

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

Returns statistics for every `srtsink` (output) and `srtsrc` (input) element in
the pipeline. Each entry is keyed by element name (e.g. `<block_id>:srtsink`),
so the frontend can filter the response per SRT block.

## Path parameters

- `id` string, required

## Response `200`

SRT statistics retrieved

- SrtStatsResponse — Response containing SRT statistics.
  - `flow_id` string, uuid, required
  - `stats` SrtStats, required — SRT statistics for a flow. Covers both srtsink (outputs) and srtsrc (inputs).
    - `connections` object, required — Stats for each SRT element, keyed by element name (`block_id:srtsrc`/`block_id:srtsink`).

## Other responses

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

## Changes

- **2026-05-12** `df43763f820e` — 1 info
  - endpoint added
- **2026-04-07** `1e67862a080e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/eyevinn/apis/strom-api/changes/api/flows/:id/srt-stats/get.md)

---

[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)
