7min

16 November, 2021

How to get an API key for Google Maps 2020

Since Google API algorithms are updated every few months, it is very important to know the details and nuances in 2020.

Google maps API is a key consisting of numbers and letters of the Latin alphabet that gives access to the use of Google Maps on a website or application.

Already in 2019, the use of Google maps became paid, and everyone encountered a problem when the inscription ""For development purposes only" was displayed on the map. But it is paid only for those who use it above the free limit of $200; you can find out in more detail how to calculate and whether you will pay above the limit in the next article.

In this article we will look at obtaining a key for the JavaScript API (for the site)

Let's look at everything point by point

1. First, let's create a project to which the key will belong

To do this, go to the page https://cloud.google.com /maps-platform/ and press the "Get Started"

key

After this, if you have not yet logged into your account, log in

Next you will see a form, most likely you only need the first item, mark it as indicated in the screenshot (or select all, if the developer requires it). And click next.

In the second step give a name to the project, it will not be shown on your resource, it is intended only for you and the developer. Also check the terms of use

2. Creating a payment account

After clicking the create button, the “Enable payment for the project” form will appear, you need to click the “Create payment account” button

In the second step of filling out payment information, you need to fill in all required fields, example below

After clicking the "Start Free Trial" button you will see

3. Creating an API key

After the previous stage you will see this form, on it click the “Enable” button

After that, copy the key that we will see on this form

Copy it for yourself, but before you use it, you need to configure the security settings so that it cannot be used on other sites

4. Setting up security

After clicking the done button, you will see the data screen, here you need to go to the section indicated in the screenshot

Mark the second item and click “Add element”

Next, insert your domain in the same format as indicated below (just replace art-sites.org with your domain). Click "done" and save

That's all, the key can be installed on the site

We hope this was useful!

Tell us about your project: