I wanted to use the Android Youtube API so that I created an API key on the Google console and added it to my project. Now when I execute Youtube Query, I get the following message:
04-25 16:41:05.899: W/System.err(7213): com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden 04-25 16:41:05.900: W/System.err(7213): { 04-25 16:41:05.900: W/System.err(7213): "code" : 403, 04-25 16:41:05.900: W/System.err(7213): "errors" : [ { 04-25 16:41:05.900: W/System.err(7213): "domain" : "usageLimits", 04-25 16:41:05.900: W/System.err(7213): "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.", 04-25 16:41:05.900: W/System.err(7213): "reason" : "ipRefererBlocked", 04-25 16:41:05.900: W/System.err(7213): "extendedHelp" : "https://console.developers.google.com" 04-25 16:41:05.900: W/System.err(7213): } ], 04-25 16:41:05.900: W/System.err(7213): "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." 04-25 16:41:05.900: W/System.err(7213): }
What else do I need to do to prevent Google from blocking my request? The request limit per user is 3000 per day, and I used 0 of them.
source share