How to Create YouTube API Credentials
Last updated
Last updated
First, go to https://console.developers.google.com/project and log in using your Google credentials.
Click the 'Create Project' button from the dashboard page.
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.
Your project library page is displayed. Click the 'Enable APIs and Services' button.
API library page is displayed.
On the below youtube section, select and click 'Youtube Data API v3'.
The YouTube Data API v3 overview screen is displayed. Click on 'ENABLE'. The API is enabled but cannot be used until you create credentials.
Click on the 'Create Credentials' button.
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.
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.
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.
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.
You will arrive at the summary page. Click 'Back to Dashboard'.
After set up your OAuth consent screen, select the Dashboard menu. Click on the ‘Enable APIs and Services’ button.
API library page is displayed.
On the below youtube section, select and click 'Youtube Data API v3'.
The YouTube Data API v3 overview screen is displayed. Click on 'MANAGE'.
Click on the 'Create Credentials' button.
Then, the credential screen is displayed. On this page, you must complete the required data such as the data below:
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.
Select 'User data' in the 'What data will you be accessing?' field.
Click on the 'What credentials do I need?' button.
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.
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.
You will return to the credentials page.
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.