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.
Try using your server IP Address as Application restrictions. Should work then.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With