...

/

PlaylistItems

PlaylistItems

Learn about the playlistItem resource and how it is used to identify a resource included in a playlist.

The playlist resource contains information about the playlist itself, but not its contents. These are stored in the playlistItem resource, which includes details about the playlist item itself and additional information about how the video appears in the playlist, such as its position in the list.

Supported methods

The API supports the following methods for the playlistItem resource:

  • list: Returns a list of playlist items specified in the API call that matches the request parameters.
  • insert: Adds a resource to a playlist.
  • delete: Deletes a playlist item.

Let’s look at each method in detail, with the help of examples.

The list method

It returns a collection of playlist items. The playlist items are retrieved using the playlistId ...