- [Resource: LiveBroadcast](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts.md.txt#LiveBroadcast)
  - [JSON representation](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts.md.txt#LiveBroadcast.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts.md.txt#METHODS_SUMMARY)

## Resource: LiveBroadcast

A `liveBroadcast` resource represents an event that is streamed as live video on YouTube.

| JSON representation |
|---|
| ``` { "kind": string, "etag": string, "id": string, "snippet": { "publishedAt": string, "channelId": string, "title": string, "description": string, "categoryId": string, "thumbnails": { object (`ThumbnailDetails`) }, "scheduledStartTime": string, "scheduledEndTime": string, "actualStartTime": string, "actualEndTime": string, "isDefaultBroadcast": boolean, "liveChatId": string }, "status": { "lifeCycleStatus": enum, "privacyStatus": enum, "recordingStatus": enum, "madeForKids": boolean, "selfDeclaredMadeForKids": boolean }, "contentDetails": { "boundStreamId": string, "boundStreamLastUpdateTimeMs": string, "monitorStream": { "enableMonitorStream": boolean, "broadcastStreamDelayMs": integer, "embedHtml": string }, "enableEmbed": boolean, "enableDvr": boolean, "enableContentEncryption": boolean, "recordFromStart": boolean, "enableClosedCaptions": boolean, "closedCaptionsType": enum, "enableLowLatency": boolean, "latencyPreference": enum, "projection": enum, "mesh": string, "enableAutoStart": boolean, "enableAutoStop": boolean, "availabilityConfig": { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "globalConfig": { "excludedRegionCodes": [ string ], "interval": { "startTime": string, "endTime": string } }, "regionsConfig": { "regionIntervals": [ { "regionCode": string, "interval": { "startTime": string, "endTime": string } } ] } // End of mutually exclusive fields. } }, "statistics": { "concurrentViewers": string }, "monetizationDetails": { "cuepointSchedule": { "enabled": boolean, "pauseAdsUntil": string, "creatorCuepointConfig": { "scheduleStrategy": enum, "repeatIntervalSecs": integer }, "ytOptimizedCuepointConfig": enum }, "adsMonetizationStatus": enum, "eligibleForAdsMonetization": boolean } } ``` |

| Fields ||
|---|---|
| `kind` | `string` Output only. Identifies what kind of resource this is. Value: the fixed string `"youtube#liveBroadcast"`. |
| `etag` | `string` Etag of this resource. |
| `id` | `string` The ID that YouTube assigns to uniquely identify the broadcast. |
| `snippet` | `object` The `snippet` object contains basic details about the event, including its title, description, start time, and end time. |
| `snippet.publishedAt` | `string` Output only. The date and time that the broadcast was added to YouTube's live broadcast schedule, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. |
| `snippet.channelId` | `string` Output only. The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast. |
| `snippet.title` | `string` The broadcast's title, up to 100 characters long. Required when creating a broadcast. Each broadcast represents one YouTube video, so you can set this field by modifying the broadcast resource or by setting the [`title`](https://developers.google.com/youtube/data/reference/rest/v3/videos.md.txt#Video.FIELDS.snippet) field of the corresponding video resource. |
| `snippet.description` | `string` The broadcast's description, up to 5000 characters long. You can set this field by modifying the broadcast resource or by setting the [`description`](https://developers.google.com/youtube/data/reference/rest/v3/videos.md.txt#Video.FIELDS.snippet) field of the corresponding video resource. |
| `snippet.categoryId` | `string` The YouTube [video category](https://developers.google.com/youtube/data/reference/rest/v3/videoCategories/list.md.txt) associated with the broadcast. If omitted when creating a broadcast, YouTube assigns the Entertainment category. |
| `snippet.thumbnails` | ``object (`ThumbnailDetails`)`` Output only. A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail. |
| `snippet.scheduledStartTime` | `string` The date and time that the broadcast is scheduled to start, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. The start time can be at most 3 years in the future. Broadcasts created in YouTube Studio without a scheduled start time use Unix epoch zero (`1970-01-01T00:00:00Z`) and can't have their start time changed. |
| `snippet.scheduledEndTime` | `string` The date and time that the broadcast is scheduled to end, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. If omitted, the broadcast is scheduled to continue indefinitely. |
| `snippet.actualStartTime` | `string` Output only. The date and time that the broadcast actually started, available only once the broadcast's state is `live`. The value is specified in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. |
| `snippet.actualEndTime` | `string` Output only. The date and time that the broadcast actually ended, available only once the broadcast's state is `complete`. The value is specified in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. |
| `snippet.isDefaultBroadcast` | `boolean` Whether this broadcast is the channel's default broadcast for the deprecated Stream Now workflow. See the [YouTube Live Streaming API revision history](https://developers.google.com/youtube/data/live/revision_history.md.txt#release_notes_04_16_2020) for details. This field is read-only; setting it to `true` in `liveBroadcasts.insert` or changing it in `liveBroadcasts.update` returns an error. |
| `snippet.liveChatId` | `string` Output only. The ID of the live chat bound to this broadcast. You can use this value with `liveChatMessages`, `liveChatModerators`, and `liveChatBans` methods to manage live chat messages (see the [`liveChatMessage`](https://developers.google.com/youtube/data/reference/rest/v3/liveChatMessages.md.txt#LiveChatMessage) resource). |
| `status` | `object` The `status` object contains information about the event's status. |
| `status.lifeCycleStatus` | `enum` Output only. The broadcast's status, updated using the [`liveBroadcasts.transition`](https://developers.google.com/youtube/data/reference/rest/v3/liveBroadcasts/transition.md.txt) method. Valid values are `complete` (the broadcast is finished), `created` (incomplete settings, but otherwise valid), `live` (the broadcast is visible to its audience), `liveStarting` (moving into the `live` state), `ready` (complete settings, ready to start), `revoked` (removed by admin action), `testStarting` (moving into the `testing` state), and `testing` (visible only to the partner). Valid values of this enum field are: - `created` - `ready` - `testing` - `live` - `complete` - `revoked` - `testStarting` - `liveStarting` |
| `status.privacyStatus` | `enum` The broadcast's privacy status. Each broadcast represents one YouTube video, so privacy settings match those supported for videos. You can set this field by modifying the broadcast resource or by setting the [`privacyStatus`](https://developers.google.com/youtube/data/reference/rest/v3/videos.md.txt#Video.FIELDS.status) field of the corresponding video resource. Valid values are `private`, `public`, and `unlisted`. Valid values of this enum field are: - `public` - `unlisted` - `private` |
| `status.recordingStatus` | `enum` Output only. The broadcast's recording status. Valid values are `notRecording` (the recording has not started), `recorded` (the recording is complete and can't restart), and `recording` (the recording is active). Valid values of this enum field are: - `notRecording` - `recording` - `recorded` |
| `status.madeForKids` | `boolean` Whether YouTube designates the broadcast as made for kids. This field is read-only; setting it in `liveBroadcasts.insert` or changing it in `liveBroadcasts.update` returns an error. |
| `status.selfDeclaredMadeForKids` | `boolean` Whether the creator declares the broadcast to be made for kids. You can set this value only when creating a broadcast with `liveBroadcasts.insert`; it can't be modified in `liveBroadcasts.update`. In `liveBroadcasts.list` responses, this property is returned only when the request is authorized by the channel owner. |
| `contentDetails` | `object` The `contentDetails` object contains information about the event's video content, such as whether the content can play in an embedded player or is recorded so viewers can watch it after the event ends. |
| `contentDetails.boundStreamId` | `string` Output only. The unique ID of the [live stream](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams.md.txt) bound to the broadcast. |
| `contentDetails.boundStreamLastUpdateTimeMs` | `string` Output only. The date and time when the live stream referenced by `boundStreamId` was last updated, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. |
| `contentDetails.monitorStream` | `object` The `monitorStream` object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly. |
| `contentDetails.monitorStream.enableMonitorStream` | `boolean` Whether the monitor stream is enabled for the broadcast. When `true` (the default), YouTube streams event content to a special stream visible only to the broadcaster so you can review the video before going live, and you must change the broadcast status to `testing` before moving to `live`. Set this to `true` to use `broadcastStreamDelayMs`. When `false`, you can move directly to `live`. This property is required in `liveBroadcasts.update` when `part` includes `contentDetails`, and can't be modified once `testing` or `live` starts. |
| `contentDetails.monitorStream.broadcastStreamDelayMs` | `integer (uint32 format)` Length of the live broadcast delay in milliseconds when `enableMonitorStream` is `true`. The default value is `0`. Nonzero delays aren't supported with `low` or `ultraLow` latency. This property is required in `liveBroadcasts.update` when `part` includes `contentDetails` and `enableMonitorStream` is `true`. |
| `contentDetails.monitorStream.embedHtml` | `string` Output only. HTML code that embeds a player for the monitor stream, populated when `enableMonitorStream` is `true`. |
| `contentDetails.enableEmbed` | `boolean` Whether the broadcast video can play in an embedded player. If you also record the video (using `recordFromStart`), this setting applies to the recorded video. The default value is `true`. Omitting this property in `liveBroadcasts.update` preserves its existing value. Enabling embedding requires live embedding eligibility for the video. |
| `contentDetails.enableDvr` | `boolean` Whether viewers can access DVR controls (pausing, rewinding, or fast forwarding) while watching the video. The default value is `true`. Set both `enableDvr` and `recordFromStart` to `true` to make playback available immediately after the broadcast ends. Omitting this property in `liveBroadcasts.update` preserves its existing value, and it can be updated while the broadcast is live. |
| `contentDetails.enableContentEncryption` | `boolean` Whether YouTube enables content encryption for the broadcast. Accepted in `liveBroadcasts.insert` and returned in responses; ignored in `liveBroadcasts.update`. |
| `contentDetails.recordFromStart` | `boolean` Whether YouTube automatically starts recording when the event goes live. The default value is `true`. Setting this property to `false` requires permission to modify recording settings (`403 forbidden` otherwise), and it can't be modified once the broadcast is `live`. Set both `recordFromStart` and `enableDvr` to `true` to make recorded playback available immediately after the broadcast ends; if `recordFromStart` is `true` and `enableDvr` is `false`, recorded playback can take up to one day to become available. |
| `contentDetails.enableClosedCaptions (deprecated)` | `boolean` Deprecated: Use `closedCaptionsType` instead. Whether HTTP POST closed captioning is enabled for this broadcast (`false` corresponds to `closedCaptionsDisabled`, and `true` corresponds to `closedCaptionsHttpPost`). When enabled, the captions ingestion URL is returned on the bound [`liveStream`](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams.md.txt#LiveStream.FIELDS.content_details) resource. Setting this to `true` is mutually exclusive with setting `closedCaptionsType` to `closedCaptionsEmbedded`. Omitting both closed-caption properties in `liveBroadcasts.update` when `part` includes `contentDetails` disables captions before testing; once `testing` or `live` starts, omitting them fails if captions are enabled on the broadcast and succeeds if captions are already disabled. |
| `contentDetails.closedCaptionsType` | `enum` Configures closed captioning for the broadcast. Valid values are `closedCaptionsDisabled` (the default; disables closed captions), `closedCaptionsHttpPost` (send captions using HTTP POST to the ingestion URL returned on the bound [`liveStream`](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams.md.txt#LiveStream.FIELDS.content_details) resource), and `closedCaptionsEmbedded` (captions encoded in the video using EIA-608 or CEA-708). This property is unsupported with `ultraLow` latency and can't be modified once `testing` or `live` starts. Omitting both `closedCaptionsType` and `enableClosedCaptions` in `liveBroadcasts.update` when `part` includes `contentDetails` disables captions before testing; once `testing` or `live` starts, omitting them fails if captions are enabled on the broadcast and succeeds if captions are already disabled. Valid values of this enum field are: - `closedCaptionsDisabled` - `closedCaptionsHttpPost` - `closedCaptionsEmbedded` |
| `contentDetails.enableLowLatency (deprecated)` | `boolean` Deprecated: Use `latencyPreference` instead. Whether low latency is enabled for this broadcast. Incompatible with a nonzero `broadcastStreamDelayMs`. If both `enableLowLatency` and `latencyPreference` are set, they must match (`false` matches `normal`, `true` matches `low`, and `ultraLow` requires omitting `enableLowLatency`). Can't be modified once `testing` or `live` starts. |
| `contentDetails.latencyPreference` | `enum` The broadcast latency mode. Valid values are `normal` (best for highest-quality viewer playback and higher resolutions), `low` (near real-time interaction with minimal buffering; doesn't support a nonzero `broadcastStreamDelayMs`), and `ultraLow` (real-time interaction; doesn't support closed captions, a nonzero `broadcastStreamDelayMs`, or resolutions above 1080p such as 1440p and 4K). If both `latencyPreference` and the deprecated `enableLowLatency` property are set, they must match (`normal` matches `false`, `low` matches `true`, and `ultraLow` requires omitting `enableLowLatency`). Can't be modified once `testing` or `live` starts. Valid values of this enum field are: - `normal` - `low` - `ultraLow` |
| `contentDetails.projection` | `enum` The projection format of this broadcast. Valid values are `rectangular` (the default), `360`, and `mesh`. Can't be modified once `testing` or `live` starts. When updating `contentDetails` on a `360` broadcast after testing starts, continue to include `projection: "360"`. Valid values of this enum field are: - `rectangular` - `360` - `mesh` |
| `contentDetails.mesh` | `string (bytes format)` The projection mesh when `projection` is `mesh`. Required if and only if `projection` is `mesh` when creating a broadcast, and can't be modified once `testing` or `live` starts. The value must be a UTF-8 string containing the base64-encoded 3D mesh data following the [Spherical Video V2 RFC specification](https://github.com/google/spatial-media/blob/master/docs/spherical-video-v2-rfc.md) for an `mshp` box, excluding the box size and type but including the following four reserved zero bytes for the version and flags. A base64-encoded string. |
| `contentDetails.enableAutoStart` | `boolean` Whether the broadcast starts automatically when you begin streaming video to the bound live stream, transitioning directly to `live` without calling `liveBroadcasts.transition`. The default value is `false`. This property can be modified only before `testing` or `live` starts and while the bound ingestion is inactive. This setting can be used only for events. |
| `contentDetails.enableAutoStop` | `boolean` Whether the broadcast stops automatically about one minute after you stop streaming video to the bound live stream. The default value is `false`. This setting can be used only for events. |
| `contentDetails.availabilityConfig` | `object` Optional. The broadcast's region availability or restriction configuration. If unset, no region restriction is enforced. Setting this property requires creator geo-restriction eligibility (`403 forbidden` otherwise). |
| `contentDetails.availabilityConfig.globalConfig` | `object` Video is available in all regions except the ones specified in the config. |
| `contentDetails.availabilityConfig.globalConfig.excludedRegionCodes[]` | `string` Optional. Regions where the video is blocked, specified as uppercase two-letter ISO 3166-1 alpha-2 country codes. |
| `contentDetails.availabilityConfig.globalConfig.interval` | `object` Default time window when the video is available for all non-blocked regions. Required for VODs and completed live broadcasts (pass an empty `{}` object for immediate, indefinite availability); not supported for upcoming or active live broadcasts. If the start time is unspecified, the video is available immediately. If the end time is unspecified, the video is available indefinitely. Start and end times can't be more than five years in the future. |
| `contentDetails.availabilityConfig.globalConfig.interval.startTime` | ``string (`Timestamp` format)`` Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `contentDetails.availabilityConfig.globalConfig.interval.endTime` | ``string (`Timestamp` format)`` Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `contentDetails.availabilityConfig.regionsConfig` | `object` Video is available in the specified regions only. |
| `contentDetails.availabilityConfig.regionsConfig.regionIntervals[]` | `object` Required. A list of regions and time windows where the video is available. If a region is specified multiple times, the union of all intervals is used. |
| `contentDetails.availabilityConfig.regionsConfig.regionIntervals[].regionCode` | `string` Required. Region where the video is available, specified as an uppercase two-letter ISO 3166-1 alpha-2 country code. |
| `contentDetails.availabilityConfig.regionsConfig.regionIntervals[].interval` | `object` Time window when the video is available for the region. Required for VODs and completed live broadcasts (pass an empty `{}` object for immediate, indefinite availability); not supported for upcoming or active live broadcasts. If the start time is unspecified, the video is available immediately. If the end time is unspecified, the video is available indefinitely. Start and end times can't be more than five years in the future. |
| `contentDetails.availabilityConfig.regionsConfig.regionIntervals[].interval.startTime` | ``string (`Timestamp` format)`` Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `contentDetails.availabilityConfig.regionsConfig.regionIntervals[].interval.endTime` | ``string (`Timestamp` format)`` Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `statistics` | `object` Output only. The `statistics` object contains snapshot statistics for the broadcast, such as the number of concurrent viewers. Statistics can increase or decrease over the lifetime of an event. |
| `statistics.concurrentViewers` | `string` Output only. Number of viewers watching the broadcast. Defaults to `0` when the broadcast isn't live or when view counts are hidden or unavailable. YouTube stops tracking concurrent viewers when the broadcast ends, so this property doesn't reflect viewers watching an archived replay. |
| `monetizationDetails` | `object` The `monetizationDetails` object contains monetization details for the broadcast. This object is available only to channels eligible for monetization through the YouTube Partner Program (YPP). |
| `monetizationDetails.cuepointSchedule` | `object` Automated midroll ad cuepoint schedule for the broadcast. Required when `adsMonetizationStatus` is `on`, and must be omitted when `adsMonetizationStatus` is `off`. Pause-only updates can set only `cuepointSchedule.pauseAdsUntil` without specifying `adsMonetizationStatus` or `cuepointSchedule.enabled`. |
| `monetizationDetails.cuepointSchedule.enabled` | `boolean` Whether automated midroll ad insertion is enabled (`false` by default). Required when updating `monetizationDetails` with `adsMonetizationStatus` set to `on`, except for pause-only updates that specify only `cuepointSchedule.pauseAdsUntil`. If `false`, other `cuepointSchedule` fields must be omitted. |
| `monetizationDetails.cuepointSchedule.pauseAdsUntil` | `string` Pauses automatic cuepoint insertion until this timestamp, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. The timestamp can be at most 10 minutes in the future and is valid only while the broadcast is `live` and ads automation is enabled. Setting an empty string or a past timestamp resumes automatic cuepoint insertion. |
| `monetizationDetails.cuepointSchedule.creatorCuepointConfig` | `object` Creator-managed automated cuepoint scheduling configuration. Mutually exclusive with `ytOptimizedCuepointConfig`. When `cuepointSchedule.enabled` is `true` and `pauseAdsUntil` is omitted, exactly one of `creatorCuepointConfig` or `ytOptimizedCuepointConfig` is required. When specified, both `scheduleStrategy` and `repeatIntervalSecs` are required. |
| `monetizationDetails.cuepointSchedule.creatorCuepointConfig.scheduleStrategy` | `enum` Strategy used to schedule automated cuepoints. Required when `creatorCuepointConfig` is specified. Valid values are `concurrent` (insert cuepoints at the same time for all viewers) and `nonConcurrent` (schedule cuepoints at an increased rate so viewers receive cuepoints when eligible). Valid values of this enum field are: - `concurrent` - `nonConcurrent` |
| `monetizationDetails.cuepointSchedule.creatorCuepointConfig.repeatIntervalSecs` | `integer` Interval in seconds between automatically inserted cuepoints. Required when `creatorCuepointConfig` is specified. Accepts values from `360` to `3600` seconds (6 to 60 minutes) and truncates down to the nearest multiple of `360` seconds. |
| `monetizationDetails.cuepointSchedule.ytOptimizedCuepointConfig` | `enum` YouTube-optimized automated cuepoint scheduling configuration. Mutually exclusive with `creatorCuepointConfig`. When `cuepointSchedule.enabled` is `true` and `pauseAdsUntil` is omitted, exactly one of `creatorCuepointConfig` or `ytOptimizedCuepointConfig` is required. Valid values are `low` (conservative frequency), `medium` (moderate frequency), and `high` (aggressive frequency). Valid values of this enum field are: - `low` - `medium` - `high` |
| `monetizationDetails.adsMonetizationStatus` | `enum` The ads monetization status of the broadcast. Valid values are `on` (the broadcast is monetized with ads) and `off` (the broadcast isn't monetized with ads). Required when updating `monetizationDetails`, except for pause-only updates that specify only `cuepointSchedule.pauseAdsUntil`. Valid values of this enum field are: - `on` - `off` |
| `monetizationDetails.eligibleForAdsMonetization` | `boolean` Whether the broadcast is eligible for ads monetization. Returns `false` if the channel isn't enabled for monetization or the broadcast has a claim. This field is read-only; including it in a `liveBroadcasts.update` request returns an error. |

| ## Methods ||
|---|---|
| ### `bind` | Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. |
| ### `delete` | Deletes a broadcast. |
| ### `insert` | Creates a broadcast. |
| ### `insertCuepoint` | Inserts an ad cuepoint into a broadcast, replacing the Content-Owner-only [`liveCuepoints.insert`](https://developers.google.com/youtube/partner/reference/rest/v1/liveCuepoints/insert.md.txt) method without requiring Content Owner authorization. |
| ### `list` | Returns a list of YouTube broadcasts that match the API request parameters. |
| ### `transition` | Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. |
| ### `update` | Updates a broadcast. |