Learn R Programming

rytstat (version 0.3.2)

ryt_get_comments: Returns a list of comment threads of video or channel

Description

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")
)

Value

tibble with comments

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

See Also

Examples

Run this code
if (FALSE) {
# all comments
comments <- ryt_get_comments()

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

Run the code above in your browser using DataLab