powered by
List Captions of a Video
list_caption_tracks( part = "snippet", video_id = NULL, lang = "en", id = NULL, simplify = TRUE, ... )
Caption resource requested. Required. Comma separated list of one or more of the following: id, snippet. e.g., "id, snippet", "id" Default: snippet.
id, snippet
snippet
ID of the video whose captions are requested. Required. No default.
Language of the caption; required; default is English ("en")
comma-separated list of IDs that identify the caption resources that should be retrieved; optional; string
Boolean. Default is TRUE. When TRUE, and part is snippet, a data.frame is returned
Additional arguments passed to tuber_GET.
tuber_GET
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)
simplify
TRUE
data.frame
videoId, lastUpdated, trackKind, language, name, audioTrackType, isCC, isLarge, isEasyReader, isDraft, isAutoSynced, status, id
https://developers.google.com/youtube/v3/docs/captions/list
# NOT RUN { # Set API token via yt_oauth() first list_caption_tracks(video_id = "yJXTXN4xrI8") # }
Run the code above in your browser using DataLab