How to create and configure a project?
- Login to Google Developer Console using your Gmail.
- Click on create a new project to create one for accessing YouTube Data API.
- Search for Youtube Data API v3 on the “APIs & Services” section, and enable it on the new project created.
- Then, on the “APIs & Services” section, go to Credentials and create a new API key.
- API key acts as authorization credentials for all the requests that we execute.
Execute a sample request
After the project is created and configured the API, execute the below sample request to make sure we are able to access YouTube data using the API.
- HTTP Request: GET https://www.googleapis.com/youtube/v3/search
- Parameter key = API Key generated above
- The response should contain some resources with the channel or video IDs
API Documentation for project configuration: https://developers.google.com/youtube/v3/getting-started
Overall
We should be able to successfully execute a simple search request after the configuration.