View source: R/get_all_comments.R
| get_all_comments | R Documentation |
Get all the comments for a video including replies
get_all_comments(video_id = NULL, max_results = NULL, ...)
video_id |
string; Required.
|
max_results |
Integer. Maximum number of comments to return. Default is NULL which returns all comments. Set this to avoid long-running requests on popular videos. |
... |
Additional arguments passed to |
a data.frame with the following columns:
authorDisplayName, authorProfileImageUrl, authorChannelUrl,
authorChannelId.value, videoId, textDisplay,
canRate, viewerRating, likeCount, publishedAt, updatedAt,
id, moderationStatus, parentId
https://developers.google.com/youtube/v3/docs/commentThreads/list
## Not run:
# Set API token via yt_oauth() first
get_all_comments(video_id = "a-UQz7fqR3w")
get_all_comments(video_id = "a-UQz7fqR3w", max_results = 100)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.