Learn R Programming

tuber (version 2.0.0)

get_video_broadcast_timing: Get video live-broadcast timing

Description

Retrieves scheduling and actual start/end information exposed in a video's `liveStreamingDetails`. The YouTube Data API does not expose a reliable flag that distinguishes premieres from other scheduled broadcasts.

Usage

get_video_broadcast_timing(video_ids, simplify = TRUE, auth = "key", ...)

Value

A data frame when `simplify = TRUE`; otherwise the raw videos-list response.

Arguments

video_ids

Video ID or vector of video IDs.

simplify

Whether to return simplified data frame

auth

Authentication method: "token" (OAuth2) or "key" (API key)

...

Additional arguments passed to tuber_GET

Examples

Run this code
if (FALSE) {
timing <- get_video_broadcast_timing("dQw4w9WgXcQ")

timings <- get_video_broadcast_timing(c("video1", "video2", "video3"))
}

Run the code above in your browser using DataLab