Reputation: 91
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:
Captured from chrome Network tab:
Any help you can give will be greatly appreciated.
Upvotes: 8
Views: 32810
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.
Upvotes: 3
Reputation: 895
Try using your server IP Address as Application restrictions. Should work then.
Upvotes: 1