Learn R Programming

tuber (version 0.9.9)

get_all_comments: Get all the comments for a video including replies

Description

Get all the comments for a video including replies

Usage

get_all_comments(video_id = NULL, ...)

Arguments

video_id

string; Required. video_id: video ID.

Additional arguments passed to tuber_GET.

Value

a data.frame with the following columns: authorDisplayName, authorProfileImageUrl, authorChannelUrl, authorChannelId.value, videoId, textDisplay, canRate, viewerRating, likeCount, publishedAt, updatedAt, id, moderationStatus, parentId

References

https://developers.google.com/youtube/v3/docs/commentThreads/list

Examples

Run this code
# NOT RUN {
# Set API token via yt_oauth() first

get_all_comments(video_id = "a-UQz7fqR3w")
# }

Run the code above in your browser using DataLab