Pressing the YouTube API limiter with the slightest load

I have a script on parse.com that imports the latest information on the latest videos from ~ 10 channels with the YouTube v3 API. It worked well for some time, but about a month ago, it began to fail once or twice a day with the error:

Error: unable to get https://www.googleapis.com/youtube/v3/ ... "error": {"errors": [{"domain": "useLimits", "reason": "serveLimitExceeded", "message ":" Eximed Exceeded "}]," code ": 403," message ":" Eximed Exceeded "}

As can be seen from the following screenshot, I use a maximum of 37 thousand 50,000 thousand units per day. According to my estimates, a single run of a script can take a maximum of 2 thousand units. To be absolutely sure that I don’t click 3,000 Units / second / user limit, I added 1 second delay before each call to the YouTube API, but sometimes I see these errors.

What's happening? Does the YouTube v3 API have other restrictions, such as units per IP? (a single IP address in Parse can contain thousands of installations)

Google Developer Console Screenshot

+5
youtube youtube-api youtube-data-api
source share
3 answers

I think this is a problem at the end of YouTube and does not seem to be related to the actual quota used.

I've been getting quite a few such errors sporadically and apparently for no reason in the last few weeks - see YouTube Data API - “Exceeding Service Limit”

+4
source share

I just filed a bug report from YouTube . Please "run" this problem to attract attention and keep track of updates if you want.

+1
source share

Version 3 of the YouTube Data API contains specific quota numbers listed in the Google API console where you register for your API key. You can use 30,000 units / second / users and 50,000,000 per day.

You can read about that unit here .

A simple read operation that retrieves only the identifier of each returned resource is approximately 1 unit.

The write operation has a cost of about 50 units.

Video downloads cost approximately 1,600 units.

If you click restrictions, Google will stop returning results until your quota is reset. You can apply for more than 50M requests per day, but you will have to pay for these additional requests.

You can also read about why Google has postponed StackOverflow support on its YouTube blog here .

There are several active members in the YouTube development team for developers, including Jeff Poskik, Jarek Wilkevich and Ibrahim Ulukai, who all know about YouTube’s internal functions ...

0
source share

All Articles