问题
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:
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"]
}
}
回答1:
Just to walk through this again to make sure you have done it properly.
- Make sure you have a Google account.
- Log into the developer console at: https://console.developers.google.com/
- Create a project
- THEN, select YouTube data API
- Click create credentials on the right hand side of the screen.
- Choose where you will call the API from
- Pick public or User.
- Obtain your API Key.
Optional: restrict your key.
I just walked though all of this and have been given a key myself.
回答2:
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!
来源:https://stackoverflow.com/questions/44399219/where-to-find-the-youtube-api-key