Note : This answer is now out-of-date. You are now required to have an API key to use google maps. Read More


you need to change your API from V2 to V3, Since Google Map Version 3 don't required API Key

Check this out..

write your script as

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
Answer from Usman on Stack Overflow
Top answer
1 of 4
28

A key is now required. Previously it wasn't required and sites that used the API without a key prior to June 22, 2016 have been grandfathered to allow them to continue to work.

See this blog post for additional information (relevant text below):

As of June 22, 2016 we are making the following changes to the Google Maps APIs Standard Plan:

  1. We no longer support keyless access (any request that doesn't include an API key). Future product updates are only available for requests made with an API key. API keys allow us to contact developers when required and help us identify misbehaving implementations.
  2. We have implemented a simple 25,000 map loads per day free limit to new Google Maps JavaScript API, Static Maps API, and Street View Image API implementations. The confusing 90-consecutive-day grace period for these APIs is being retired on October 12, 2016. With this change, developers can predictably plan for growth while media sites and US nonprofits can request more quota at no charge via our dedicated support programs.
  3. We have reduced the daily map load maximum limit you can purchase for Google Maps JavaScript API, Static Maps API, and Street View Image API from 1,000,000 to 100,000 requests per API.* We believe higher-volume developers are best served with a Premium Plan license, which includes technical support and a Service Level Agreement, and with this change we've also created consistency between Standard Plan quotas across our maps and web service APIs.
  4. We now count Google Maps JavaScript API client-side requests towards the daily limit of the associated web service API.*

The new policies will apply immediately to all Maps API implementations created on or after June 22nd, 2016.

Existing applications have been grandfathered based on their current usage to ensure that they continue to function both now and in the future. We will also be proactively contacting all existing API key users who, based on usage growth patterns, may be impacted in the future. If you’re an existing user, please take the time to read our Policy Update for Standard Plan summary for details on how each of these changes might affect your implementation.

2 of 4
17

Indeed the link you posted http://www.birdtheme.org/useful/v3largemap.html works without key (there is just a warning in the console). It looks like Google is whitelisting some domain names to allow the use of API without key.

I tried to use the Google Maps API v3 to display OpenStreetMap tiles but it produces a "Google Maps API error: MissingKeyMapError" on my localhost while it is working on this site without API key: http://harrywood.co.uk/maps/examples/google-maps/apiv3.html

On most websites that don't use an API key, there is an error that prevent the use of Google Maps but you can bypass this censorship.

Solution if you don't own the server using Google Maps API without key:

Block the HTTP request sending the error with an addon like AdBlockPlus and the rule http://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate?*

This will give you access to Google Maps API tiles, markers, infoWindow popup... But if you want to use the Geocoding API, you also have to remove your HTTP referer header with a browser addon like "Modify Headers".

Solution to add in your web page so every visitors can access Google Maps API without key:

Below is a JavaScript hack I created to use Google Maps API V3 without key and bypass the error message.

// hack Google Maps to bypass API v3 key (needed since 22 June 2016 http://googlegeodevelopers.blogspot.com.es/2016/06/building-for-scale-updates-to-google.html)
var target = document.head;
var observer = new MutationObserver(function(mutations) {
    for (var i = 0; mutations[i]; ++i) { // notify when script to hack is added in HTML head
        if (mutations[i].addedNodes[0].nodeName == "SCRIPT" && mutations[i].addedNodes[0].src.match(/\/AuthenticationService.Authenticate?/g)) {
            var str = mutations[i].addedNodes[0].src.match(/[?&]callback=.*[&$]/g);
            if (str) {
                if (str[0][str[0].length - 1] == '&') {
                    str = str[0].substring(10, str[0].length - 1);
                } else {
                    str = str[0].substring(10);
                }
                var split = str.split(".");
                var object = split[0];
                var method = split[1];
                window[object][method] = null; // remove censorship message function _xdc_._jmzdv6 (AJAX callback name "_jmzdv6" differs depending on URL)
                //window[object] = {}; // when we removed the complete object _xdc_, Google Maps tiles did not load when we moved the map with the mouse (no problem with OpenStreetMap)
            }
            observer.disconnect();
        }
    }
});
var config = { attributes: true, childList: true, characterData: true }
observer.observe(target, config);

This will give you access to Google Maps API tiles, markers, infoWindow popup... For the Geocoding API, you also have to remove your HTTP referer with the HTML meta tag below.

<meta name="referrer" content="no-referrer"> <!-- don't send HTTP referer for privacy purpose and to use Google Maps Geocoding API without key -->
🌐
GitHub
github.com › somanchiu › Keyless-Google-Maps-API
GitHub - somanchiu/Keyless-Google-Maps-API: Use the Google Maps JavaScript API without API KEY in any domain
Use the Google Maps JavaScript API without API KEY in any domain - somanchiu/Keyless-Google-Maps-API
Starred by 116 users
Forked by 30 users
Languages   JavaScript 80.4% | HTML 19.6%
🌐
ThemeREX
themerex.net › all blog posts › how to set up google maps without api key
How to Set up Google Maps without API Key - ThemeREX
September 19, 2022 - Googlemaps API key is required for built-in theme map element as it offers advanced options for map style, zoom and marker. However, you may use a standard Google Maps block of WPBakery or Elementor page builder to set up Google maps without API key.
🌐
HubSpot
blog.hubspot.com › website › free-api-maps
10 Free API Maps Alternatives to Google Maps
January 19, 2023 - One of the best open-source alternatives to Google Maps API, OpenStreetMap lets you freely modify and distribute map data. You can also create your map styles, overlays, and other elements with greater flexibility. Despite being an open-source project, OpenStreetMap offers all the features of a paid mapping service, including geocoding, routing, and offline mapping. ... Works without an API key and usage limits.
🌐
SitePoint
sitepoint.com › html & css
Google map without API Key - HTML & CSS - SitePoint Forums | Web Development & Design Community
April 3, 2018 - On a website a client want a Google Map included, but when I try to generate a map I need to login and my personal API Key is conected to the map with as a result that my image is attached to the map. Is there a way to …
Find elsewhere
🌐
DEV Community
dev.to › hardiquedasore › how-to-embed-google-map-without-api-key-1ii7
How to embed Google Map without API Key? - DEV Community
August 19, 2025 - Make your website more interactive by embedding Google Map for the location of your business. To embed Google maps to your webpage, one doesn't need an API key.
🌐
TutorialsPoint
tutorialspoint.com › how-to-add-google-map-inside-html-page-without-using-api-key
How to add Google map inside html page without using API key?
Using an iframe to add a Google map to your webpage is a simple and easy method that does not require an API key. With this approach, you can easily embed a Google map on your website by simply adding an iframe element to your HTML code. The iframe element is an HTML tag that allows you to ...
🌐
Bootstrap Studio Forum
forum.bootstrapstudio.io › tips and tricks
Google Map & Marker - With No API KEY - Tips and Tricks - Bootstrap Studio Forum
December 7, 2020 - If you want to create a google map with a marker stick the following code in a custom code block and change the longitude and latitude coordinates to what you need from searching google maps. Once you’ve searched, right click the marker & click the coordinates at the top, it’s then copied to your clip board. change these bits (-36.623758386860175) & (174.5020302019307) but leave the comma between them there.
🌐
freeCodeCamp
forum.freecodecamp.org › javascript
Is there a way to add a google api map without needing to go through billing etc
Hi all. I don’t really want to have to add a billing account just to experiment around with google maps. Adding a google map If you scroll to the bottom , the ‘Get an API key’ part is what I would like to avoid. Getting the API key is not the problem, but after that .I don’t want to ...
Published   October 31, 2022
🌐
Vielhuber David
vielhuber.de › home › google maps ohne api key
Google Maps without an API key < Vielhuber David
June 3, 2021 - There are great alternatives such as mapbox or OpenStreetMap , but they do not yet achieve the variety of features offered by Google. Google itself also offers a way without an API key via the share function, which we can use for our purposes.
🌐
Samuel Uzor
samueluzor.hashnode.dev › no-api-key-no-problem-heres-how-to-add-google-maps-to-your-site
No API Key? No Problem! Here's How to Add Google Maps to Your Site.
September 11, 2024 - Embedding Google Maps that have basic map functionalities, such as displaying locations on a website without the need for an API key is a straightforward approach.
🌐
Cmoreira
cmoreira.net › home › create a map without needing the google maps api key
Create a Map without needing the Google Maps API Key - Interactive World Maps
January 24, 2019 - Maps will also load faster if you ... the API Key you just need to make sure to use the 2 letter ISO code for each country or the ISO_3166-2 codes for each region of a country....
🌐
Reddit
reddit.com › r/webdev › (beginner) hide api key in html code for google maps embed map
r/webdev on Reddit: (Beginner) Hide API key in HTML code for google maps embed map
March 12, 2021 -

Hello. I am starting to learn frontend (basic stuff, Html Css and vanilla JS), and I am making a website to apply what I am learning.
On this website, there is a contact section in which I am including an embedded google maps. I created my account in the Google cloud and got an API key to make the requests, but my doubt is the following: If I include the code for the site in GitHub (and probably host the site in GitHub also), anyone will be able to see my API key? I believe this would be bad, isn't it? Anyone would be able to use this key, and I would be billed for it? If so, how can I hide the API key from the HTML code, or make it so that only I can use it?
Sorry for the beginner questions.

Code for an embedded map:

<iframe
  width="600"
  height="450"
  style="border:0"
  loading="lazy"
  allowfullscreen
  src="https://www.google.com/maps/embed/v1/place?key=API_KEY
    &q=Space+Needle,Seattle+WA">
</iframe>
🌐
Medium
hardiquedasore.medium.com › how-to-embed-google-map-without-api-key-28e5aa989a5c
How to embed Google Map without API Key? - Hardique Dasore - Medium
May 21, 2023 - Make your website more interactive by embedding Google Map for the location of your business. To embed Google Map to your webpage, one doesn’t need an API key.