Method: liveBroadcasts.bind

Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can bind to only one stream at a time, while a stream can bind to multiple broadcasts.

For method-specific error responses, see liveBroadcasts.bind errors. For code examples, see liveBroadcasts.bind code snippets.

HTTP request

POST https://youtube.googleapis.com/youtube/v3/liveBroadcasts/bind

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
id

string

Required. Unique ID of the YouTube live broadcast to bind or unbind.

streamId

string

Unique ID of the stream to bind to the broadcast. If omitted, removes any existing stream binding from the broadcast.

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 an instance of LiveBroadcast.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the OAuth 2.0 Overview.