99

I am working on Google API like chat, contacts and so on... I am stuck on developer_key as mentioned in gdata doc.

You can get this at https://code.google.com/apis/console:

'developer_key' => ''

I have already:

// OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
'oauth2_client_id' => '',
'oauth2_client_secret' => '',
'oauth2_redirect_uri' => ''

Where can I find developer key?

I found some thing like this

http://code.google.com/apis/youtube/dashboard/gwt/index.html

But I understand this to be only for youtube.

John Slegers
  • 45,213
  • 22
  • 199
  • 169
Neelesh
  • 1,458
  • 2
  • 13
  • 20

16 Answers16

36

It's the API key as listed under 'API Access', the 'Simple API Access' box.

Amber
  • 507,862
  • 82
  • 626
  • 550
  • 3
    is there man, under Simple API Access, see API key = developer key – Patrioticcow Jan 17 '12 at 23:30
  • 1
    Oh man I was asking for developer key :( not api key,secret key,client_id... I already found these keys ,But I was not able to find developer key. Once I found developer key that is in youtube developer console only!! – Neelesh Jan 20 '12 at 09:33
  • 6
    This is old, but for other people looking for the answer. You need to enable the G+ service for the API key to show up. – Chris Oct 27 '12 at 20:27
  • 1
    Is API key = developer key ? – Sadikhasan Mar 08 '14 at 08:48
  • oh no its confusing so where is developer key, and i dont see Simple API either – uray Apr 13 '14 at 13:44
29

First activate Google+ API, then you will get "Simple API access" box, from there you can get developer key as API key https://code.google.com/apis/console/?api=plus or read this: http://code.google.com/p/google-api-php-client/wiki/OAuth2

19

Update Nov 2015:

Sometime in late 2015, the Google Developers Console interface was overhauled again. For the new interface:

  1. Select your project from the toolbar. screenshot

  2. Open the "Gallery" using hamburger menu icon on the left side of the toolbar and select 'API Manager'.

  3. Click 'Credentials' in the left-hand navigation.

Alternatively, you can click 'Switch to old console' under the the three-dot menu (right side of the toolbar), then follow the instructions below.

For the NEW (edit: OLD) Google Developers Console:

You get your 'Developer key' (a.k.a. API key) on the same screen where you get your client ID/secret. (This is the 'Credentials' screen, which can be found under 'APIs & auth' in the left nav.)

Below your client ID keys, there is a section titled 'Public API access'. If there are no keys in this this section, click 'Create new Key'. Your developer key is the 'API key' specified here.

Stephen M. Harris
  • 7,163
  • 3
  • 38
  • 44
  • The section under client id is email address. Is this my developer key? I doubt it. – Euphorbium Feb 20 '15 at 20:12
  • @Euphorbium Email address is row below client Id and inside OAuth section. And section below OAuth is 'Public API access'. – pbogut May 11 '15 at 22:42
17

Update no 3:

You can get a Developer_Key from here Get your Google Developer Key

Check this tutorial

{select as answered, if it answered.}

Update no 2:

"API key" is the DEVELOPER_KEY

if you check this code reference, it states

Set DEVELOPER_KEY to the "API key" value from the "Access" tab of the Google APIs Console http://code.google.com/apis/console#access`

Wiki on step by step to get API Key & secret

Update:

Developer API Key! probably this is what you might be looking for

http://code.garyjones.co.uk/google-developer-api-key

OR

If say, for instance, you have a web app which would require a API key then check this:

  1. Go to Google API Console Select you project OR Create your project.
  2. Select APIs & Auths enter image description here
  3. API Project from the Dropdown on the left navigation panel
  4. API Access
  5. Click on Create another Client ID
  6. Select Service application refer it here

The Service application that you have created can be used by your Web apps such as PHP, Python, ..., etc. enter image description here

AndyG
  • 39,700
  • 8
  • 109
  • 143
Simon K Bhatta4ya
  • 1,027
  • 2
  • 14
  • 25
11

2017 Update

  1. Open Google API - https://console.developers.google.com
  2. Go to Credentials.
  3. Click on the 'Create Credentials' button. At time of writing it's currently a blue coloured dropdown.
  4. Select API Key.

enter image description here

You should get a dialog from where you can copy this API key to use in your project. Hope this helps.

David Newcomb
  • 10,639
  • 3
  • 49
  • 62
rodiwa
  • 1,690
  • 2
  • 17
  • 35
10

In the old console layout :

  • Select your project
  • Select menu item "API access"
  • Go to the section below "Create another client ID", called "Simple API Access"
  • Choose one of the following options, depending on what kind of app you're creating (server side languages should use the first option - JS should use the second) :
    • Key for server apps (with IP locking)
    • Key for browser apps (with referers)

In the new cloud console layout :

  • Select your project
  • Choose menu item "APIs & auth"
  • Choose menu item "Registered app"
  • Register an app of type "web application"
  • Choose one of the following options, depending on what kind of app you're creating (server side languages should use the first option - JS should use the second) :
    • Key for server apps (with IP locking)
    • Key for browser apps (with referers)

In case of both procedures, you find your client ID and client secret at the same page. If you're using a different client ID and client secret, replace it with the ones you find here.

During my first experiments today, I've succesfully used the "Key for server apps" as a developer key for connecting with the "contacts", "userinfo" and "analytics" API. I did this using the PHP client.

Wading through the Google API docs certainly is a pain in the @$$... I hope this info will be useful to anyone.

John Slegers
  • 45,213
  • 22
  • 199
  • 169
  • This is the correct answer!!! This worked for me for new console and OAuth2 api instead of these nonsenses above. – Michal May 16 '15 at 14:26
  • When we register an app by choosing "iOS", secret key is not generated. Do you know why ? – Abha Nov 09 '16 at 09:26
  • You should provide links so people know what you're talking about. Saying "cloud console" could mean a lot of different things, since Google's changes their site layout every 5 seconds. Case in point `https://console.cloud.google.com/` no longer has anything called "APIs & auth". – Cerin May 18 '17 at 16:37
  • @Cerin : As Stephen M. Harris pointed out in his answer, it looks like Google changed their GUI at least once more since I posted my answer 4 years ago... – John Slegers May 18 '17 at 20:38
6

Please use Google API console
Create a new project
For the created project goto API access
There you will find your Client ID and Secret. And the API key in the last is your developer key.

Shadow
  • 6,161
  • 3
  • 20
  • 14
4

Recent Update July 2017:

  1. Go to Google Console
  2. Click on Left most top panel and click credentials. enter image description here
  3. In the API keys table, you will find the API key in the key column.
santoshthota
  • 303
  • 1
  • 3
  • 10
2

API Key is your developer key. Hit https://www.googleapis.com/webfonts/v1/webfonts?key= in your browser by enabling web fonts api and you will see result.

Refer this blog http://code.garyjones.co.uk/google-developer-api-key/ for more information

Milind
  • 83
  • 6
0

I explored the google docs and found that developer key and api is same thing.

abject_error
  • 2,858
  • 1
  • 19
  • 23
0

in https://code.google.com/apis/console/ , in SERVICES, turn on YOUTUBE API, then click API ACCESS in the left menu.

T.Todua
  • 53,146
  • 19
  • 236
  • 237
0

"Public API access" the key generated there is the key you got to paste into your public static final String DEVELOPER_KEY as part of this writing 26.12.2013 It is not the clientID but you got take the steps mentioned above to obtain one and generate the public api access key.

Peter
  • 1,769
  • 1
  • 14
  • 18
0

Go to https://code.google.com/p/google-api-php-client/wiki/OAuth2

Scroll down to where it says 'Visit the Google API Console to generate your developer key, OAuth2 client id, OAuth2 client secret, and register your OAuth2 redirect uri. Copy their values since your will need to input them in your application.'

Click on the 'Google API Console' link.

When it pops up and says 'Welcome to the new Google Developers Console! Prefer the old console? Go back | Dismiss' Click on 'GO BACK'

0

If you are only calling APIs that do not require user data, such as the Google Custom Search API, then API keys might be simpler to use than OAuth 2.0 access tokens. However, if your application already uses an OAuth 2.0 access token, then there is no need to generate an API key as well. Google ignores passed API keys if a passed OAuth 2.0 access token is already associated with the corresponding project.

Note: You must use either an OAuth 2.0 access token or an API key for all requests to Google APIs represented in the Google Developers Console. Not all APIs require authorized calls. To learn whether authorization is required for a specific call, see your API documentation.

Reference: https://developers.google.com/console/help/new/?hl=en_US#credentials-access-security-and-identity

Community
  • 1
  • 1
000
  • 3,976
  • 4
  • 25
  • 39
0

tl;dr

Developer Key = Api Key (any of yours)

find it in Google Console -> Google API -> Credentials

-2

You should be able to generate a Youtube API key there.

The recommended way to authorize your API call is to use OAuth 2.0 (without API key), as pointed by the documentation an API key is only necessary when using OAuth 1.0 credentials.

The API key for your application can be found in the Google APIs Console in API Access > Simple API.

proppy
  • 10,495
  • 5
  • 37
  • 66
  • Yes! I am using the same .But I have doubt is that developer key works for all google app? By the way thank you for ur help.. – Neelesh Jan 13 '12 at 05:20
  • Thanks @proppy: But I found here [doc_OAuth2WebServe](http://code.google.com/apis/accounts/docs/OAuth2WebServer.html#overview). That is saying you need client_id and client_secret so on.. Is that I am on wrong place? – Neelesh Jan 16 '12 at 05:13
  • You should be able to use the OAuth 2.0 client_id, and client_secret genereated from the Google API console: https://code.google.com/apis/console/ – proppy Jan 16 '12 at 12:38
  • No man what you have answered "API call is to use OAuth 2.0 (**without API key**), as pointed by the documentation an API key is only necessary when using OAuth 1.0 credentials." And as per my understanding you have to need client_id,secret_key... am I right ? Please help me! – Neelesh Jan 20 '12 at 09:31
  • You should be able to used either OAuth 2.0, or OAuth 1.0, with the same set of credential. Most of Google APIs support both authentification schemes. – proppy Jan 20 '12 at 10:37