AIOZ Stream API
Live streamings
Livestream Statistic

Livestream Statistic Media

Get real-time insights into your live stream's performance. AIOZ Stream provides key statistics like bitrate, frame rate (FPS), and data transfer for both audio and video. These metrics help you monitor stream health and ensure high quality for your viewers.

Get livestream statistics

You can get the statistics of a live stream using the following endpoint. The statistics are updated every 5-30 seconds.

GEThttps://api.aiozstream.network/api/live_streams/statistic/:stream_media_id

Parameters

stream_media_id* The live stream media id

Headers

Authorization Bearer your_access_token_here
or
stream-public-key your_public_key_here
stream-secret-key your_secret_key_here

Response

200: OK
  1. fps_in: Your studio's upload frame rate to the AIOZ Stream server.
  2. fps_out: The frame rate delivered from AIOZ Stream to your clients.
  3. bitrate_in: Your studio's upload bitrate (Kbps) to the AIOZ Stream server.
  4. bitrate_out: The delivery bitrate (Kbps) from AIOZ Stream to your clients.
  5. data_transferred: Total data volume (MB) transmitted from your studio to AIOZ Stream.
{
  "status": "success",
  "data": {
    "id": "0a8c1362-9d3b-41af-8440-14b9ac23da1f",
    "live_stream_media_id": "f77276d7-e17a-49bb-8aa0-bc560e0b3055",
    "fps_in": 60,
    "fps_out": 60,
    "bitrate_in": 8029.417662556544,
    "bitrate_out": 8406.24,
    "data_transferred": 58.441708
  }
}
curl --location --request GET 'https://api.aiozstream.network/api/live_streams/statistic/stream_media_id'
--header 'Authorization: Bearer your_access_token_here'
# --header 'stream-public-key: your_public_key_here' \
# --header 'stream-secret-key: your_secret_key_here'