View source: R/ryt_get_comments.R
ryt_get_comments | R Documentation |
Returns a list of comment threads of video or channel
ryt_get_comments(
video_id = NULL,
channel_id = NULL,
text_format = c("plainText", "html")
)
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 |
tibble with comments
## Not run:
# all comments
comments <- ryt_get_comments()
# videos comments
video_comments <- ryt_get_comments(video_id = 'fW7gGS^G78')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.