This IP, site or mobile application is not authorized to use this API key I have tried all suggestion from here

3.8k views Asked by At

I am trying get the json response from google place api.

I followed all step and suggestion:

  • Create Browser key instead than android api key
  • Create server key instead than android api key

it does not work any the steps above.

the message is the following.

{
   "error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address 200.104.xx.xx, with empty referer",
   "html_attributions" : [],
   "results" : [],
   "status" : "REQUEST_DENIED"
}
1

There are 1 answers

1
Slinker On

I have been reading more and the best way to work with place from Android App is Google Places API for Android has a good library to get places and information about it.

to use this I should allow in my manifest file specifics permission.

<application>
  ...
  <meta-data
      android:name="com.google.android.geo.API_KEY"
      android:value="API_KEY"/>
</application>

See more https://developers.google.com/places/android/