Returns a list of video streams that match the API request parameters.
For method-specific error responses, see liveStreams.list errors. For code examples, see liveStreams.list code snippets.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/liveStreams
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id[] |
Specifies a comma-separated list of YouTube stream IDs that identify the streams to retrieve (up to 50 IDs by default). Specify exactly one filter parameter ( |
mine |
Set this parameter's value to |
maxResults |
Specifies the maximum number of items returned in the result set. Acceptable values are |
pageToken |
Identifies a specific page in the result set that should be returned. In an API response, the |
part[] |
Required. Specifies a comma-separated list of one or more |
onBehalfOfContentOwner |
This parameter is intended exclusively for YouTube content partners. Indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. To target a channel managed by the content owner, also specify |
onBehalfOfContentOwnerChannel |
This parameter can only be used in a properly authorized request, and is intended exclusively for YouTube content partners. Specifies the YouTube channel ID of the managed channel for the live stream request. Specify this parameter together with This parameter allows content owners to authenticate once and perform actions on behalf of the specified channel without providing authentication credentials for each separate channel. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"kind": string,
"etag": string,
"nextPageToken": string,
"prevPageToken": string,
"pageInfo": {
"totalResults": integer,
"resultsPerPage": integer
},
"items": [
{
object ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
nextPageToken |
The token that can be used as the value of the |
prevPageToken |
The token that can be used as the value of the |
pageInfo |
Encapsulates paging information for the result set. |
pageInfo.totalResults |
The total number of results in the result set. |
pageInfo.resultsPerPage |
The number of results included in the API response. |
items[] |
A list of live streams that match the request criteria. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.