Reputation: 67
I'm having trouble finding a way to access comments from a youtube video. The closest thing I came across told me that that feature was a google+ only api call. using https://developers.google.com/youtube/v3/docs/comments/list#try-it i get
Upvotes: 1
Views: 315
Reputation: 4960
You can use CommentThreads:list
which returns a list of all comments threads that match the API request parameters.
HTTP request
GET https://www.googleapis.com/youtube/v3/commentThreads
If the response is successfull, method returns a response body with the following structure:
{
"kind": "youtube#commentThreadListResponse",
"etag": etag,
"nextPageToken": string,
"pageInfo": {
"totalResults": integer,
"resultsPerPage": integer
},
"items": [
commentThread Resource
]
}
Here's a YouTube API sample code with different supported programming languages: https://developers.google.com/youtube/v3/docs/commentThreads/list#examples
Found this Stack Overflow related ticket, discuss how to get comments through YouTube API: How to get comments through Youtube Data API v3 / JSOUP parsing?
Upvotes: 1