YouTube API . playlists

Instance Methods

list(id, part)

Browse the YouTube playlist collection.

Method Details

list(id, part)
Browse the YouTube playlist collection.

Args:
  id: string, YouTube IDs of the playlists to be returned. (required)
  part: string, Parts of the playlist resource to be returned. (required)

Returns:
  An object of the form:

    { # JSON template for a PlaylistService.List() response.
    "kind": "youtube#playlistListResponse", # The type of this API response.
    "etag": "A String", # The eTag of the response.
    "playlists": { # Map of playlists matching the request criteria, keyed by id.
      "a_key": { # JSON template for a YouTube Playlist.
        "snippet": { # JSON template for the snippet part of a playlist. # Basic details about the playlist: title, description, thumbnails.
          "title": "A String", # Title of the playlist.
          "channelId": "A String", # Author of the playlist.
          "description": "A String", # Description of the playlist.
          "publishedAt": "A String", # The date and time the playlist was created.
          "tags": [ # Textual tags associated with the playlist.
            "A String",
          ],
        },
        "kind": "youtube#playlist", # The type of this API resource.
        "etag": "A String", # The eTag of the playlist.
        "id": "A String", # The unique id of the playlist.
      },
    },
  }