List Captions of a Video
list_caption_tracks( part = "snippet", video_id = NULL, lang = "en", id = NULL, simplify = TRUE, ... )
part | Caption resource requested. Required. Comma separated
list of one or more of the
following: |
---|---|
video_id | ID of the video whose captions are requested. Required. No default. |
lang | Language of the caption; required; default is English ("en") |
id | comma-separated list of IDs that identify the caption resources that should be retrieved; optional; string |
simplify | Boolean. Default is TRUE. When TRUE, and part is
|
... | Additional arguments passed to |
list of caption tracks. When simplify
is TRUE
, a
data.frame
is returned with
following columns: videoId, lastUpdated, trackKind, language, name,
audioTrackType, isCC,
isLarge, isEasyReader, isDraft, isAutoSynced, status, id
(caption id)
https://developers.google.com/youtube/v3/docs/captions/list
if (FALSE) { # Set API token via yt_oauth() first list_caption_tracks(video_id = "yJXTXN4xrI8") }