In this documentation, we’ll see how you can get Google API Key.
API KEY
The API key is a unique identifier that is used to authenticate requests associated with your project for usage and billing purposes.
Now, to get the keys, follow these instructions:
- Go to the Google Cloud Platform Console.
- Click the project drop-down and select or create the project for which you want to add an API key.
- Clicking on the NEW PROJECT will redirect you to the following page. Further, click on CREATE to proceed.
- Once the project is created, follow the 2nd step to select the created project from the drop-down menu.
- Furthermore, you need to click the menu button and select APIs & Services > Credentials. Refer:
- On the Credentials page, click Create credentials > API key.
- The API key created dialog displays your newly created API key. Click on RESTRICT KEY before using it in production.
- The new API key is listed on the Credentials page under API keys. On the following page, you can rename, copy, regenerate, delete & restrict the created API key.
Here you have two kinds of restrictions:
Application restrictions
An application restriction controls which websites, IP addresses, or applications can use your API key. You can set one application restriction per key.
- None
- HTTP referrers (web sites)
- IP addresses (web servers, cron jobs, etc.)
- Android apps
- iOS apps
API restrictions
API restrictions specify the enabled APIs that this key can call
- Any API
- Restrict API from the drop-down options
Once the key is generated, you need to enable APIs & services
For this, click on Dashboard > ENABLE APIS AND SERVICES
On the redirected page, search & select the service for which you want to enable the API
Say, we need to enable ‘Maps JavaScript API‘. Click on it, you’ll land on the following page where you need to click on ENABLE.
Once enabled, you’ll be redirected to the following page from where you can disable the service & also, view the stats.
So, similarly, one can enable multiple services as per the requirement.
Need Help?
You can drop your query/suggestion at [email protected] or create your ticket at Webkul UV Desk.
Checkout Webkul Blogs for more!
Be the first to comment.