API keys with referer restrictions cannot be used with this API

Viewed 21247

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.

2 Answers

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

enter image description here

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

Related