How to Create YouTube API Credentials
Last updated
Last updated
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.
After you click 'done', you will redirect to the Credentials menu, click on the 'Create Credentials' button. Select the 'API Key' button.
A pop-up to restrict the API key will appear. Click the 'Restrict Key' button.
Then, you will redirect to the key restriction page. Select ‘Application type’, enter ‘Name’, and enter your ‘Restriction’, click the ‘Save’ button.
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.
Go to https://developers.google.com/oauthplayground/ and log in using your Google Credentials.
Click on (the ‘Configuration’ menu). A configuration drop-down is displayed. Select the ‘Use your own OAuth credentials’ check box.
The OAuth credential fields are displayed. Enter the OAuth ‘Client ID’ and ‘Client Secret’ you created in Stage I into the ‘OAuth Client ID’ and 'OAuth Client Secret' fields.
Click on ‘Close‘ to save your settings.
In the ‘Select & authorize APIs’ pane, scroll down and click on ‘YouTube Data API v3’. A drop-down menu will appear displaying all the YouTube Data APIs.
Select all of the YouTube Data APIs by clicking on each one. A check marker should correspond to each API method. Click on ‘Authorize APIs’.
If you haven’t signed in yet, select your Google account.
Click on ‘Allow’ to give your web application client access to the selected APIs.
A request/response is displayed in the right pane of the screen.
Click on ‘Exchange authorization code for tokens‘. The request/response pane is updated and displays an authentication JSON object access token.
Copy your Refresh token displayed between the double quotation marks. This is the API token you are required to enter in your Company Settings screen within the Vidible platform. In addition, you will need the Client ID and Client Secret obtained previously.