powered by
Retrieves playlists by channel, playlist ID, or authenticated ownership.
list_playlists( channel_id = NULL, playlist_ids = NULL, mine = FALSE, part = c("snippet", "contentDetails", "status"), max_results = 50, language = NULL, page_token = NULL, simplify = TRUE, auth = if (mine) "token" else "key", ... )
A data frame when `simplify = TRUE`; otherwise a playlists-list response.
Optional channel ID.
Optional character vector of playlist IDs.
If `TRUE`, retrieve playlists owned by the authenticated user.
Character vector of playlist resource parts.
Maximum total number of playlists to return.
Optional language code for localized text.
Optional page token at which to start.
If `TRUE`, return a data frame; otherwise return the raw API response with all collected items.
Authentication method, `"key"` or `"token"`. `mine = TRUE` requires OAuth.
Additional arguments passed to [tuber_GET()].
https://developers.google.com/youtube/v3/docs/playlists/list
if (FALSE) { list_playlists(channel_id = "UCMtFAi84ehTSYSE9XoHefig") list_playlists(playlist_ids = c("PLAYLIST_1", "PLAYLIST_2")) list_playlists(mine = TRUE) }
Run the code above in your browser using DataLab