How to Create YouTube API Credentials

First, go to https://console.developers.google.com/project and log in using your Google credentials.

Sign In

Click the 'Create Project' button from the dashboard page.

Create New Project

A form new project screen is displayed. Enter a name for your project in the Project name field and find your Location to save your project. Click on 'Create'. Your project is being created and will take a few moments.

New Project

Your project library page is displayed. Click the 'Enable APIs and Services' button.

Enable API and Services

API library page is displayed.

API Library

On the below youtube section, select and click 'Youtube Data API v3'.

YouTube Data API

The YouTube Data API v3 overview screen is displayed. Click on 'ENABLE'. The API is enabled but cannot be used until you create credentials.

Enable Youtube Data API v3

Click on the 'Create Credentials' button.

Create Credentials

Then, you will be directed to API & Services dashboard. Select the OAuth Consent Screen menu on the left side of the page. Select External and click the 'Create' button.

User Type

In the first step, you will be requested to complete your App Information, Enter your app name and user support email. Then, fill in the developer contact information. Click the ‘save and continue’ button after it's done.

OAuth Consent Screen

In the scope step, click the 'Add or Remove Scope' button. Select all of the YouTube Data APIs by clicking on each one and click 'update'. Click 'save and continue' after it's done.

Scope

Then, you will be asked to add a user. This user will be used while publishing status is set to 'Testing', only test users are able to access the app and click 'add'. Click the 'save and continue' button after it's done.

Add User

You will arrive at the summary page. Click 'Back to Dashboard'.

Summary

After set up your OAuth consent screen, select the Dashboard menu. Click on the ‘Enable APIs and Services’ button.

Enable API and Services

API library page is displayed.

API Library

On the below youtube section, select and click 'Youtube Data API v3'.

YouTube Data API

The YouTube Data API v3 overview screen is displayed. Click on 'MANAGE'.

Manage YouTube Data API v3

Click on the 'Create Credentials' button.

Create Credentials

Then, the credential screen is displayed. On this page, you must complete the required data such as the data below:

  1. Click on the 'Where will you be calling the API from?' field and select 'Web browser (Javascript)' from the drop-down menu. This will allow this API to work with the Video Export entity in the portal.

  2. Select 'User data' in the 'What data will you be accessing?' field.

  3. Click on the 'What credentials do I need?' button.

Add Credentials

After done, you will be asked to enter a name for your web client in the 'Name' field, Copy and paste the following URL to the 'Authorized redirect URLs' field, and click the 'Create OAuth Client ID' button.

OAuth 2.0 Client ID

Copy and paste the following URL to the ‘Authorized redirect URLs' field https://developers.google.com/oauthplayground.

Then, your credentials are created. Click 'Download' to download the credentials or you can click 'Done' to finish or 'Cancel' to cancel the process.

Download Credentials

You will return to the credentials page.

Credentials

If you want to view your client ID and client secret, go to your OAuth 2.0 Client IDs and click on the name of your OAuth 2.0 Client ID. Then, you will find it on the top-right of the page.

Client ID and Client Secret

Last updated

Was this helpful?