list_caption_tracks: List Captions of a Video

Description Usage Arguments Value References Examples

Description

List Captions of a Video

Usage

1
2
3
4
5
6
7
8
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: id, snippet. e.g., "id, snippet", "id" Default: snippet.

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 snippet, a data.frame is returned

...

Additional arguments passed to tuber_GET.

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

1
2
3
4
5
6
7
## Not run: 

# Set API token via yt_oauth() first

list_caption_tracks(video_id = "yJXTXN4xrI8")

## End(Not run)

tuber documentation built on July 8, 2020, 5:49 p.m.