To use the Google Maps Platform, you’ll need an API key from the Google Cloud Platform.
Does that sound a bit intimidating? Don’t worry—it’s simpler than you think! An API key is just a string of characters, similar to a password.
In this short article, I’ll guide you step-by-step on how to easily get your own API key.
Step 1. Sign into Google Cloud
Sign into the Google Cloud Platform with your Google account. If you don’t have a Google account, create one.
2. Create a Project
The next step is to create a new project.
Projects are used to organize and manage your API keys, usage, and billing, so it’s a good idea to create a dedicated project for each application or website you’re working on.
Click Select a Project in the Google Cloud Console:
In the pop-up window, choose New Project:
Give your project a meaningful name—something that helps you easily identify it later. For example, you might name it after your app, website, or client.
Select a billing account if prompted. Every project must have an associated billing account, but don’t worry—Google offers $200 in monthly free usage, which is enough for most small projects.
Once you’ve entered the details, click Create:
3. Create a Key
Next, navigate to Keys & Credentials from the sidebar in the Google Cloud Console:
Here, you may be prompted to provide some personal information and billing details. While Google requires billing information for account verification, don’t worry—you won’t be charged unless you manually upgrade to a paid account. Google also offers $200 in monthly free usage, which is sufficient for most small projects.
Once you’ve filled out the required details, you’ll receive your API key!
Restrict keys
It’s important to restrict your API key to prevent unauthorized use. Without restrictions, anyone who gets hold of your key could use it and potentially rack up unwanted charges.
Under the API key settings, choose Restrict Key:
I’d suggest selecting HTTP referrers as your restriction type:
Add the domain names where you’ll be using the API key. For example, if your website is example.com
, you can specify it as *.example.com
to cover all subdomains as well.
Save your changes.
With these restrictions in place, your API key will only work for the specified domains, adding an extra layer of security.
And that’s it! Your Google Maps API key is ready to use. Thanks for reading, and happy mapping!
Tip: You might not need an API Key!
It’s worth noting that you might not even need a Google API key.
Instead, you can use Atlist, a no-code tool designed for creating custom Google Maps effortlessly. Atlist is incredibly user-friendly and eliminates the need for a Google API key altogether.
With Atlist, you can create beautiful maps that can be easily shared or embedded on any website.
Here’s a quick explainer video to get you started:
But if that doesn’t work for you, hopefully this article has been helpful!