- [HTTP request](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams/insert.md.txt#body.HTTP_TEMPLATE)
- [Query parameters](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams/insert.md.txt#body.QUERY_PARAMETERS)
- [Request body](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams/insert.md.txt#body.request_body)
- [Response body](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams/insert.md.txt#body.response_body)
- [Authorization scopes](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams/insert.md.txt#body.aspect)
- [Try it!](https://developers.google.com/youtube/data/reference/rest/v3/liveStreams/insert.md.txt#try-it)

Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.

Specify the following properties in the `LiveStream` request body:

- **Required:** `snippet.title`, `cdn.frameRate`, `cdn.ingestionType`, and `cdn.resolution`.
- **Optional writable properties:** `snippet.description` and `contentDetails.isReusable` (defaults to `true`).

Every populated part in the request body must be included in the `part` query parameter.

For method-specific error responses, see [liveStreams.insert errors](https://developers.google.com/youtube/data/reference/rest/v3/errors.md.txt#liveStreams_youtube.liveStreams.insert). For code examples, see [liveStreams.insert code snippets](https://developers.google.com/youtube/data/code_samples/code_snippets.md.txt?method=liveStreams.insert).

### HTTP request

`POST https://youtube.googleapis.com/youtube/v3/liveStreams`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Query parameters

| Parameters ||
|---|---|
| `part[]` | `string` Required. Serves two purposes in this operation: it identifies the properties that the write operation sets as well as the properties that the API response includes. Valid `part` values are `cdn`, `contentDetails`, `id`, `snippet`, and `status`. |
| `onBehalfOfContentOwner` | `string` 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`; without it, the request targets the authenticated user's own channel. |
| `onBehalfOfContentOwnerChannel` | `string` This parameter can only be used in a properly [authorized request](https://developers.google.com/youtube/data/guides/authentication.md.txt), 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 `onBehalfOfContentOwner` to target a channel managed by the content owner. This parameter can only be used with `onBehalfOfContentOwner`, the authenticating CMS account must be linked to that content owner, and the specified channel must be linked to that content owner. 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 contains an instance of `LiveStream`.

### Response body

If successful, the response body contains a newly created instance of `LiveStream`.

### 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](https://developers.google.com/identity/protocols/OAuth2).