Method: liveBroadcasts.list

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

enum

Filters results to broadcasts with the specified status. You must specify exactly one filter parameter per request (broadcastStatus, id, or mine). Valid values are active (live broadcasts), all (all broadcasts), completed (ended broadcasts), and upcoming (broadcasts that haven't started).

Valid values of this enum field are:

  • all
  • active
  • upcoming
  • completed
id[]

string

A comma-separated list of YouTube broadcast IDs to retrieve. You must specify exactly one filter parameter per request (broadcastStatus, id, or mine).

mine

boolean

Set to true to retrieve only broadcasts owned by the authenticated user. You must specify exactly one filter parameter per request (broadcastStatus, id, or mine).

broadcastType

enum

Filters results to broadcasts of the specified type. The default value is event. Valid values are all (behaves identically to event), event (event broadcasts), and persistent (returns empty results because the Stream Now workflow is deprecated).

Valid values of this enum field are:

  • all
  • event
  • persistent
maxResults

integer (uint32 format)

The maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5. Applies only to broadcastStatus and mine queries; id lookups return all matching broadcasts without capping or pagination.

pageToken

string

Identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that can be retrieved. Applies only to broadcastStatus and mine queries; id lookups return all matching broadcasts without pagination.

part[]

string

Required. A comma-separated list of one or more liveBroadcast resource properties that the API response includes. Valid values are id, snippet, contentDetails, monetizationDetails, status, and statistics.

onBehalfOfContentOwner

string

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

string

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 onBehalfOfContentOwner is set, and usable only in conjunction with that parameter. The CMS account must be linked to the content owner specified by onBehalfOfContentOwner, and that content owner must link the channel specified by onBehalfOfContentOwnerChannel.

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 (LiveBroadcast)
    }
  ]
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcastListResponse".

etag

string

Etag of this resource.

nextPageToken

string

The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.

prevPageToken

string

The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.

pageInfo

object

General pagination information.

pageInfo.totalResults

integer

The total number of results in the result set.

pageInfo.resultsPerPage

integer

The number of results included in the API response.

items[]

object (LiveBroadcast)

A list of broadcasts that match the request criteria.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/youtube
  • https://www.googleapis.com/auth/youtube.readonly
  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.