Detailed instructions on obtaining a YouTube API key

Create a new project in Google Console

  1. Open the Enabled APIs and services page in the Google Console Dashboard.

    If this is the first time you're using Google Console, you might see a message similar to this one:

    Google Console getting started popup

    Agree to the terms of service.

  2. On the top of the page, click the projects dropdown:

    Google Console project selector dropdown

  3. Then, on the popup that opens, click New project:

    Google Console new project button

  4. Give the project a descriptive title, such as Uno Tube Player, and click Create.
    The project will now be created and selected in the top dropdown.

    Google Console new project selected

    If you can't see the project, try refreshing the page.

Enable YouTube APIs for this project

  1. If you are not already, navigate back to the Enabled APIs and services page, and click Enable APIs and services

    Google Console Enabled APIs and services menu item

  2. From the APIs page, click YouTube Data API v3 (you can search for it):

    Google Console YouTube Data API v3 menu item

  3. Click Enable

    Google Console Enable API button

Obtain an API key

  1. Once YouTube Data API v3 has been enabled, its page will open.

    Google Console create credentials button

  2. Click Create credentials and select Public data, then click Next.

    Google Console API key configuration page

  3. The API key will be revealed to you, click the copy button and copy the API key somewhere safe and private, it will be used in Module 8 - API endpoints when searching YouTube's data.

    Google Console copy API key

    Alternatively, keep this tab open to copy the API key later.

  4. You can always access the API key via the credentials menu on the left side.

    Google Console copy API key