2017-01-14 4 views
0
var commentThreadsRequest = youTubeService.CommentThreads.List("replies,snippet"); 
commentThreadsRequest.VideoId = "bla-bla"; // here real id 
commentThreadsRequest.MaxResults = 100; // 1 - 100; 
var response = commentThreadsRequest.Execute(); 

이렇게하면 100 개의 댓글을 얻을 수 있습니다. 모든 댓글을받는 방법은 무엇입니까?YouTube API v3에서 의견을 얻는 방법

resultsPerPage를 지정할 수 있습니까?

답변

2

100에서 maxResults입니다 참조하십시오. 이제 유튜브 코멘트가 100을 초과하면 다음 100 개의 결과에 액세스하기 위해 "nextPageToken"이 필요합니다. 검색 할 결과가 더있는 한 항상 nextPageToken이 있습니다.

그 중 일부를 데모 할 수있는 video tutorial here이 있습니다. This SO thread은 또한 추가적인 통찰력을 제공 할 수 있습니다.