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

Returns a list of video streams that match the API request parameters.

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

### HTTP request

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

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

### Query parameters

| Parameters ||
|---|---|
| `id[]` | `string` Specifies a comma-separated list of YouTube stream IDs that identify the streams to retrieve (up to 50 IDs by default). Specify exactly one filter parameter (`id` or `mine`). Invalid or unauthorized stream IDs are ignored. |
| `mine` | `boolean` Set this parameter's value to `true` to retrieve reusable streams owned by the authenticated user. Specify exactly one filter parameter (`id` or `mine`). Setting this parameter to `false` returns an error. Non-reusable streams (`contentDetails.isReusable` set to `false`) aren't returned when using `mine=true`; retrieve them using the `id` parameter instead. |
| `maxResults` | `integer (uint32 format)` Specifies the maximum number of items returned in the result set. Acceptable values are `0` to `50`, inclusive. The default value is `5`. Pagination applies only when using `mine=true`; when filtering by `id`, `maxResults` doesn't cap or paginate the returned streams (except that `maxResults=0` returns an empty list). |
| `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. |
| `part[]` | `string` Required. Specifies a comma-separated list of one or more `liveStream` resource properties that the API response includes. Valid `part` names 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` (required when using `mine=true`). |
| `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 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 (`LiveStream`) } ] } ``` |

| Fields ||
|---|---|
| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `"youtube#liveStreamListResponse"`. |
| `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` Encapsulates paging information for the result set. |
| `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 (`LiveStream`)`` A list of live streams 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](https://developers.google.com/identity/protocols/OAuth2).