Мы обновляем API данных, чтобы он соответствовал тому, как YouTube подсчитывает просмотры коротких видео.
Узнать больше
PlaylistImages
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Ресурс playlistImage
идентифицирует миниатюру изображения, связанную с плейлистом.
Представление ресурсов
Следующая структура JSON показывает формат ресурса playlistImages
:
{
"kind": "youtube#playlistImage",
"id": string,
"snippet": {
"playlistId": string,
"type": string,
"width": string,
"height": string,
}
}
Характеристики
В следующей таблице определены свойства, которые отображаются в этом ресурсе:
Характеристики |
---|
kind | string Определяет тип ресурса API. Значение будет youtube#playlistImage . |
id | string Идентификатор, который YouTube использует для уникальной идентификации изображения в плейлисте. |
snippet | object Объект snippet содержит основные сведения об изображении плейлиста, такие как его тип и размеры. |
snippet. playlistId | string Идентификатор плейлиста, с которым связано это изображение. |
snippet. type | string Тип изображения. |
snippet. width | string Ширина изображения. |
snippet. height | string Высота изображений. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-08-21 UTC.
[null,null,["Последнее обновление: 2025-08-21 UTC."],[[["\u003cp\u003eA playlistImage resource in the YouTube API represents the thumbnail image associated with a specific playlist.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to list, insert, update, and delete playlist images, allowing for comprehensive management of playlist thumbnails.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eplaylistImages\u003c/code\u003e resource contains properties such as \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eid\u003c/code\u003e, and \u003ccode\u003esnippet\u003c/code\u003e, with the \u003ccode\u003esnippet\u003c/code\u003e object detailing the associated playlist's ID, image type, width, and height.\u003c/p\u003e\n"],["\u003cp\u003eThe API's \u003ccode\u003eplaylistImages\u003c/code\u003e resource structure is in JSON format, and the value of \u003ccode\u003ekind\u003c/code\u003e is always \u003ccode\u003eyoutube#playlistImage\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `playlistImage` resource represents a playlist's thumbnail. The API provides methods to interact with these images: `list` retrieves images, `insert` adds an image, `update` modifies an existing image, and `delete` removes an image. Each `playlistImage` resource contains an `id`, `kind` which will always be `youtube#playlistImage`, and a `snippet` with details like `playlistId`, `type`, `width`, and `height` of the image.\n"],null,["# PlaylistImages\n\nA **playlistImage** resource identifies\nthe thumbnail image associated with a playlist.\n\nMethods\n-------\n\nThe API supports the following methods for `playlistImages` resources:\n\n[list](/youtube/v3/docs/playlistImages/list)\n: Returns a collection of playlist images that match the API request parameters.\n [Try it now](/youtube/v3/docs/playlistImages/list#usage).\n\n[insert](/youtube/v3/docs/playlistImages/insert)\n: Adds a thumbail image to a playlist.\n [Try it now](/youtube/v3/docs/playlistImages/insert#usage).\n\n[update](/youtube/v3/docs/playlistImages/update)\n: Updates the thumbnail image for an existing playlist.\n [Try it now](/youtube/v3/docs/playlistImages/update#usage).\n\n[delete](/youtube/v3/docs/playlistImages/delete)\n: Deletes a playlist thumbnail image.\n [Try it now](/youtube/v3/docs/playlistImages/delete#usage).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `playlistImages` resource: \n\n```carbon\n{\n \"#kind\": \"youtube#playlistImage\",\n \"#id\": string,\n \"#snippet\": {\n \"#snippet.playlistId\": string,\n \"#snippet.type\": string,\n \"#snippet.width\": string,\n \"#snippet.height\": string,\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|----------------------|-----------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#playlistImage`. |\n| `id` | `string` The ID that YouTube uses to uniquely identify the playlist image. |\n| `snippet` | `object` The `snippet` object contains basic details about the playlist image, such as its type and dimensions. |\n| snippet.`playlistId` | `string` The playlist ID of the playlist this image is associated with. |\n| snippet.`type` | `string` The image type. |\n| snippet.`width` | `string` The image's width. |\n| snippet.`height` | `string` The images's height. |"]]