Where to find the youtube API Key?

旧城冷巷雨未停 提交于 2019-12-24 04:56:28

问题


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.

  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.




回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!