Generating a Google Maps API key

In order to use the business autocomplete feature on our lead generation reports, you must create a Google developer account and create an API key.

Note that when using this feature, you will be responsible for costs associated with using the Google lookup. Google provides up to $200 credit each month for free, which should be good for around 11,000 lookups every month (prices correct at the time of writing in September 2020).

If you already use any Google APIs, we strongly recommend creating a separate API key for your Insites landing page. This will mean you can control security and usage individually across your various projects / integrations.

  1. Go to the Google Cloud Platform Console
  2. If you don’t already have an account, you’ll need to sign up for one. It is necessary to activate your account and provide billing details in order for the key to work correctly.
  3. Once you’re in the Google Cloud console, use the left hand menu to navigate to APIs & Services > Library
  4. Search for the “Maps JavaScript API“, click on it and click “Activate“. If it already says “Manage”, you’re good to go.
  5. Repeat step 4 and activate “Places API”
  6. Now use the left hand menu to browse to APIs & Services > Credentials
  7. At the top, click on “+ Create credentials” then “API key
  8. Copy your key.
  9. Log in to your Insites account. From the account settings dashboard, go to Lead generation > General settings and scroll down to find Google Places autocomplete API key. Paste in your API key and hit “Save changes“.
  10. Back in the Google Cloud console, hit “Restrict Key”. You need to make sure a third party cannot use your API key to generate usage against your account. We recommend restricting “HTTP referrers” – in simple terms this means the key will only work on your landing page. To finish setting this up, you’ll need to add your landing page URL under “Website restrictions”.
  11. If your Google console account deals with other APIs, you may wish to restrict which services this API key can access. Under API restrictions, activate “Restrict key” and then select the two required APIs (Maps JavaScript API and Places API).
  12. Once you’re done, hit Save. Note that changes to your API key may take up to 5 minutes to save.

We hope you found this guide useful – please let us know if you have any feedback.

  • Was this helpful?
  • Yes   No