July 2017
Beginner to intermediate
312 pages
7h 27m
English
We have selected two endpoints that cover all the data needed for our analysis. We will use version 3 of the YouTube API, which introduced major changes compared to the previous versions regarding all aspects: endpoints, limitations, parameters, and so on.
The search method allows us to list all the videos related to the search query:
url = 'https://www.googleapis.com/youtube/v3/search'
The commentThread method gives us access to comments under each video:
url = 'https://www.googleapis.com/youtube/v3/commentThreads'
It's worth noticing that in the past you were only allowed to extract up to 1,000 comments per video, but the recent changes in the API allow you to extract as many as you need. The only requirement ...
Read now
Unlock full access