View source: R/extended_endpoints.R
| get_video_thumbnails | R Documentation |
Retrieves thumbnail URLs and metadata for videos.
get_video_thumbnails(video_id, size = NULL, simplify = TRUE, auth = "key", ...)
video_id |
Video ID or vector of video IDs |
size |
Thumbnail size: "default", "medium", "high", "standard", "maxres" |
simplify |
Whether to return a simplified data frame |
auth |
Authentication method: "token" (OAuth2) or "key" (API key) |
... |
Additional arguments passed to tuber_GET |
List or data frame with thumbnail information
## Not run:
# Get all thumbnail sizes for a video
thumbs <- get_video_thumbnails("dQw4w9WgXcQ")
# Get only high resolution thumbnails
thumbs_hd <- get_video_thumbnails("dQw4w9WgXcQ", size = "high")
# Get thumbnails for multiple videos
thumbs_batch <- get_video_thumbnails(c("dQw4w9WgXcQ", "M7FIvfx5J10"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.