Learn R Programming

tuber (version 0.8.0)

get_playlist_items: Get Playlist Items

Description

Get Playlist Items

Usage

get_playlist_items(filter = NULL, part = "contentDetails",
  max_results = 50, video_id = NULL, page_token = NULL, ...)

Arguments

filter
string; Required. named vector of length 1 potential names of the entry in the vector: item_id: comma-separated list of one or more unique playlist item IDs. playlist_id: YouTube playlist ID.
part
Required. Comma separated string including one or more of the following: contentDetails, id, snippet, status. Default: contentDetails.
max_results
Maximum number of items that should be returned. Integer. Optional. Can be between 0 and 50. Default is 50.
video_id
Optional. request should return only the playlist items that contain the specified video.
page_token
specific page in the result set that should be returned, optional
Additional arguments passed to tuber_GET.

Value

captions for the video from one of the first track

References

https://developers.google.com/youtube/v3/docs/playlists/list

Examples

Run this code
## Not run: ------------------------------------
# 
# # Set API token via yt_oauth() first
# 
# get_playlist_items(filter= c(playlist_id="PLrEnWoR732-CN09YykVof2lxdI3MLOZda"))
## ---------------------------------------------

Run the code above in your browser using DataLab