Method: playlistImages.list

Returns a collection of playlist images that match the API request parameters. Only standard playlists (PL prefix) are supported; other playlist types fail with 400 playlistTypeUnsupported.

Unauthenticated requests (using an API key) can list images for public playlists. Retrieving images for private playlists requires OAuth 2.0 authorization; unauthorized requests for private playlists return 404 notFound. For method-specific error responses, see playlistImages.list errors.

HTTP request

GET https://youtube.googleapis.com/youtube/v3/playlistImages

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
parent

string

Required. Specifies the unique ID of the playlist whose images to retrieve. Only standard playlists (PL prefix) are supported.

maxResults

integer (uint32 format)

Specifies the maximum number of items returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.

pageToken

string

The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

part[]

string

Required. Specifies a comma-separated list of one or more playlistImage resource properties that the API response includes. The only supported value is snippet, which returns snippet and its child properties.

onBehalfOfContentOwner

string

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.

onBehalfOfContentOwnerChannel

string

Intended exclusively for YouTube content partners and valid only in an authorized request. Specifies the YouTube channel ID of a channel managed by the content owner in onBehalfOfContentOwner. This parameter is optional when onBehalfOfContentOwner is set, and can only be used together with onBehalfOfContentOwner. The authenticating CMS account and the specified channel must both be linked to that content owner.

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,
  "nextPageToken": string,
  "prevPageToken": string,
  "pageInfo": {
    "totalResults": integer,
    "resultsPerPage": integer
  },
  "items": [
    {
      object (PlaylistImage)
    }
  ]
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string "youtube#playlistImageListResponse".

nextPageToken

string

The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.

prevPageToken

string

The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.

pageInfo

object

General pagination information.

pageInfo.totalResults

integer

The total number of results in the result set.

pageInfo.resultsPerPage

integer

The number of results included in the API response.

items[]

object (PlaylistImage)

A list of playlist images that match the request criteria.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/youtube
  • https://www.googleapis.com/auth/youtubepartner
  • https://www.googleapis.com/auth/youtube.readonly
  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.