Operations related to live streams. A live stream is a single, linear video broadcast. You broadcast a live stream by receiving encoded source video into the Wowza Video service and letting Wowza Video transcode the stream and deliver it to viewers. A live stream is essentially a one-stop method for creating a transcoder, output renditions, stream targets, and associated players.
- Reference
- REST API
- Fetch an uptime record
Wowza Video REST API Reference Documentation (v1.11)
API lifecycle phase: Supported 2
| Want to take the API for a test run? All you'll need is a Wowza Video subscription, or free trial, for the API access token. Then, fork our collection in Postman and you'll be making calls to our REST API in minutes! See Trial the Wowza Video REST API using Postman for more information. |
This reference documentation provides details about the operations, parameters, and request and reponse schemas for every resource and endpoint in the Wowza Video REST API. Samples appear in the right column. Sample requests are presented in cURL (Shell) and JavaScript; some samples also include just the JSON object. Response samples are all JSON. Examples in cURL use environment variables so you can easily copy and paste them. To learn more, see Using cURL.
Reference documentation is available for every version of the API. Use the Version menu at the top of the page to access the reference doc for a different version of the API.
Returns a paginated view of results from the HTTP request. Specify a positive integer to indicate which page of the results should be displayed. The default is 1.
For more information and examples, see Get paginated query results with the Wowza Video REST API.
- Mock serverhttps://developer.wowza.com/_mock/docs/wowza-video/api/video/v1.11/openapi/transcoders/{transcoder_id}/uptimes
- https://api.video.wowza.com/api/v1.11/transcoders/{transcoder_id}/uptimes
- curl
- Java
- Python
- JavaScript
curl -i -X GET \
'https://developer.wowza.com/_mock/docs/wowza-video/api/video/v1.11/openapi/transcoders/{transcoder_id}/uptimes?page=0&per_page=0'Success
A Boolean value that indicates if the usage generated by this uptime has been sent for billing processing.
The date and time that the uptime record was created.
The date and time that the transcoder was stopped for this uptime. If this value is not present, it indicates that the transcoder is currently running.
The unique alphanumeric string that identifies the uptime record.
A Boolean value that indicates if the transcoder is still running for this uptime.
The date and time that the transcoder started for this uptime.
The unique alphanumeric string that identifies the transcoder.
{ "uptimes": [ { … }, { … } ] }
- Mock serverhttps://developer.wowza.com/_mock/docs/wowza-video/api/video/v1.11/openapi/transcoders/{transcoder_id}/uptimes/{id}
- https://api.video.wowza.com/api/v1.11/transcoders/{transcoder_id}/uptimes/{id}
- curl
- Java
- Python
- JavaScript
curl -i -X GET \
'https://developer.wowza.com/_mock/docs/wowza-video/api/video/v1.11/openapi/transcoders/{transcoder_id}/uptimes/{id}'Success
A Boolean value that indicates if the usage generated by this uptime has been sent for billing processing.
The date and time that the uptime record was created.
The date and time that the transcoder was stopped for this uptime. If this value is not present, it indicates that the transcoder is currently running.
The unique alphanumeric string that identifies the uptime record.
A Boolean value that indicates if the transcoder is still running for this uptime.
The date and time that the transcoder started for this uptime.
The unique alphanumeric string that identifies the transcoder.
{ "uptime": { "billed": false, "created_at": "2017-07-06T14:22:00.000Z", "id": "1234abcd", "running": true, "started_at": "2017-07-06T14:22:00.000Z", "transcoder_id": "2adffc17", "updated_at": "2017-07-06T14:22:00.000Z" } }
Provide the details of the output rendition to create in the body of the request.
The codec used to encode the video stream. disabled sends the stream without a video track and passthrough sends the stream without transcoding the video track. Available from version 1.6.
The codec used to encode the audio stream. disabled sends the stream without an audio track and passthrough sends the stream without transcoding the audio track. aac is the most commonly compatible audio codec for protocols, while opus is for WebRTC streams. Available from version 1.6.
The height, in pixels, of the output rendition. Should correspond to a widescreen or standard aspect ratio and be divisible by 8. The default is 1080. Combined with aspect_ratio_width, makes up the input resolution.
Example: "aspect_ratio_height": 1080
The width, in pixels, of the output rendition. Should correspond to a widescreen or standard aspect ratio and be divisible by 8. The default is 1920. Combined with aspect_ratio_height, makes up the input resolution.
Example: "aspect_ratio_width": 1920
The audio bitrate, in kilobits per second (Kbps). Must be between 1 and 9999. If the audio_codec is opus, the default is 510, otherwise the default is 128.
Example: "bitrate_audio": 128
The video bitrate, in kilobits per second (Kbps). Must be between 1 and 10240. The default is 4000.
Example: "bitrate_audio": 1600
Reduce the frame rate of the transcoded output rendition. The default, 0, uses the encoded stream's frame rate without reduction.
Example: "frame_reduction": "1/2"
The encoding method. Specify main for desktop streaming, baseline for playback on mobile devices, or high for HD playback. The default is high.
Example: "h264_profile": "main"
- Mock serverhttps://developer.wowza.com/_mock/docs/wowza-video/api/video/v1.11/openapi/transcoders/{transcoder_id}/outputs
- https://api.video.wowza.com/api/v1.11/transcoders/{transcoder_id}/outputs
- curl
- Java
- Python
- JavaScript
curl -i -X POST \
'https://developer.wowza.com/_mock/docs/wowza-video/api/video/v1.11/openapi/transcoders/{transcoder_id}/outputs' \
-H 'Content-Type: application/json' \
-d '{
"output": {
"video_codec": "h264",
"audio_codec": "aac",
"aspect_ratio_height": 480,
"aspect_ratio_width": 848,
"bitrate_audio": 128,
"bitrate_video": 1600,
"framerate_reduction": "1/2",
"h264_profile": "main",
"keyframes": "follow_source"
}
}'Success
The height, in pixels, of the output rendition. Should correspond to a widescreen or standard aspect ratio and be divisible by 8. The default is 1080. Combined with aspect_ratio_width, makes up the input resolution.
The width, in pixels, of the output rendition. Should correspond to a widescreen or standard aspect ratio and be divisible by 8. The default is 1920. Combined with aspect_ratio_height, makes up the input resolution.
The audio bitrate, in kilobits per second (Kbps). Must be between 1 and 9999. If the audio_codec is opus, the default is 510, otherwise the default is 128.
The video bitrate, in kilobits per second (Kbps). Must be between 1 and 10240. The default is 4000.
The date and time that the output rendition was created.
Reduce the frame rate of the transcoded output rendition. The default, 0, uses the encoded stream's frame rate without reduction.
The encoding method. Specify main for desktop streaming, baseline for playback on mobile devices, or high for HD playback. The default is high.
The unique alphanumeric string that identifies the output rendition.
The interval used to define the compression applied to a group of frames. The default, follow_source, uses the keyframe interval of the source video.
A descriptive name for the output (generated, not writable).
The codec used to encode the video stream. disabled sends the stream without a video track and passthrough sends the stream without transcoding the video track. Available from version 1.6.
The codec used to encode the audio stream. disabled sends the stream without an audio track and passthrough sends the stream without transcoding the audio track. aac is the most commonly compatible audio codec for protocols, while opus is for WebRTC streams. Available from version 1.6.
The unique alphanumeric string that identifies the transcoder.
{ "output": { "aspect_ratio_height": 480, "aspect_ratio_width": 848, "bitrate_audio": 128, "bitrate_video": 1600, "created_at": "2020-01-29T17:16:21.964Z", "framerate_reduction": "1/2", "h264_profile": "main", "id": "w9vJm3BJ", "keyframes": "follow_source", "name": "Standard Output: Video (848 x 480) + Audio", "output_stream_targets": [ … ], "video_codec": "h264", "audio_codec": "aac", "transcoder_id": "PblTJm1t", "updated_at": "2020-01-31T13:47:33.964Z" } }
Operations related to recordings, which are created through the /live_streams or /transcoders resources. The Wowza Video service can create MP4 recordings of your live streams and transcoded output. Recordings can be downloaded and saved locally. They're based on the highest-bitrate output rendition that Wowza Video generates from your video source. See About recordings to learn more.
Operations related to schedules. Schedules allow you to automatically start or stop a live stream or transcoder at a predetermined date and time. You can configure a schedule to start and/or stop a live stream or transcoder just once, or you can configure it to repeat the behavior on a regular basis. See About schedules to learn more.
Operations related to video on demand (VOD) streams, which are created through the /live_streams or /transcoders resources. A VOD stream is a recording of a live stream that viewers can replay at a later date. After the broadcast is over and the live stream or transcoder is stopped, Wowza Video creates the VOD stream and generates a playback URL. See About VOD Streams to learn more.
Operations related to Real-Time Streaming at Scale. If your audience is fewer than 300 viewers or you want to deliver a stream in near real time alongside other delivery protocols, use our WebRTC solution.
To enable and purchase capacity for Real-Time Streaming at Scale for your account and access the /real_time operations, contact 720.279.8163 or schedule a call.