Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube Data API how to extract more than 100 comments?

$
0
0

I am using YouTube Data API v3 to extract comments but the maximum I can get is 100 comments.

This is the code

url = "https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&maxResults=1000&order=relevance&videoId=cosc1UEbMbY&key=MYKEY"data = requests.get(url).json()comments = []co = 0;for i in range(len(data['items'])):  comments.append(data['items'][i]['snippet']['topLevelComment']['snippet']['textOriginal'])

Even if I set maxResults parameter to 1000, it only returns 100 comments.How can I fix this problem?

Thank you


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>