list_caption_tracks {tuber} | R Documentation |
List Captions of a Video
Description
List Captions of a Video
Usage
list_caption_tracks(
part = "snippet",
video_id = NULL,
lang = "en",
id = NULL,
simplify = TRUE,
...
)
Arguments
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 |
Value
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)
References
https://developers.google.com/youtube/v3/docs/captions/list
Examples
## Not run:
# Set API token via yt_oauth() first
list_caption_tracks(video_id = "yJXTXN4xrI8")
## End(Not run)