g.pickardou
g.pickardou

Reputation: 35822

How to get Google Maps API key without entering billing info to display on website(Flask)

Context

I would like to get Google Maps API key for free usage (below 5000 per year hits), but when I follow the instructions, it seems that providing billing information is mandatory.

Question

What am I missing, or is it really impossible to have Google Maps on a page without providing billing info?

enter image description here

Upvotes: 73

Views: 175187

Answers (4)

mdsimmo
mdsimmo

Reputation: 619

It is still possible to enable Maps API without billing, but it has to be done through the Cloud SDK console.

Details of how this is done is given here: https://developers.google.com/maps/documentation/embed/get-api-key#gcloud-api-keys-create

Update 2023: This method no longer works properly. Using it will now result in watermarks on the map.

Upvotes: 3

kiden
kiden

Reputation: 696

This is old but in case it helps anyone else I can still get to the following URLs without having to enter billing info

https://console.cloud.google.com/apis/dashboard?project=your-project-name

If you don't know your project name try variations of the above link (shorten it a section at a time) until you see the blue banner along the top with the pull-down name of projects. If you click the pull-down you'll see a popup with all your project names which you can use to put into the above URL.

https://console.cloud.google.com/apis/library?project=your-project-name (you can get to that URL from the 'Library' menu on the left)

From here you can find and enable the API you want, e.g. https://console.cloud.google.com/apis/library/maps-backend.googleapis.com?project=your-project-name (you should see a blue 'Enable' button)

You'll probably get redirected to the billing page after enabling it but ignore that - your selected API should now be enabled and if you go back to the first URL you should see it listed at the bottom of the page (but if you click on it here you'll likely get booted to the billing page again).

https://console.cloud.google.com/apis/credentials?project=your-project-name (you can get here from the 'Credentials' menu on left)

This is where you can set up and manage your API key - there's a link at the top to 'Add credentials'. When done they will appear listed on the page and can be edited by clicking on the name of the API key in the list or the 'Actions' > 'Edit API key' triple dot on the right of the list, plus other actions you might need.

So it's possible to enable an API and create a key for it, but I don't know if it still needs billing info as I can't get it working... but that might be my limited coding skills ;)

Upvotes: 40

Safavi
Safavi

Reputation: 344

You can use iframe tag instead api-key without any problem.

<iframe src="https://maps.google.com/maps?q=Tangesir%20Dates%20Products&amp;t=&amp;z=13&amp;ie=UTF8&amp;iwloc=&amp;output=embed" width=300 height=150 allowfullscreen></iframe>

Upvotes: 14

Karl-Johan Sj&#246;gren
Karl-Johan Sj&#246;gren

Reputation: 17522

Yes you need to setup a billing account, there is no way around it these days. As long as you keep under the free tier it doesn't really matter.

Also their pricing examples are counted monthly so the things that have 5 000 hits in their pricing is per month not per year.

Upvotes: 36

Related Questions