Resource: PlaylistItem
A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.
YouTube also uses a playlist to identify a channel's list of uploaded videos, with each playlistItem in that list representing one uploaded video. You can retrieve the playlist ID for that list from the channel resource for a given channel, and then call the playlistItems.list method to retrieve the list.
| 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 item. |
snippet |
The |
snippet.publishedAt |
Output only. The date and time that the item was added to the playlist. If that timestamp isn't available, the value falls back to the video's publish time or creation time. The value is specified in ISO 8601 format. |
snippet.channelId |
Output only. The ID that YouTube uses to uniquely identify the channel that owns the playlist item. |
snippet.title |
Output only. The item's title. For private videos that aren't accessible to the caller, this value is |
snippet.description |
Output only. The item's description. For private videos that aren't accessible to the caller, this value is |
snippet.thumbnails |
Output only. A map of thumbnail images associated with the playlist item. 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 item belongs to. |
snippet.playlistId |
The ID that YouTube uses to uniquely identify the playlist that the playlist item is in. |
snippet.position |
The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of |
snippet.resourceId |
The |
snippet.resourceId.kind |
The type of the API resource. |
snippet.resourceId.videoId |
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the |
snippet.resourceId.channelId |
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the |
snippet.resourceId.playlistId |
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the |
snippet.videoOwnerChannelTitle |
Output only. The channel title of the channel that uploaded this video. Omitted for private or deleted videos that aren't accessible to the caller. |
snippet.videoOwnerChannelId |
Output only. The channel ID of the channel that uploaded this video. Omitted for private or deleted videos that aren't accessible to the caller. |
contentDetails |
The |
contentDetails.startAt |
Deprecated: This property is ignored if set. |
contentDetails.endAt |
Deprecated: This property is ignored if set. |
contentDetails.videoId |
Output only. The ID that YouTube uses to uniquely identify a video. To retrieve the |
contentDetails.note |
A user-generated note for this item. The property value has a maximum length of 280 characters. Set this property using |
contentDetails.videoPublishedAt |
Output only. The date and time that the video was published to YouTube. For unpublished private or unlisted videos, the value falls back to the video's creation time. Omitted for private or deleted videos that aren't accessible to the caller. The value is specified in ISO 8601 format. |
status |
The |
status.privacyStatus |
Output only. The playlist item's privacy status. The channel that uploaded the video that the playlist item represents can set this value using either the Valid values of this enum field are:
|
Methods |
|
|---|---|
|
Deletes a playlist item. |
|
Adds a resource to a playlist. |
|
Returns a collection of playlist items that match the API request parameters. |
|
Modifies a playlist item. |