Please follow these steps to get an API key:
- Go to the
Google API Console.
-
Create or select a project.
-
Click Continue to enable the API and any related services.
-
On the Credentials page, get an API key.
Note: If you have an existing unrestricted API key, or a key with browser
restrictions, you may use that key.
-
From the dialog displaying the API key, select Restrict key to set a browser
restriction on the API key.
-
In the Key restriction section, select
HTTP referrers (web sites), then follow the on-screen instructions to set
referrers.
-
(Optional) Enable billing. See Usage Limits for more information.
In the Google API Console, you can also
look up an existing key or
view a list of enabled APIs.
For more information on using the Google API Console,
see API Console Help.