Ravindar Singh T
Ravindar Singh T

Reputation: 91

API keys with referer restrictions cannot be used with this API

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.

Upvotes: 8

Views: 32810

Answers (2)

Burndog
Burndog

Reputation: 719

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

Upvotes: 3

Oleksa O.
Oleksa O.

Reputation: 895

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

enter image description here

Upvotes: 1

Related Questions