Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or retrieve one or more playlists by their unique IDs.
Unauthenticated requests (using an API key) can retrieve public playlists using channelId, or public and unlisted playlists using id. Retrieving private playlists, listing unlisted playlists using channelId, using mine=true, or specifying onBehalfOfContentOwner requires OAuth 2.0 authorization.
For method-specific error responses, see playlists.list errors. For code examples, see playlists.list code snippets.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/playlists
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id[] |
Specifies a comma-separated list of up to 50 YouTube playlist IDs for the resources to retrieve. Specify exactly one filter parameter ( |
mine |
Set this parameter's value to |
channelId |
Specifies a YouTube channel ID to return that channel's playlists. Specify exactly one filter parameter ( |
hl |
Instructs the API to retrieve localized resource metadata for a specific application language that YouTube supports. The value must be a language code returned by When localized details are available in that language, |
maxResults |
Specifies the maximum number of items returned in the result set. Acceptable values are |
pageToken |
Identifies a specific page in the result set to return. In an API response, |
part[] |
Required. Specifies a comma-separated list of one or more If the parameter identifies a property that contains child properties, the child properties are included in the response. For example, in a Valid values are |
onBehalfOfContentOwner |
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. When combining this parameter with |
onBehalfOfContentOwnerChannel |
Intended exclusively for YouTube content partners and valid only in an authorized request. Specifies the YouTube channel ID of the managed channel whose playlists are being retrieved. This parameter can only be used together with |
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 ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
nextPageToken |
The token that can be used as the value of the |
prevPageToken |
The token that can be used as the value of the |
pageInfo |
Encapsulates paging information for the result set. |
pageInfo.totalResults |
The total number of results in the result set. |
pageInfo.resultsPerPage |
The number of results included in the API response. |
items[] |
A list of playlists that match the request criteria. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.