get_playlists {tuber} | R Documentation |
Get Playlists
Description
Get Playlists
Usage
get_playlists(
filter = NULL,
part = "snippet",
max_results = 50,
hl = NULL,
page_token = NULL,
simplify = TRUE,
...
)
Arguments
filter |
string; Required.
named vector of length 1
potential names of the entry in the vector:
|
part |
Required. One of the following: |
max_results |
Maximum number of items that should be returned. Integer. Optional. Can be between 0 and 50. Default is 50. |
hl |
Language used for text values. Optional. Default is |
page_token |
specific page in the result set that should be returned, optional |
simplify |
Data Type: Boolean. Default is |
... |
Additional arguments passed to |
Value
playlists
When simplify
is TRUE
, a data.frame
with 4 columns is returned:
kind, etag, id, contentDetails.itemCount
References
https://developers.google.com/youtube/v3/docs/playlists/list
Examples
## Not run:
# Set API token via yt_oauth() first
get_playlists(filter=c(channel_id="UCMtFAi84ehTSYSE9XoHefig"))
get_playlists(filter=c(channel_id="UCMtFAi84ehTSYSE9X")) # incorrect Channel ID
## End(Not run)