AIOZ Stream API
Videos

Videos

List saved videos

This endpoint retrieves a list of all your saved videos.

POSThttps://api.aiozstream.network/api/live_streams/:key_id/videos

Parameters

key_id* The unique identifier of the live streaming key

Headers

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

Body

offset The number of records to skip before starting to return results (default: 0)
limit The maximum number of records to return (default: 25, max: 100)
sort_by The field to sort by (default: created_at, allowed: created_at, updated_at, title, size)
order_by The sort order (default: desc, allowed: asc, desc)
search The keyword to search in both the title and description fields
status The status of the live streaming.
video_status The status of the video

Response

200: OK
{
  "status": "success",
  "data": {
    "videos": [
      {
        "id": "streaming_id",
        "key_id": "key_id",
        "user_id": "user_id",
        "title": "streaming_title",
        "duration": 8322,
        "assets": {
          "thumbnail_url": "thumbnail_url",
          "hls_url": "hls_url",
          "iframe": "iframe",
          "player_url": "player_url"
        },
        "save": true,
        "created_at": "2024-11-11T11:11:11.111111Z",
        "updated_at": "2024-11-11T11:11:11.111111Z",
        "status": "status",
        "video": {
          "id": "video_id",
          "user_id": "user_id",
          "title": "title",
          "description": "description",
          "metadata": [
            {
              "key": "live_stream_id",
              "value": "live_stream_id"
            }
          ],
          "tags": null,
          "qualities": [
                {
                    "name": "360p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 750000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "480p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 1200000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "720p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 3000000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "1080p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 5000000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "default-audio",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "",
                    "video_bitrate": 0,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                }
            ],
          "captions": null,
          "chapters": null,
          "view": 0,
          "player_theme": null,
          "duration": 0,
          "size": 710919,
          "is_mp4": false,
          "is_public": true,
          "status": "status",
          "created_at": "2024-11-11T11:11:11.111111Z",
          "updated_at": "2024-11-11T11:11:11.111111Z",
          "assets": {
            "source_url": "source_url",
            "thumbnail_url": "thumbnail_url",
            "hls_url": "hls_url",
            "hls_iframe": "hls_iframe",
            "hls_player_url": "hls_player_url",
            "dash_url": "hls_url",
            "dash_iframe": "dash_iframe",
            "dash_player_url": "dash_player_url",
            "mp4_url": "mp4_url"
          },
          "player_theme_id": "player_theme_id"
        },
        "frame_rate": 0,
        "audio_bitrate": 0,
        "current_view": 0,
        "total_view": 0
      }
    ],
    "total": 1
  }
}
 
curl --location --request POST 'https://api.aiozstream.network/api/live_streams/key_id/videos' \
--header 'Authorization: Bearer <YOUR_JWT_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sort_by": "created_at",
    "order_by": "asc",
    "offset": 0,
    "limit": 10
}'

Get live streaming video details

This endpoint retrieves the details of a specific live streaming video.

GEThttps://api.aiozstream.network/api/live_streams/:live_video_id/video

Parameters

live_video_id* The unique identifier of the live video id

Headers

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

Response

200: OK
{
    "status": "success",
    "data": {
        "id": "live_video_id",
        "key_id": "key_id",
        "user_id": "user_id",
        "title": "title",
        "duration": 0,
        "assets": {
            "thumbnail_url": "thumbnail_url",
            "hls_url": "hls_url",
            "iframe": "iframe",
            "player_url": "player_url"
        },
        "save": false,
        "created_at": "created_at",
        "updated_at": "updated_at",
        "status": "status",
        "video": {
            "id": "video_id",
            "user_id": "user_id",
            "title": "title",
            "description": "description",
            "metadata": [
                {
                    "key": "live_stream_id",
                    "value": "live_stream_id"
                }
            ],
            "tags": null,
            "qualities": [
                {
                    "name": "360p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 750000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "480p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 1200000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "720p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 3000000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "1080p",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "h264",
                    "video_bitrate": 5000000,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                },
                {
                    "name": "default-audio",
                    "status": "waiting",
                    "type": "hls",
                    "video_codec": "",
                    "video_bitrate": 0,
                    "audio_codec": "aac",
                    "audio_bitrate": 128000
                }
            ],
            "captions": null,
            "chapters": null,
            "view": 0,
            "player_theme": null,
            "duration": 0,
            "size": 0,
            "is_mp4": false,
            "is_public": true,
            "status": "status",
            "created_at": "created_at",
            "updated_at": "updated_at",
            "assets": {
                "source_url": "",
                "thumbnail_url": "",
                "hls_url": "",
                "dash_url": "",
                "mp4_url": "",
                "hls_iframe": "",
                "dash_iframe": "",
                "hls_player_url": "",
                "dash_player_url": ""
            },
            "player_theme_id": ""
        },
        "frame_rate": 0,
        "audio_bitrate": 0,
        "current_view": 0,
        "total_view": 0
    }
}
curl --location 'https://api.aiozstream.network/api/live_streams/live_video_id/video' \
--header 'accept: application/json, text/plain, */*' \
--header 'accept-language: en-US,en;q=0.6' \
--header 'authorization: Bearer <YOUR_JWT_TOKEN>'

Delete live streaming video

This endpoint allows you to delete a live streaming video.

DELETEhttps://api.aiozstream.network/api/live_streams/:key_id/streamings/:stream_id

Parameters

key_id* The unique identifier of the live streaming key
stream_id* The unique identifier of the live streaming

Headers

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

Response

200: OK
{
    "status": "success",
    "message": "Delete streaming success"
}
curl --location --request DELETE 'https://api.aiozstream.network/api/live_streams/key_id/streamings/stream_id' \
--header 'accept: application/json' \
--header 'Authorization: Bearer <YOUR_JWT_TOKEN>' \