7

We're using the youtube data api v3 and have been for quite some time without any problems. Recently, we've been getting this 403 exception:

The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>.

In the google developer's console, it says that we are still under the quota (currently it states "units/day 163,817 of 50,000,000").

Am I missing something about how quotas work?

  • 2
    Possible duplicate of [Hitting YouTube API serving limit with the slightest load](http://stackoverflow.com/questions/32470396/hitting-youtube-api-serving-limit-with-the-slightest-load) – Stephan Branczyk Mar 03 '16 at 19:54

3 Answers3

2

You can create more API keys and randomly use them all. Its good way as Im also using it without any issue and never got quota exceeded issue. You need to create separate project for each API. in PHP you can use it like

$api = array("API key # 1", "API key # 2" ,"API key # 3");
$rand_keys = array_rand($api, 1);
$usage = $api[$rand_keys];

For each request new key will be used. Better way to avoid any downtime.

Mark Fulghum
  • 550
  • 4
  • 13
1

Quota have been reduced yesterday (2016-04-21) from 50 Million units to just 1 Million ...

CSharpShooter
  • 138
  • 1
  • 6
  • Do you have a reference to support this? – Saiichi Hashimoto Apr 27 '16 at 21:13
  • Nop, no reference anywhere yet ... but you can see it in the Google console youtube API settings ... and also a lot of apps based on youtube are claming to have issues with the new quota restriction since 2016-04-21 ... BTW, forget about asking for a quota extension, it's pretty clear based on the form with 100 questions that you won't be able to obtain a quota extension except if you are a very huge company and ready to pay big $$$ – CSharpShooter Apr 30 '16 at 18:02
0

YouTube also has a quota of 3,000 requests per second. Perhaps you're hitting that.

johnh10
  • 4,047
  • 1
  • 18
  • 30