For getting captions from the v3 API, you must specify the id resource.
Check list_caption_tracks
for more information.
get_captions(id = NULL, lang = "en", format = "sbv", as_raw = TRUE, ...)
id | String. Required. id of the caption track that is being retrieved |
---|---|
lang | Optional. Default is |
format | Optional. Default is |
as_raw | If |
... | Additional arguments passed to |
String.
https://developers.google.com/youtube/v3/docs/captions/download
if (FALSE) { # Set API token via yt_oauth() first get_captions(id = "y3ElXcEME3lSISz6izkWVT5GvxjPu8pA") }