CMS - How do I get a Google API Key for Google Maps?

 OptimizedImage,Optimized

Cms 
 

How do I get a Google API Key for Google Maps?

 


← Return Read on ↓

*Please note: that in order to make the API Key work correctly, you need to follow all the steps described on this article - from Enabling Billing to Enabling Required APIs.
 

Enabling Billing

1. First go to Google Maps Platform and click on Get Started:

2. If it is the first time you use Google Developers Console, once you enter using your Google account, you'll need to Enable Billing for your project. Please note that enabling billing is a required step. Unfortunately, you won't be able to use your API Key in the Elfsite Widget, unless billing is not enabled. 
 

Google Maps Platform


To do it, first, you'll need to fill in the personal information Google asks you to:

Goofle Cloud Platform

Account Information

Please keep in mind that Google won't charge you after creating a billing account: after accepting the terms you automatically start a 12-month trial with a $200 positive balance as a free credit per month. Inserting your credit card information is Google's requirement: you won't be able to use your API key unless you do it. 

Select the country, tick the Terms of Service checkbox and click Continue:

Account Information


Enter your phone number and click on Send Code:

Account Information


Enter the verification code you receive from Google and click on Verify:

Account Information


Then fill in your personal information -  company's name, address and credit card details, and click Start my Free Trial:

Account Information


Then proceed to the billing verification and after that start your free trial:

Account Information


If you are already using Google Cloud Platform, you'll need to add your billing information on this page. To do it, please click on Create Account:

API Key

Creating an API Key

Create a new project or choose an existing one:

Create API


If you're creating a new project, insert its name, select the organization and its location:

Create API


Go to APIs and Services -> Credentials. That's the page where all your API keys will be stored:

Create API


Choose Create Credentials -> API Key

Create API


You'll see this window as soon your API key is created:

Create API

Restricting your API Key

After that, you'll need to restrict your API key. You can either limit the websites (HTTP referrers), web servers (IP addresses) or mobile apps which can use it. You might want to make your API key accessible for your own domain and Elfsight apps only. In this case, please add two items -   *.elfsight.com/* and your domain name in the following format:

Resrticting API


Please keep in mind that you need to change the way a referrer's inserted depending on the URLs which will use the key. Please pay attention to the instruction on the left of the page:

Restricting API


You can do the same thing with IP addresses, mobile apps and even specify the APIs your API key can call.

Enabling Required APIs

To use our Google Maps widget you'll need to enable three APIs: Maps JavaScript API, Geocoding API, Directions API. To do it go to Dashboard-> Enable APIs and Services -> Maps:

Enabling API

Enabling API


Enable Maps JavaScriptGeocoding and Directions APIs:

Enabling API


You're all set! Now you can copy and paste your API key and enjoy using our Google Maps widget!

Enabling API


Discover more

ONGOING SUPPORT

Need help with anything else?

If you can’t find the answer you’re looking for in our Knowledge Base, there are three ways you can get support:

Request a guide Raise a ticket Book a call

Newsletter Signup