Home:ALL Converter>Get 403 error message when using Google custom search API

Get 403 error message when using Google custom search API

Ask Time:2015-03-28T23:32:47         Author:Evan Yeung

Json Formatter

I'm getting this message when using Google custom search API. I got both API key(server and browser) and search ID.

Why it says usageLimits? The constraints is 100 queries per day, but i ran the program way less than 100 times....

Where is going wrong... please help!!

"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." }

Author:Evan Yeung,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29318964/get-403-error-message-when-using-google-custom-search-api
yy