Learn R Programming

tuber (version 0.9.9)

get_video_details: Get Details of a Video or Videos

Description

Get details such as when the video was published, the title, description, thumbnails, category etc.

Usage

get_video_details(video_id = NULL, part = "snippet", ...)

Arguments

video_id

Comma separated list of IDs of the videos for which details are requested. Required.

part

Comma-separated list of video resource properties requested. Options include: contentDetails, fileDetails, id, liveStreamingDetails, localizations, player, processingDetails, recordingDetails, snippet, statistics, status, suggestions, topicDetails

Additional arguments passed to tuber_GET.

Value

list. If part is snippet, the list will have the following elements: id (video id that was passed), publishedAt, channelId, title, description, thumbnails, channelTitle, categoryId, liveBroadcastContent, localized, defaultAudioLanguage

References

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

Examples

Run this code
# NOT RUN {
# Set API token via yt_oauth() first

get_video_details(video_id = "yJXTXN4xrI8")
get_video_details(video_id = "yJXTXN4xrI8", part = "contentDetails")
# }

Run the code above in your browser using DataLab