Learn R Programming

tuber (version 1.0.1)

get_stats: Get statistics of a Video

Description

Get statistics of a Video

Usage

get_stats(video_id = NULL, ...)

Value

list with 6 elements: id, viewCount, likeCount, dislikeCount, favoriteCount, commentCount

Arguments

video_id

Character. Id of the video. Required.

...

Additional arguments passed to tuber_GET.

References

https://developers.google.com/youtube/v3/docs/videos/list#parameters

Examples

Run this code
if (FALSE) {

# Set API token via yt_oauth() first

get_stats(video_id="N708P-A45D0")
}

Run the code above in your browser using DataLab