Black
Black

Reputation: 20232

Where to find the youtube API Key?

I followed all the steps. I selected my desired API (YouTube Data API) and created a project. I am searching now for about 20 minutes but I can't find the API Key? My user interface is in german, is it possible that it is named to something else than API Key? Maybe Clientschlüssel (Client Key) ?

This is all I found:

enter image description here

There is also a JSON object, but no API Key:

var myInfos = {
    "web":{
        "client_id":"censored",
        "project_id":"censored",
        "auth_uri":"https://accounts.google.com/o/oauth2/auth",
        "token_uri":"https://accounts.google.com/o/oauth2/token",
        "auth_provider_x509_cert_url":"censored",
        "client_secret":"censored",
        "redirect_uris":["https://localhost/ex/YouTube/index.html"],
        "javascript_origins":["http://localhost"]
    }
}

Upvotes: 5

Views: 9756

Answers (3)

user2585501
user2585501

Reputation: 606

  1. sign into https://developers.google.com
  2. https://console.developers.google.com/project - Create Project - enter Project Name - Create
  3. select newly created project
  4. Go to APIs Overview
  5. click + Enable APIS AND SERVICES
  6. type "YouTube" - select Youtube API v3 - click Enable
  7. click Credentials - "Create Credentials" - API key
  8. Copy and paste API key to text editor, e.g. notepad (save)

Upvotes: 3

Black
Black

Reputation: 20232

I finally found it! You have to go to Zugangsdaten (Credentials) and then click on Anmeldedaten erstellen (create credentials), now you can select API Key!

enter image description here

Upvotes: 1

Pseuplex
Pseuplex

Reputation: 415

Just to walk through this again to make sure you have done it properly.

  1. Make sure you have a Google account.
  2. Log into the developer console at: https://console.developers.google.com/
  3. Create a project
  4. THEN, select YouTube data API
  5. Click create credentials on the right hand side of the screen.
  6. Choose where you will call the API from
  7. Pick public or User.
  8. Obtain your API Key.

Optional: restrict your key.

I just walked though all of this and have been given a key myself.

Upvotes: 4

Related Questions