Resource: Playlist
A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. Playlists can be public, private, or unlisted; playlists created with the API default to private.
YouTube also uses playlists to identify special collections of videos for a channel, such as uploaded videos and positively rated (liked) videos. These lists are associated with a channel, and you can retrieve their playlist IDs from the channel resource.
You can call playlistItems.list to retrieve any of those lists, and playlistItems.insert or playlistItems.delete to add or remove items from supported lists.
| JSON representation |
|---|
{
"kind": string,
"etag": string,
"id": string,
"snippet": {
"publishedAt": string,
"channelId": string,
"title": string,
"description": string,
"thumbnails": {
object ( |
| Fields | |
|---|---|
kind |
Output only. Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
id |
The ID that YouTube uses to uniquely identify the playlist. |
snippet |
The |
snippet.publishedAt |
Output only. The date and time that the playlist was created. The value is specified in ISO 8601 format. |
snippet.channelId |
Output only. The ID that YouTube uses to uniquely identify the channel that published the playlist. |
snippet.title |
The playlist's title. The title must be 1 to 150 characters long and can't contain HTML tags. |
snippet.description |
The playlist's description. The description can be up to 5,000 characters long and can't contain HTML tags. |
snippet.thumbnails |
Output only. A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail. |
snippet.channelTitle |
Output only. The channel title of the channel that the playlist belongs to. |
snippet.tags[] |
Deprecated: Keyword tags associated with the playlist. YouTube no longer supports playlist keyword tags. |
snippet.defaultLanguage |
The language of the text in the |
snippet.localized |
Output only. Contains either a localized title and description for the playlist or the title and description in the playlist's default language. Localized text is returned when a Use the |
snippet.localized.title |
The localized playlist title. |
snippet.localized.description |
The localized playlist description. |
status |
The |
status.privacyStatus |
The playlist's privacy status. Defaults to Valid values of this enum field are:
|
status.podcastStatus |
The playlist's podcast status. When set to This property is writable only in Valid values of this enum field are:
|
contentDetails |
Output only. The |
contentDetails.itemCount |
Output only. The number of videos in the playlist. |
player |
Output only. The |
player.embedHtml |
Output only. An |
localizations[] |
The An object containing a list of |
localizations[].title |
The localized playlist title. |
localizations[].description |
The localized playlist description. |
Methods |
|
|---|---|
|
Deletes a playlist. |
|
Creates a playlist. |
|
Returns a collection of playlists that match the API request parameters. |
|
Modifies a playlist. |