[google-maps] This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console

I have a latitude, and longitude : "-27.0000,133.0000". I want produce a map base on that.

I've tried go to this link

https://maps.googleapis.com/maps/api/geocode/json?latlng=-27.0000,133.0000&key=******

I keep getting this error on the browser

{
   "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console",
   "results" : [],
   "status" : "REQUEST_DENIED"
}

But I think I already enable that API. I log-in to my Google Console, and double check.

When I go to : https://console.developers.google.com/project/75423435770063/apiui/apis/enabled

I see :

Geocoding + Geolocating is enable.

enter image description here

I'm a little stuck now. Is there anything that I missed here?

The answer is


If you don't have the API enabled, but have an API key, you won't get that error if you run an API from the browser (such as when displaying a map) or pass the request to the curl command. You only get that error if you call an API within code. In Python, it doesn't matter if you use urllib, pycurl, construct the curl command and pass it to subprocess.check_output(), or send the request using jQuery.get(); you still get that error. I wonder how Google knows the difference.


You need to enable the APIs from link:

https://console.cloud.google.com/apis/library?


if faceing that error like geocoding access denied : so you can enable geocoding api service from getKey account.enter image description here


{ "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console", "results" : [], "status" : "REQUEST_DENIED" }

Enabling Directions API made me this error fixed

https://console.developers.google.com/apis/library/directions-backend.googleapis.com

https://console.developers.google.com/apis/library/directions-backend.googleapis.com


For me, it was Maps Embed API that I had to enable.

In the Google Cloud Console

Go to API tab, look through the Additional APIs section and try to enable any map-related APIs.

enter image description here


For Angular developer:

When I need to use agm-direction package, the console shows that "you have to have a credential key first, please go to here", but I already have one so I can view the google map.

Aftet a while, I found the only thing you need to do is go to Direction API and enable it, then wait for about 10s, you are good to go. The whole thing sums up that the console log didn't tell what API is needed exactly.


You need to enable billing to access some of the Google Map APIs

Error messages | Google Map JavaScript API


I am late, but here's another gotcha : Google shows the API as enabled, but in fact they are not. Disable then re-enable it.


Places API and Places SDK for Android are two different APIs . Android devs enable both of them.That worked for me!

No need to enable Geocoding and Geolocating APIs they have different purposes.


This may help somebody in future that's why adding this answer.

In my Case for android studio project. I have to enable Places API as well to get suggestions

This works for me.


Since the google policies update, you need to enable billing to access Map API.


You forget to enable your service in Developer console.


In the API manager menu, you should be able to click overview, select the relevant API under the Google Maps APIs heading and map icon.

Your page might be using some other API's , like Places. Enable them all and see if it helps.

Google Places API Web Service Google Maps Geocoding API


If you are using get method to fetch the places, you need to enable

Google Places API Web Service

I was facing the same issue and resolved after enabling it.

EDIT: According to https://developers.google.com/places/web-service/get-api-key

Note: The Google Places API Web Service does not work with an Android or iOS restricted API key.

So you have to create new key if or remove restricted access of existing key to work it properly.


Here are the steps that worked for me:

  1. Enable Directions API; Geocoding API; Gelocation API console.cloud.google.com/google/maps-apis
  2. Enable APIS and Services to select APIs console.developers.google.com/apis/library

Need to enable Directions API as well in the Google API Console. I have the following enabled:

  • Directions API
  • Geocoding API
  • Maps Javascript API

I also have Geolocation API enabled but the console doesn't show it as being used (0 requests). But maybe it's not real-time reporting so doesn't hurt to enable anyway.


Had the same issue, API was enabled for my project but not for the specific API key I was using.

You should be able to see your API keys here: https://console.cloud.google.com/apis/credentials

Then click on the key you're using and enable the API for that. For me it took ~5min for the changes to take effect.


I experienced the same issue on a Drupal site. After enabling the Geocoding API on the Google Cloud Platform, works for me. On my setup I require two APIs, Geocoding and Maps Javascript APIs.


Sending a get request with axios from a webpage, I needed (finally) to enable also Geocoding API.

I also have Places API, Maps Javascript API, and Geolocation API.

Thanks to these guys


Examples related to google-maps

GoogleMaps API KEY for testing Google Maps shows "For development purposes only" java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion How to import JSON File into a TypeScript file? Googlemaps API Key for Localhost Getting "Cannot call a class as a function" in my React Project ERROR: Google Maps API error: MissingKeyMapError This page didn't load Google Maps correctly. See the JavaScript console for technical details Google Maps API warning: NoApiKeys ApiNotActivatedMapError for simple html page using google-places-api

Examples related to google-maps-api-3

Google Maps shows "For development purposes only" Googlemaps API Key for Localhost ERROR: Google Maps API error: MissingKeyMapError Google Maps API warning: NoApiKeys Google Maps JavaScript API RefererNotAllowedMapError This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console TypeError: window.initMap is not a function Google maps Marker Label with multiple characters Google Maps how to Show city or an Area outline How to use SVG markers in Google Maps API v3

Examples related to geocoding

This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console Create or update mapping in elasticsearch Getting distance between two points based on latitude/longitude Measuring the distance between two coordinates in PHP Why doesn't file_get_contents work? How can I get city name from a latitude and longitude point? Calculating Distance between two Latitude and Longitude GeoCoordinates Given the lat/long coordinates, how can we find out the city/country? Google Maps: how to get country, state/province/region, city given a lat/long value? Get latitude and longitude based on location name with Google Autocomplete API

Examples related to google-geolocation

This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console