Google Geocoding API - REQUEST_DENIED

0 votes
asked Jul 9, 2010 by csetzkorn

Apparently I do not need a 'Maps API key' to use the 'Google Geocoding API' according to:

However, I obtain this:

  "status": "REQUEST_DENIED",
  "results": [ ]

Does this mean that my IP is blocked? What can I do to overcome this? Thanks.


9 Answers

0 votes
answered Jul 9, 2010 by rup

Until the end of 2014, a common source of this error was omitting the mandatory sensor parameter from the request, as below. However as of 2014/12/31 or earlier that is no longer required:

The sensor Parameter

The Google Maps API previously required that you include the sensor parameter to indicate whether your application used a sensor to determine the user's location. This parameter is no longer required.

Did you specify the sensor parameter on the request?

"REQUEST_DENIED" indicates that your request was denied, generally because of lack of a sensor parameter.

sensor (required) — Indicates whether or not the geocoding request comes from a device with a location sensor. This value must be either true or false

0 votes
answered Jul 21, 2011 by alex

If you just copy&paste the example URL that Google gives in their website,+Mountain+View,+CA&sensor=true_or_false it will fail because of the wrong parameter of the sensor. You should change it to true or false and not the one that they wrote. Maybe is the error that you have had, like it happened to me...

0 votes
answered Jul 19, 2012 by j-t-taylor

I've noticed that you also get REQUEST_DENIED for some addresses if you don't properly URL encode your address. For example, in

123 Main St #B, Mytown, CA 94110

the '#' character needs to be encoded as %23

0 votes
answered Jul 24, 2012 by parth-dave


eg.[YOUR ADDRESS]&sensor=true

0 votes
answered Jul 19, 2014 by abbas-uddin

It's suck Google don't let you that your service is not enabled by this account. Try to enable it first. Go here and create a new project with place service activated this may solve your problem.

0 votes
answered Jul 23, 2015 by shimshon

I found that in my case, calling to the service without secure protocol (meaning: http), after adding the key=API_KEY, cause this issue. Changing to https solved it.

0 votes
answered Jul 19, 2016 by koen-cornelis

I got this problem as well using the drupal 7 Location module. Autofilling all empty locations resulted in this error. Executing one of the requests to the location api manually resulted in this error in the returned JSON:

"Browser API keys cannot have referer restrictions when used with this API."

Resolving the problem then was easy: create a new key without any restrictions and use it only for Geocoding.

Note for those new to google api keys: by restrictions they mean limiting requests using an api key to specific domains / subdomains. (eg. only request from are allowed).

0 votes
answered Sep 15, 2017 by user3709875

I had this problem and I realized that I was assuming that Geocoding came with the JS maps API. However, it is a separate API which I hadn't enabled in the cloud console. Enabling it fixed it right away.

0 votes
answered Sep 15, 2017 by guilherme-y-hatano

For those who are looking this page in 2017, like me

Sensor is not required anymore, I tried and got the error:


I just needed to activate my Google Maps Geocoding API, that seems to be necessary nowadays.

Hope it helps someone like me.

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter