YouTube API provides the ability to retrieve feeds related to videos, users, and playlists. It also allows you to manipulate these feeds, such as creating new playlists, adding videos as favorites, and sending messages. You can also upload videos using this API.
In this article, I’ll walk you through how to extract YouTube data using YouTube API. To get started in getting your data from the YouTube API, you need to follow the following steps.
- Installation
- Set up your project and credentials
- Authentication
Installation
You will need to install the following:
- Python 2.7 or Python 3.5+
- The pip package management tool
- The Google APIs Client Library for Python
Set up your project and credentials
In setting up our project, we’ll go to the Google API Console and perform the following operations;
- Create a new project
- In the library panel, search for the YouTube Data API v3 & YouTube Analytics API. We will enable each of the libraries.
- In the credentials panel, create two credentials: