Server keys
Create and use a server key if your application runs on a server. Do not use this
key outside of your server code. For example, do not embed it in a web page. To prevent quota
theft, restrict your key so that requests are only allowed from your servers' source IP
addresses.
Browser keys
Create and use a browser key if your application runs on a client, such as a web
browser. To prevent your key from being used on unauthorized sites, only allow referrals from
domains you administer.
// Received the following JSON response (403 Forbidden)
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "ipRefererBlocked",
"message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
"extendedHelp": "https://console.developers.google.com"
}
],
"code": 403,
"message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
}
}