set_video_thumbnail: Set Video Thumbnail

View source: R/set_video_thumbnail.R

set_video_thumbnailR Documentation

Set Video Thumbnail

Description

Uploads a custom video thumbnail to YouTube and sets it for a video. Requires OAuth 2.0 authentication.

Usage

set_video_thumbnail(video_id, file, ...)

Arguments

video_id

Character. ID of the video to set the thumbnail for.

file

Character. Path to the thumbnail image file (JPG or PNG, max 2MB).

...

Additional arguments passed to POST.

Value

A list containing the response from the API.

References

https://developers.google.com/youtube/v3/docs/thumbnails/set

Examples

## Not run: 
# Set API token via yt_oauth() first

set_video_thumbnail(video_id = "yJXTXN4xrI8", file = "thumbnail.jpg")

## End(Not run)

tuber documentation built on March 25, 2026, 9:08 a.m.