To get comments using this
Comment Threads: list
GET https://www.googleapis.com/youtube/v3/commentThreads?part=snippet
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}
But how get each comment replies, and check user like it or not, any knows?
You may use the
comments.list
method in retrieving comment replies. Here's an example:Regarding likes, you may want to check out the
snippet.viewerRating
.Then check the
snippet.likeCount
to get the total number of likes (positive ratings) the comment has received.Here's the sample JSON structure that shows the format of a
comments
resource.Hope this helps!