# How to get Google Maps API key?

To get Google Maps API key please follow the step by step guide below.

* Go to [Google Maps platform](https://cloud.google.com/maps-platform/)
* Click on **Get Started** button on top right corner. You maybe asked to login with your gmail account if not already logged in.
* Then create a **New Project** by click on project list menu.

![](https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPrgUoleQ4boYUNj_EE%2FCloudApp%202020-12-31%20at%208.24.40%20PM.png?alt=media\&token=203d4db8-3a81-44ca-a0ca-e9ac084809e9)

* Name your project.
* Then click **CREATE** button

<div align="left"><img src="https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPrgw9lzRzBkJCjxq1C%2FImage%202020-12-31%20at%208.29.07%20PM.png?alt=media&#x26;token=b6428b86-b4b4-48e6-a96f-2d72504bc43e" alt=""></div>

* When created go back to the project list and select your newly created project.

![](https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPrhXsB3jralw0OlmI4%2FImage%202020-12-31%20at%208.31.12%20PM.png?alt=media\&token=f0e8b3fa-519a-45bf-b382-6d7d7a175e26)

* Then click on **Places API**. If the API is not appearing on main screen click on APIs in left pane.

![](https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPriA9e14oCK1jRw4uq%2FImage%202020-12-31%20at%208.33.31%20PM.png?alt=media\&token=c8878574-12ca-4201-8792-89b61fd10fee)

* Then enable it by clicking the ENABLE button.

![](https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPriPi54lIPnAtRuC4o%2FCloudApp%202020-12-31%20at%208.35.27%20PM.png?alt=media\&token=42dc3436-8a92-4a69-ae16-2e35cf254e05)

* Next let's create API Keys
* Click on **Credentials** in left pane.
* Then click on **Credentials in APIs & Services** link on the screen.

![](https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPrjS3UpV13zfuenOR7%2FImage%202020-12-31%20at%208.39.31%20PM.png?alt=media\&token=0bd8ee7d-4575-40de-a19e-c50496a39aba)

* Then click on **+CREATE CREDENTIALS**
* Then click on **API Key**

![](https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPrjvj86hH4eYETJF0t%2FImage%202020-12-31%20at%208.41.34%20PM.png?alt=media\&token=3ff2777c-9259-47c7-93f5-320f5ac74d56)

* Then an **API Key** is created for you.
* Copy the API Key and paste in Simple Address Autocomplete plugin settings page. Or see [Where to enter Google Maps API](https://saa.khadim.nz/kb/where-to-enter-google-maps-api-key) key for help.

<div align="left"><img src="https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPrkMThTwB0TrPTxXO1%2FImage%202020-12-31%20at%208.43.04%20PM.png?alt=media&#x26;token=5a1fe6d4-1706-4f9a-9b91-ccdf32c22016" alt=""></div>

## Optional Settings

Your API key will be visible to your website visitor (if they look for it). You can secure your API key by restricting it your website only. See the instruction below to restrict your API Key.

* Click on **Restrict Key**
* Under **Application restrictions** choose **HTTP referrers (websites)**
* Under **Website restrictions** *add an item*
* In **Referrer** add **\*.yourwebsite.com**&#x20;
* Adding \*. means it will accept request from subdomains including [www.yourwebsite.com](http://www.yourwebsite.com)
* Then click **Save** button

<div align="left"><img src="https://1638384659-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPRHtCQ2VKYnMo9rdjg%2F-MPr06DRzdfr3JtlSsCa%2F-MPrltYlx_LS5y6YCm6w%2FImage%202020-12-31%20at%208.46.07%20PM.png?alt=media&#x26;token=7761fa89-adb5-47e5-ad42-b65e4068073b" alt=""></div>

## Using Existing API Key

You can use your existing API key if you already have one.
