Reputation: 302
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?
Upvotes: 7
Views: 4113
Reputation: 138
Quota have been reduced yesterday (2016-04-21) from 50 Million units to just 1 Million ...
Upvotes: 1
Reputation: 4185
YouTube also has a quota of 3,000 requests per second. Perhaps you're hitting that.
Upvotes: 0
Reputation: 568
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.
Upvotes: 2