All Collections
Generating leads
Generating a Google Maps API key
Generating a Google Maps API key

Use business auto complete on our lead generation with an API key

Zoe Fletcher avatar
Written by Zoe Fletcher
Updated over a week ago

Bespoke lead generation is available to our Enterprise partners. Please contact your Customer Success Manager to find out more. If you're on the Pay-As-You-Go plan, check out our self-serve lead generation widget.

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. 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.

  2. Once you’re in the Google Cloud console, use the left hand menu to navigate to APIs & Services > Library

  3. Search for the “Maps JavaScript API“, click on it and click “Activate“. If it already says “Manage”, you’re good to go.

  4. Repeat step 4 and activate “Places API”

  5. Now use the left hand menu to browse to APIs & Services > Credentials

  6. At the top, click on “+ Create credentials” then “API key

  7. Copy your key.

  8. 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“.

  9. 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”.

  10. 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).

  11. 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.

Did this answer your question?