Description Usage Arguments Value
View source: R/get_top_videos.R
Makes data frame of most currently popular YouTube videos
1 | get_top_videos(key, region = "US", category = 0, n = 10, simple = T)
|
key |
Your YouTube API key |
region |
Region. Default is "US". Run get_region_list() to see list of YouTube cntent regions. |
category |
Video category. Default is 0 (no category, top videos overall). Run get_category_list() to see list of YouTube content categories. |
n |
Number of top videos to return. Default is 10. Can be between 1 and 200. |
simple |
Returns a simplified data frame if TRUE (default). Returns all data from API if FALSE. |
A data frame of the most currently popular videos on YouTube
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.