Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube Data API quota exceeded

I am developing an app locally and I just integrated the Youtube data api v3 to query videos.

Last night I received the 403 error that said my daily quota has been exceeded. If I look at the chart under quotas in the developer console, it says there was 10,000 requests yesterday. This is totally impossible as I am only using this locally.

Here is the quota chart enter image description here

If I click on credentials in the left hand menu and select the API key page, it says only 309 requests for that API key in the last 30 days. That is the only API key I have activated. It can't be API theft, as it only says 309 requests for that key.

enter image description here

I am totally confused. What is happening here? Is there a way to see the IP address where these requests are originating from?

like image 957
Jesse Kinsman Avatar asked Oct 16 '22 14:10

Jesse Kinsman


1 Answers

Those 2 stats are different from each other. 1 request could have a quota cost of one to over a hundred. That quota cost reflects to the queries per day stat. So it's not surprising for you to hit 10,000 with 300 requests.

To get around this issue, you may need to optimize your API request to retrieve only the resource that you need. If the default quota (10,000) isn't really enough, then you probably need to request for quota increase through the console or through this direct apply for higher quota link.

Complete info can be found in the youtube documentation

like image 119
goblin Avatar answered Nov 15 '22 13:11

goblin