Reputation: 45
var commentThreadsRequest = youTubeService.CommentThreads.List("replies,snippet");
commentThreadsRequest.VideoId = "bla-bla"; // here real id
commentThreadsRequest.MaxResults = 100; // 1 - 100;
var response = commentThreadsRequest.Execute();
In this way i get 100 comments. How get all comments?
It is possible to specify the resultsPerPage?
Upvotes: 1
Views: 1697
Reputation: 17613
100 is the maxResults when you use Comments.list. Now if your youtube comments exceeds 100 for example, you're going to need the "nextPageToken" to access the next 100 results and so on. As long as there's more results to be retrieved, there will always be a nextPageToken.
There's a video tutorial here that can demo some of that for you. This SO thread may also provide additonal insight.
Upvotes: 3
Reputation: 84
YouTube API only allows 0-100 results from a video.
See reference guide.
Upvotes: -1