Create Google map API key free


Get API Key

Quick guide

Step 1: Get an API key

Click the button below, to get an API key using the Google Cloud Platform Console. You will be asked to (1) pick one or more products, (2) select or create a project, and (3) set up a billing account. Once your API key is created you will be prompted to restrict the key's usage. (For more information, see Restricting an API key.)
GET STARTED


Step 2: Add the API key to your app

When loading the Maps JavaScript API, substitute YOUR_API_KEY in the code below with the API key you got from the previous step.
  <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"   type="text/javascript"></script>

Detailed guide

Follow these steps to get an API key and add restrictions:

    1. Go to the Google Cloud Platform Console.
    2. From the Project drop-down menu, select or create the project for which you want to add an API key
    3. From the  Navigation menu, select APIs & Services > Credentials.
    4. On the Credentials page, click Create credentials > API key
      The API key created dialog displays your newly created API key.

    5. On the dialog, click Restrict Key
      (For more information, see Restricting an API key.)

    6. On the API key page, under Key restrictions, set the Application restrictions.
      • Select HTTP referrers (web sites).
      • Add the referrers (follow the instructions).
      • Click Save.













    Comments

    Popular posts from this blog

    Private Chat Using Node js and socket.io with encrypt and decrypt message and insert into mongo db

    How To Migrate MVC 3 Application To MVC 5

    Populate a drop-down in Vue.js and Asp.net Core from an ajax call