beta/
docs
/
overview
OverviewGuidesAPI Reference
Log inSign up
beta/
docs
/
overview
OverviewGuidesAPI Reference
Sign upLogin
Guides
Getting started with Livepeer.com
Live stream with the Livepeer.com API
Overview
List all streams
Live stream with the Livepeer.com dashboard
Your Livepeer.com account

How to use the Livepeer.com API to list all streams created by a Livepeer.com user

To list all the streams created by a user, you will need the userId from the API key object.

The simplest way to find your userId is by fetching the API key information. For example:

curl -H 'authorization: Bearer {api_key}' \
"https://livepeer.com/api/api-token/{api_key}

You will get the API key object in the response. For example:

{
"id":"{api_key}",
"userId":"1234abcd-1234-abcd-1234-abcd1234abcd",
"name":"example-api-key",
"createdAt":1596047053660
}

Use the userId to fetch all the streams created by the user. For example:

curl -H 'authorization: Bearer {api_key}' \
"https://livepeer.com/api/stream/user/{user_id}"

Next learn how to delete a stream with the Livepeer.com API.

Livepeer.com
beta
  • Company
  • Home
  • Contact
  • Team
  • Jobs
  • Livepeer, Inc.
  • 223 Bedford Ave PMB 530
    Brooklyn, NY 11211
  • hello@livepeer.com