Learn R Programming

tuber (version 0.2.1)

yt_get_related_videos: Get Related Videos

Description

Takes a video id and returns related videos

Usage

yt_get_related_videos(video_id = NULL, maxResults = 5, safeSearch = "none", ...)

Arguments

video_id
Character. Required. No default.
maxResults
Numeric. 0 to 50. Acceptable values are 0 to 50, inclusive.
safeSearch
Character. Optional. Takes one of three values: 'moderate', 'none' (default) or 'strict'
...
Additional arguments passed to tuber_GET.

Value

data.frame with 7 columns: publishedAt, channelId, title, description, thumbnails, channelTitle, liveBroadcastContent

References

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

Examples

Run this code
## Not run: 
# yt_get_related_videos(video_id="yJXTXN4xrI8")
# ## End(Not run)

Run the code above in your browser using DataLab