list_videos: List (Most Popular) Videos

Description Usage Arguments Value References Examples

Description

List (Most Popular) Videos

Usage

1
2
3
4
5
6
7
8
9
list_videos(
  part = "contentDetails",
  max_results = 50,
  page_token = NULL,
  hl = NULL,
  region_code = NULL,
  video_category_id = NULL,
  ...
)

Arguments

part

Required. Comma separated string including one or more of the following: contentDetails, fileDetails, id, liveStreamingDetails, localizations, player, processingDetails, recordingDetails, snippet, statistics, status, suggestions, topicDetails. Default: contentDetails.

max_results

Maximum number of items that should be returned. Integer. Optional. Can be between 0 and 50. Default is 50.

page_token

specific page in the result set that should be returned, optional

hl

Language used for text values. Optional. Default is en-US. For other allowed language codes, see list_langs.

region_code

Character. Required. Has to be a ISO 3166-1 alpha-2 code (see https://www.iso.org/obp/ui/#search).

video_category_id

the video category for which the chart should be retrieved. See also list_videocats.

...

Additional arguments passed to tuber_GET.

Value

data.frame with 5 columns: channelId, title, assignable, etag, id

References

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

Examples

1
2
3
4
5
6
7
## Not run: 

# Set API token via yt_oauth() first

list_videos()

## End(Not run)

tuber documentation built on July 8, 2020, 5:49 p.m.