PlaylistImages

  • A playlistImage resource in the YouTube API represents the thumbnail image associated with a specific playlist.

  • The API provides methods to list, insert, update, and delete playlist images, allowing for comprehensive management of playlist thumbnails.

  • The playlistImages resource contains properties such as kind, id, and snippet, with the snippet object detailing the associated playlist's ID, image type, width, and height.

  • The API's playlistImages resource structure is in JSON format, and the value of kind is always youtube#playlistImage.

A playlistImage resource identifies the thumbnail image associated with a playlist.

Methods

The API supports the following methods for playlistImages resources:

list
Returns a collection of playlist images that match the API request parameters. Try it now.
insert
Adds a thumbail image to a playlist. Try it now.
update
Updates the thumbnail image for an existing playlist. Try it now.
delete
Deletes a playlist thumbnail image. Try it now.

Resource representation

The following JSON structure shows the format of a playlistImages resource:

{
  "kind": "youtube#playlistImage",
  "id": string,
  "snippet": {
    "playlistId": string,
    "type": string,
    "width": string,
    "height": string,
    }
}

Properties

The following table defines the properties that appear in this resource:

Properties
kind string
Identifies the API resource's type. The value will be youtube#playlistImage.
id string
The ID that YouTube uses to uniquely identify the playlist image.
snippet object
The snippet object contains basic details about the playlist image, such as its type and dimensions.
snippet.playlistId string
The playlist ID of the playlist this image is associated with.
snippet.type string
The image type.
snippet.width string
The image's width.
snippet.height string
The images's height.