YouTube API Difference Between API Key and Developer Key

I'm having some trouble understanding the differences between an API key and a developer key when it comes to using the YouTube API.

My application uses the remaining requests in the v3 API of Youtube, and I can set the API key through the gapi.client.setApiKey () function, which I made during development, but when I was considering quotas, https://groups.google.com/forum /? fromgroups = #! topic / youtube-api-gdata / e1JDQ4lqbXU , he claims that they are tied to the developer key and that the developer key must be sent with every request. I went ahead and got one for development purposes, but I'm not sure how they interact with each other.

I also did not find any details on how to send a developer key with each vacation request (for example, gapi.client.youtube.channels.list), only how to include it in the header or line of the request when creating a regular receive request.

Can someone help me figure out the differences between them, how they are related, do I need both and how to use them in quiet requests, or if I need to switch to regular receive requests?

+4
source share
1 answer

Sorry for the confusion.

"Developer Keys" refers to keys that have worked with the v1 or v2 YouTube Data API. You can get them here . There is a separate quota system for v1 / v2 and yes, the developer keys are played there.

"API Keys" refers to the keys that you use when making unauthorized requests using the v3 YouTube Data API. (If you are making an authenticated request, you do not include the API key, because the OAuth 2 client identifier / secret identifier identifies your application.) You get an API key that you can use with YouTube from the Google API console after you include the YouTUbe v3 data API as one of the services you use. The quota in v3 is tied to your API Console project, and your API key determines which project you are using.

The conclusion is that if you are making unauthorized calls to the YouTube 3 Data API, you should include only the API key from the Google API Console in your request. If you use the JavaClient library, this is done through gapi.client.setApiKey() .

+9
source

All Articles