ZUJONOW
Book a demo
Book a demo
    Realtime communication
  • →   Tutorial

APIs

  1. Create new livestream
  2. List all livestreams
  3. Show livestream details
  4. Update livestream
  5. Delete livestream

1. Create new livestream

Body parameters (JSON)

  • name: Nickname of your livestream.
  • record: Set this field true to record the livestream.
curl -L -X POST 'https://api.zujonow.com/v1/livestreams' \
--header 'Authorization: `jwt token goes here`' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Nickname for livestream",
"record": true
}'

Response

{
"record": true,
"id": "6034a7dfa9cedd724c20cf67",
"name": "Nickname for livestream",
"streamKey": "d492a9ed-84ce-448c-84dd-718bdea724a5",
"upstreamUrl": "rtmp://live.zujonow.com/live/...",
"downstreamUrl": "https://live.zujonow.com/live/.../index.m3u8",
"recordingUrl": "https://live.zujonow.com/live/.../storage/index.m3u8",
"createdAt": "2021-02-23T06:59:43.049Z",
"updatedAt": "2021-02-23T06:59:43.049Z"
}

2. List all Livestreams

Query parameters

  • page: Current page you are on
  • perPage: Number of record you want on per page.
curl -L -X GET 'https://api.zujonow.com/v1/livestreams/?page=1&perPage=20' \
--header 'Authorization: `jwt token goes here`' \

Response

{
"pageInfo": {
"currentPage": 1,
"perPage": 20,
"lastPage": 1
},
"data": [
{
"record": true,
"id": "60348faca9cedd724c20cf66",
"userId": "5fa671e77b80d58c11cbca95",
"name": "Nickname for livestream",
"streamKey": "0893a39c-0f3f-4ac8-8700-06151a1f68ed",
"upstreamUrl": "rtmp://live.zujonow.com/live/...",
"downstreamUrl": "https://live.zujonow.com/live/.../index.m3u8",
"recordingUrl": "https://live.zujonow.com/live/.../storage/index.m3u8",
"createdAt": "2021-02-23T05:16:28.219Z",
"updatedAt": "2021-02-23T05:16:28.219Z"
},
...
]
}

3. Show livestream details

Path parameters

  • id : The unique identifier for the live stream (id from stream object).
curl -L -X GET 'https://api.zujonow.com/v1/livestreams/{id}' \
--header 'Authorization: `jwt token goes here`'

Response

{
"record": true,
"id": "6034a7dfa9cedd724c20cf67",
"name": "Nickname for livestream",
"streamKey": "d492a9ed-84ce-448c-84dd-718bdea724a5",
"upstreamUrl": "rtmp://live.zujonow.com/live/...",
"downstreamUrl": "https://live.zujonow.com/live/.../index.m3u8",
"recordingUrl": "https://live.zujonow.com/live/.../storage/index.m3u8",
"createdAt": "2021-02-23T06:59:43.049Z",
"updatedAt": "2021-02-23T06:59:43.049Z"
}

4. Update livestream

Path parameters

  • id : The unique identifier for the live stream (id from stream object).

Body parameters (JSON)

  • name: Nickname of your livestream.
  • record: Set this field true to record the livestream.
curl -L -X POST 'https://api.zujonow.com/v1/livestreams/{id}' \
--header 'Authorization: `jwt token goes here`' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Nickname for livestream",
"record": true
}'

Response

{
"record": true,
"id": "6034a7dfa9cedd724c20cf67",
"name": "Nickname for livestream",
"streamKey": "d492a9ed-84ce-448c-84dd-718bdea724a5",
"upstreamUrl": "rtmp://live.zujonow.com/live/...",
"downstreamUrl": "https://live.zujonow.com/live/.../index.m3u8",
"recordingUrl": "https://live.zujonow.com/live/.../storage/index.m3u8",
"createdAt": "2021-02-23T06:59:43.049Z",
"updatedAt": "2021-02-23T06:59:43.049Z"
}

5. Delete livestream

Path parameters

  • id : The unique identifier for the live stream (id from stream object).
curl --location --request DELETE 'https://api.zujonow.com/v1/livestreams/{id}' \
--header 'Authorization: `jwt token goes here`'

Response

{
"record": false,
"id": "6034a7dfa9cedd724c20cf67",
"name": "Nickname for livestream",
"streamKey": "d492a9ed-84ce-448c-84dd-718bdea724a5",
"upstreamUrl": "rtmp://live.zujonow.com/live/...",
"downstreamUrl": "https://live.zujonow.com/live/.../index.m3u8",
"recordingUrl": "https://live.zujonow.com/live/.../storage/index.m3u8",
"createdAt": "2021-02-23T06:59:43.049Z",
"updatedAt": "2021-02-23T08:13:39.309Z"
}

ZUJONOW

Make your app engaging.

+918401688331

API/SDKRealtime communicationLive streamingOn Demand VideoContent delivery

Copyright © 2021 ZUJONOW