> For the complete documentation index, see [llms.txt](https://aries-theme.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aries-theme.gitbook.io/docs/guides/create-a-google-maps-api-key.md).

# Create a Google Maps API Key

#### 1. Go to Google Cloud Console

Head over to [**console.cloud.google.com**](https://console.cloud.google.com) and sign in with your Google account.

***

#### 2. Create a Project

* Click the project selector at the top left
* Click **"New Project"**
* Give it a name, then click **"Create"**

<figure><img src="https://2498163780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2LxG3rPCoA6sZo7ovFkR%2Fuploads%2FGN2VmlIAIL19cRwEisiN%2FCapture%20d'%C3%A9cran%202026-02-19%20215036.png?alt=media&amp;token=af1285af-6e84-427d-b997-cbcedeb9695b" alt=""><figcaption></figcaption></figure>

***

#### 3. Enable the Maps API

* In the side menu, go to **APIs & Services → Library**

<div data-full-width="false"><figure><img src="https://2498163780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2LxG3rPCoA6sZo7ovFkR%2Fuploads%2Fn77fxrXLNlUppgE2vHHy%2FCapture%20d'%C3%A9cran%202026-02-19%20213316.png?alt=media&amp;token=54cc2373-22d3-49a3-a43c-87b63e145cd0" alt=""><figcaption></figcaption></figure></div>

* Search for **"Maps JavaScript API"** (or whichever Maps API you need)

<figure><img src="https://2498163780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2LxG3rPCoA6sZo7ovFkR%2Fuploads%2FcNsKjWLYowOb9RolM1g8%2FCapture%20d'%C3%A9cran%202026-02-19%20213434.png?alt=media&amp;token=4957b1e7-b4e2-47b3-be9e-c553066ef6a9" alt="" width="563"><figcaption></figcaption></figure>

* Click on it, then click **"Enable"**

***

#### 4. Generate the API Key

* Go to **APIs & Services → Credentials**
* Click **"+ Create Credentials"** → **"API Key"**

<figure><img src="https://2498163780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2LxG3rPCoA6sZo7ovFkR%2Fuploads%2FRfAcqUCso6KaXSkK0a0n%2FCapture%20d'%C3%A9cran%202026-02-19%20213710.png?alt=media&amp;token=74b3d01d-bf09-424d-91a2-9395f42fd782" alt="" width="524"><figcaption></figcaption></figure>

* Your key is instantly generated ✅

***

#### 5. Restrict the Key (recommended ⚠️)

To secure your key, click **"Edit Key"** and configure:

* **Application restrictions:** choose between Websites, Android/iOS Apps, or IP addresses depending on your use case

<figure><img src="https://2498163780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2LxG3rPCoA6sZo7ovFkR%2Fuploads%2FcDKJzkhahAnMXjQTSwiV%2FCapture%20d'%C3%A9cran%202026-02-19%20213924.png?alt=media&amp;token=137c597d-211f-4404-ab9f-04203424319e" alt="" width="524"><figcaption></figcaption></figure>

* **Website Restrictions**: add allowed referrers using these formats:&#x20;
  * example.com/\*: covers all pages on your domain.

<figure><img src="https://2498163780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2LxG3rPCoA6sZo7ovFkR%2Fuploads%2FaewCYdgqMKUt9wR6h6JX%2FCapture%20d'%C3%A9cran%202026-02-19%20214846.png?alt=media&amp;token=22610435-31a3-41c2-b2dd-badf9211dbea" alt="" width="527"><figcaption></figcaption></figure>

<figure><img src="https://2498163780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2LxG3rPCoA6sZo7ovFkR%2Fuploads%2F5auESabN6z5zFE4xlF1f%2FCapture%20d'%C3%A9cran%202026-02-19%20214909.png?alt=media&amp;token=d1ccccb0-da4c-4299-bd10-4f52be32143d" alt="" width="534"><figcaption></figcaption></figure>

* **API restrictions:** limit the key to only the APIs you actually need

***

#### 6. Set Up Billing

The Google Maps API requires an active billing account. Go to **Billing** and link a credit card. Google provides **$200/month in free credits**, which easily covers moderate usage.

{% hint style="info" %}
Need help? Check [Google's Maps Platform](https://developers.google.com/maps/documentation) documentation for detailed setup guides.
{% endhint %}
