-
Create or select a Google Cloud project
- Go to the Google Cloud Console.
- In the top-left “Project” dropdown, either select an existing project or click New Project, give it a name, and click Create.
-
Enable billing on your project
Maps APIs require an active billing account.
- In the Cloud Console, click the ☰ menu → Billing.
- Link a billing account to your project (or create one if needed).
-
Enable the required APIs
- From the ☰ menu, go to APIs & Services → Library.
- Search for and click Maps Embed API, then click Enable.
- Repeat for Maps JavaScript API and Maps Static API.
-
Create an API key
- In APIs & Services, go to Credentials on the left.
- Click + CREATE CREDENTIALS → API key.
- A new key will appear. Click the pencil icon (✎) to edit its settings.
-
Lock down the key with application restrictions
-
For web applications (JavaScript and Embed on web pages):
- Under Key restrictions, select HTTP referrers (web sites).
- Click Add an item and enter your site’s domain(s) (e.g.
https://example.com/*
).
-
For server-to-server or Static API:
- If you’ll call the Static API from a server, select IP addresses and list your server’s public IP(s).
-
For web applications (JavaScript and Embed on web pages):
-
Restrict usage to the specific Maps APIs
- Under API restrictions, choose Restrict key.
- From the dropdown, check only:
- Maps Embed API
- Maps JavaScript API
- Maps Static API
- Click Save.
Need Help?
Feel free to contact us at either support@gutensite.com or support@hellomarket.io. We're always happy to help!
Comments
0 comments
Article is closed for comments.