Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API keys with referer restrictions cannot be used with this API

Tags:

google-maps

When i access the API getting below error response

{
"error_message" : "API keys with referer restrictions cannot be used with this API.",
"results" : [],
"status" : "REQUEST_DENIED" 
}

I have verified all the setting based on google documentation.

Google console settings:

enter image description here

Captured from chrome Network tab:

enter image description here

Any help you can give will be greatly appreciated.

like image 834
Ravindar Singh T Avatar asked Sep 06 '18 08:09

Ravindar Singh T


2 Answers

Try using your server IP Address as Application restrictions. Should work then.

enter image description here

like image 160
Oleksa O. Avatar answered Oct 25 '22 19:10

Oleksa O.


Select a specific API Restriction to solve this problem. Using "Maps Javascript API" failed for my Geocoding requirement but the "Geocoding API" worked perfectly to remove the error you are noting.

API Selection

like image 35
Burndog Avatar answered Oct 25 '22 21:10

Burndog