> For the complete documentation index, see [llms.txt](https://saa.khadim.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saa.khadim.nz/kb/how-to-get-google-maps-api-key.md).

# 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.

![](/files/-MPrgUoleQ4boYUNj_EE)

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

<div align="left"><img src="/files/-MPrgw9lzRzBkJCjxq1C" alt=""></div>

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

![](/files/-MPrhXsB3jralw0OlmI4)

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

![](/files/-MPriA9e14oCK1jRw4uq)

* Then enable it by clicking the ENABLE button.

![](/files/-MPriPi54lIPnAtRuC4o)

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

![](/files/-MPrjS3UpV13zfuenOR7)

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

![](/files/-MPrjvj86hH4eYETJF0t)

* 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](/kb/where-to-enter-google-maps-api-key.md) key for help.

<div align="left"><img src="/files/-MPrkMThTwB0TrPTxXO1" 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="/files/-MPrltYlx_LS5y6YCm6w" alt=""></div>

## Using Existing API Key

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://saa.khadim.nz/kb/how-to-get-google-maps-api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
