Returns a list of YouTube broadcasts that match the API request parameters.
For method-specific error responses, see liveBroadcasts.list errors. For code examples, see liveBroadcasts.list code snippets.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/liveBroadcasts
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
broadcastStatus |
Filters results to broadcasts with the specified status. You must specify exactly one filter parameter per request ( Valid values of this enum field are:
|
id[] |
A comma-separated list of YouTube broadcast IDs to retrieve. You must specify exactly one filter parameter per request ( |
mine |
Set to |
broadcastType |
Filters results to broadcasts of the specified type. The default value is Valid values of this enum field are:
|
maxResults |
The maximum number of items that should be 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. A comma-separated list of one or more |
onBehalfOfContentOwner |
Intended exclusively for YouTube content partners and valid only in an authorized request. Indicates that the request's authorization credentials identify a YouTube CMS user acting on behalf of the specified content owner, allowing partners that manage multiple channels to authenticate once and access data for linked channels. The CMS account must be linked to the specified YouTube content owner. |
onBehalfOfContentOwnerChannel |
Intended exclusively for YouTube content partners and valid only in an authorized request. Specifies the YouTube channel ID of the channel to act on behalf of for this broadcast request. Required whenever |
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 |
General pagination information. |
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 broadcasts 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.