The /stream
endpoint provides a list of all stream
objects, including
parent-config and child-session stream
objects. The following filters are
helpful for optimizing your platform with the Livepeer.com API.
⚠️ Some of the examples show decoded JSON objects. But, remember that anything passed as a parameter in a GET request URL must be URL encoded.
stream
objects with streamsonly=1
Excludes child-session stream
objects
curl -H 'authorization: Bearer {api-key}' \"https://livepeer.com/api/stream?streamsonly=1"
Exclude child-session objects
curl -H 'authorization: Bearer {api-key}' \"https://livepeer.com/api/stream?streamsonly=1&filters=[{"id": "isActive", "value": true}]"
Exclude child-session objects
curl -H 'authorization: Bearer {api-key}' \"https://livepeer.com/api/stream?streamsonly=1&filters=[{"id": "isActive", "value": false}]"
sessionsonly=1
Excludes parent objects and only returns child-session stream
objects
curl -H 'authorization: Bearer {api-key}' \"https://livepeer.com/api/stream?sessionsonly=1"
/stream/<parentId>/sessions
to return only sessions with the same parentId
curl -H 'authorization: Bearer {api-key}' \"https://livepeer.com/api/stream/{parentId}/sessions
parentId
using record=1
All sessions with stream
objects with the same parentId
and record: true
curl -H 'authorization: Bearer {api-key}' \"https://livepeer.com/api/stream/{parentId}/sessions?record=1"
Next learn how to delete a stream with the Livepeer.com API.