To access any API that is available in Google Maps Platform you would need to follow the steps as mentioned below:
To get access to Google Cloud Platform you can use your existing Gmail account. If you do not have a Gmail account you can visit Google Cloud Platform and sign up. If you are a part of an organisation you should ask your project manager or a person assigned to provide access to users using IAM (Identity and Access Management).
Login to Google Cloud Console and create a project which will be used for accessing the Google Maps Platform APIs. If this is your first time on Google Cloud Platform you will be prompted to provide your basic details on a screen like below:
However, if you already have a project and want to create a new one, choose the dropdown as highlighted in the below picture:
and then click on New Project.
You should fill out all the details about your New Project here:
It is mandatory to have the billing enabled for the project to access any of the APIs available in Google Maps Platform. To enable billing you will have to provide your basic information and card details. However, you will be only billed once you upgrade to a paid plan.
To enable an API, go to Google Maps under Menu and select Overview.
You will see a list of available APIs.
Choose any one of them which you would want to enable. Click on Enable. This page holds very useful links regarding Price/request, how to access the API and limitations applicable. It would be worth checking out the links provided on this page.
You are now one step away to access the API. All you need is an API Key.
To create an API Key, go to API & Services -> Credentials.
Click on Create Credentials to generate a new API Key.
This is how an API Key looks like.
It is recommended to restrict your API key to what you actually need it for. There are two types of restrictions you can apply here: