How to Create Your YouTube API Credentials

Creating your YouTube API Credentials is accomplished by performing to main stages:

  • Stage I - Creating a Google OAuth 2.0 Web application client.
  • Stage II - Creating a YouTube refresh token.

 

Stage I - How to Create a Google OAuth 2.0 Web Application Client

To create your YouTube API credentials, perform the following steps:

  1. Go to https://console.developers.google.com/project and login using your Google Credentials.



  2. Click on 'Project' and select 'Create a project' from the drop down menu. A new project screen is displayed.



  3. Enter a name for your project in the 'Project name' field.
  4. Click on 'Create'. Your project is being created and will take a few moments.



  5. Click on the 'Project' menu and select the project you recently created from the drop down list. Your project library page is displayed.

  6. Click on 'YouTube Data API'. The YouTube data api overview screen is displayed.



  7. Click on 'ENABLE'. The API is enabled but cannot be used until you create credentials.



  8. Click on 'Go to Credentials'. The credentials screen is displayed.



  9. 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.



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

  11. Click on 'What credentials do I need?'. The add credentials to your project screen is displayed.



  12. Enter a name for your web client in the 'Name' field.
  13. Copy and paste the following URL to the 'Authorized redirect URLs' field:
    https://developers.google.com/oauthplayground
  14. Click on 'Create Client ID'. Your OAuth web client is created and the consent screen is displayed.


  15. Enter a product name in the 'Product name shown to users' field.
  16. Click on 'Continue'. A download credentials screen is displayed.


     
  17. Click on 'I'll do this later'. You are redirected to the credentials screen.



  18. Go to your OAuth 2.0 credentials and click on the pencil icon to edit.



  19. Copy and paste your 'Client ID' and 'Secret' to your preferred text editor.

    Important! You will need both of these credentials to set up your Company Settings screen within the portal.

  20. Click 'Save' in the OAuth Client screen and proceed to the next stage.

 



Stage II - Creating a YouTube Refresh Token

To create a YouTube Refresh Token, perform the following steps:

  1. Go to https://developers.google.com/oauthplayground/ and login using your Google Credentials.



  2. Click on  (the 'Configuration' menu). A configuration drop down is displayed.
  3. Select the 'Use your own OAuth credentials' check box. The OAuth credential fields are displayed. 
  4. Enter the OAuth Client ID you created in Stage I into the 'OAuth Client ID' field.
  5. Enter the OAuth Client secret you created in Stage I into the 'OAuth Client secret' field.
  6. Click on 'Close' to save your settings.



  7. 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.
  8. Select all of the YouTube Data APIs by clicking on each one. A check marker should correspond to each API method.
  9. Click on 'Authorize APIs'. A request/response is displayed in the right pane of the screen.



  10. If you haven't signed in yet, select your Google account.



  11. Click on 'Allow' to give your web application client access to the selected APIs.



  12. Click on 'Exchange authorization code for tokens'. The request/response pane is updated and displays authentication JSON object access token.



  13. 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.
Have more questions? Submit a request