Skip to contents

Returns a list of comment threads of video or channel

Usage

ryt_get_comments(
  video_id = NULL,
  channel_id = NULL,
  text_format = c("plainText", "html")
)

Arguments

video_id

YouTUbe Video ID

channel_id

YouTube Channel ID

text_format

Set this parameter's value to html or plainText to instruct the API to return the comments left by users in html formatted or in plain text. The default value is plainText

Value

tibble with comments

Examples

if (FALSE) {
# all comments
comments <- ryt_get_comments()

# videos comments
video_comments <- ryt_get_comments(video_id = 'fW7gGS^G78')
}