Reputation: 65
What Java API code to use to retrieve more than 50 comments for selected video? Or this is impossible? Thanks!
Upvotes: 1
Views: 1207
Reputation: 272236
According to the documentation, the maximum value for the max-results parameter is 50. However, it is possible to create a loop that reads 50 items per iteration using the start-index parameter:
Notes:
openSearch$totalResults
which gives you (approximate) number of total results. Or you can exit the loop when you get less than 50 results.alt=rss
or alt=atom
if you want data in XML formatprettyprint=true
parameter is added for readability onlyUpvotes: 1