yt.GetRelated: Get Function for Collecting Related Videos from a YouTube...

Description Usage Arguments Value

Description

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.

Usage

1
2
yt.GetRelated(video_id = NULL, max_results = 50, page_token = NULL,
  region_code = NULL, safe_search = "none", ...)

Arguments

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: 'moderate', 'none' (default) or 'strict' If none, search result not filtered. If moderate, search result filtered for content restricted within your locale. If strict, search result filtered to exclude all restricted content from the search result set.

...

Additional arguments passed to yt_GET.

Value

Nested named list.


Vintonm49/ytcol documentation built on May 27, 2019, 7:42 a.m.