Getting a Google Maps API key for your site
To get an API key, sign up to Google Maps Platform.
Google Maps Platform offers $300 free monthly credit to use API keys.
You get charged only if your usage exceeds the credit. You can also set daily quotas to protect against unexpected increases.
How to get an API key
- 1 Create an account with your @gmail.com email.
- 2 Select your country and fill out your Contact info and Payment method form.
- 3 Your billing account is created. The next step is to create a new project.
- 4 Click on the dashboard, select APIs and Services and go to Library.
- 5 In the Libary, choose Maps JavaScript API and click Enable.
- 6 Copy the created API key to add it to your site later.
- 7 Go to APIs & Services -> Credentials. Click on Create credentials and select API key.
- 8 Here set up the Key restrictions. Learn more about how to do it here.
- 9 Now go to your site to embed the API key.
- 10 Add a Map element wherever you need it and open its settings.
- 11 Add and customize the address info and paste the copied API key.
Done! You can use Google Maps on your site.