VineetYadav
VineetYadav

Reputation: 783

Youtube Data API Wrongly Calculated, Quota Exceeded

I have a very simple message and getting the v3 youtube data api to get the list of comments. I am just fetching the list of videos and then fetching the comments (at frequency of 5 sec) to get updated messages. using the page token as needed to minimize the load and computaion.

Today after some time while internally testing the application i started getting the quota exceeded exception. I know the youtube provided by default 10000 units and since reading the comments (and videos as well) is just 1 unit, i should expect to get similar numbers.

However, the data is wrongly calculated. Following are request details enter image description here If you see, there are 2895 total requests LiveChatMessages-> List. However, when i go to IAM-> Quotas, it showed 14k earlier, then 12.6k in quota usage enter image description here

There seems to be some problem either with the computation or with the Documentation that defines the units for queries. Can someone help please.. PS: Just using the two apis as mentioned above in screenshot. Both are list.

Upvotes: 0

Views: 458

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117281

If you see, there are 2895 total requests LiveChatMessages-> List. However, when i go to IAM-> Quotas, it showed 14k earlier, then 12.6k in quota usage

Yes i can see that there are 2895 requests, but how do you know what the qutoa costs are for those requests. You are using the YouTube Live Streaming api for those requests. Not the YouTube-Data-api

There is no documentation of the quota cost for the YouTube Live Streaming api calls. If Google says you used all your quota then you probably have.

I would post an issue over on the issue forum asking them to document the quota cost for the calls Issue forum

Upvotes: 1

Related Questions