Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"403 - usageLimits" on youtube api

I have this JSON response from my call from my android App to YouTube API:

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

My url is correct (acoording to youTube search list)

I read somewhere that I should send a browser-key and NO an android-key, but it doesn't work.

like image 526
Stefan Maimon Avatar asked Oct 20 '22 12:10

Stefan Maimon


1 Answers

The error seems clear to me:

Your URL is good, but you just exceeded your quota on Youtube API.

There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions.

I believe this is still true:

Version 3 of the YouTube Data API has concrete quota numbers listed in the Google API Console where you register for your API Key. You can use 30,000 units/second/user and 50,000,000 per day.

like image 68
shkschneider Avatar answered Nov 15 '22 05:11

shkschneider