Is your map broken?
Lots of websites show a Google Map on their contact page. From July 2018, many of those maps stop working without an API key.
A map is one of the most useful things on a contact page: your location, directions and contact details in one place. But if your site uses a standard Google Maps widget, it may have stopped working when Google changed its rules in summer 2018.
Update, November 2026
That is still how it works: an interactive map built with Google’s Maps platform needs an API key linked to a billing account. For a simple map, the Share, then Embed a map option in Google Maps gives you code you can paste straight into your page. And your free listing is now called Google Business Profile.
The fix
Two ways to get your map back.
An API key is a token that connects the map on your website to Google.
Once your business is registered with Google, people searching for you see your details, and the map shows your business name with your contact details and a directions button. Very handy, and free.
Option one
Getting an API key.
Open Google Cloud
Sign in with your Google account and create a project for your website. Have your billing details ready.
Turn on the Maps API
Enable the Maps JavaScript API for the project. That is the part your map needs.
Create your key
Generate an API key. It is a long string of letters and numbers.
Lock it to your website
Restrict the key so it only works on your domain. That stops anyone else using it.
Add it to your site
Paste the key into your website’s map settings. Your map should appear straight away.
Option two
Registering your business.
- Claim your listing.Search for your business on Google and claim it, or add it if it is not there.
- Verify it.Google confirms the business is yours before your details go live.
- Fill in everything.Hours, phone, website, photos and a description. The more complete it is, the better it works.
Once it is live, your business shows up on Google Maps with your details and a directions button, without anything on your website needing a key.
Further reading
Originally published on 5 September 2018. Update added in November 2026.