Description Usage Arguments Value
Basic function, adapted from tuber package, get_related_videos(). Used by other related videos functions in the ytcol package. Getting related videos is considered a search to the YouTube API.
1 2 | yt.GetRelated(video_id = NULL, max_results = 50, page_token = NULL,
region_code = NULL, safe_search = "none", ...)
|
video_id |
Character; Required. Video ID from YouTube. |
max_results |
Integer. Maximum number of items that should be returned. Integer. Optional. Can be between 1 and 50. Default is 50. |
page_token |
Character. Specific page in the result set that should be returned. Optional. |
region_code |
Character. Return search results for a specified country. ISO 3166-1 alpha-2 country code. Optional. |
safe_search |
Character. Optional. Takes one of three values: |
... |
Additional arguments passed to |
Nested named list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.