Google Map Embed API Key not working

Nicole S picture Nicole S · Apr 4, 2015 · Viewed 11k times · Source

I am trying to add google maps Embed API to my site. I keep getting this error:

"The Google Maps API server rejected your request. This IP, site or mobile application is not authorized to use this API key."

The API key is correct. I have Static Map turned on. Two of the most common trouble shots.

Code is formatted as follows:

  <iframe
  width="600"
  height="450"
  frameborder="0" style="border:0"
  src="https://www.google.com/maps/embed/v1/place?key=XXXXXXXXXXXXXXXXXXXX&q=Space+Needle,Seattle+WA">
</iframe>

I put the < infront of iframe in my code. Any help would be great. Thanks!

Any one have any suggesions?

Answer

geocodezip picture geocodezip · Apr 4, 2015

Static Maps and the Embed API are different things and controlled differently. Do what the message suggests (in its round about way) and turn on the Embed API in the Google API console.