В таблице ниже показаны распространенные случаи использования этого метода. Вы можете щелкнуть имя варианта использования, чтобы загрузить образцы значений параметров в проводник API. Или вы можете просмотреть примеры кода для варианта использования в полноэкранном проводнике API, щелкнув значок кода под именем варианта использования. В полноэкранном пользовательском интерфейсе вы можете обновлять значения параметров и свойств, а примеры кода будут динамически обновляться в соответствии с введенными вами значениями.

Use cases
list (all playlists for a channel)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (all playlists for a channel)' example for the playlists.list method.
This example retrieves playlists owned by the YouTube channel that the request's channelId parameter identifies.
list (my playlists)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (my playlists)' example for the playlists.list method.
This example retrieves playlists created in the authorized user's YouTube channel. It uses the mine request parameter to indicate that the API should only return playlists owned by the user authorizing the request.

Content owners can also use the onBehalfOfContentOwner and onBehalfOfContentOwnerChannel parameters to retrieve playlists for a particular owned channel.