Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understanding YouTube quota limits: total per day vs. per 100 seconds?

YouTube imposes the following quota cost limits (default values listed):

  • Queries per day  = 1Million units
  • Queries per 100 sec per user = 300,000 units/100sec/user
  • Queries per 100 seconds = 3,000,000

What is the meaning of the last limit? How can the quota per 100 seconds exceed the total quota per day?

like image 812
Olga Convey Avatar asked Jan 24 '17 17:01

Olga Convey


People also ask

How do I increase my YouTube quota limit?

If you have been audited in the past 12 months and have been marked compliant by YouTube API Services Team, you can apply for an additional quota extension using this form. If YouTube denies the application for an additional quota extension, you can file an appeal by using this form.

What is the quota for YouTube API?

Projects that enable the YouTube Data API have a default quota allocation of 10,000 units per day, an amount sufficient for the majority of our API users.

What is starting quota exceeded YouTube?

I'm getting an error that says I exceeded my quota when uploading to YouTube. There is a slight chance that Explain Everything service will exceed its YouTube quota. This can happen if there is an exceptionally large amount of uploads to YouTube made from Explain Everything apps across the world.

Why is YouTube API quota exceeded?

If you have a high traffic site, that limit might be too small. If so, we suggest that you try things like reducing your gallery's page size or using the plugin's caching feature. After that, your traffic might be so high that you still get the "Youtube Data API quota exceeded" error message.


Video Answer


3 Answers

Here are the meaning of the different quota in the YouTube Data API

QPD(quota per day) - meaning the maximum numbers of request over a 24 hour period a client id is able to make to an API.

QPS(quota per second) - meaning a global quota per second for the application, meaning how many calls per second an application can make.

quota per seconds per user - meaning the number of queries a user, in the application can make.

The quota of 3,000,000 per 100 sec did not exceed the 1M QPD because you need to divide the 3M QPS to 100.

So meaning you only have 30,000 QPS or queries per second.

I hope this information helps you.

like image 87
KENdi Avatar answered Oct 21 '22 08:10

KENdi


I believe the "Queries per 100 seconds = 3,000,000" is a inaccurate/left over/a mistake from Google's old Query limits. Clearly 3,000,000 in 100 seconds is 3x your total per day and makes no sense!

The "old" limits used to be much higher: 50,000,000 Queries per day

The per 100 seconds limits, however, did not change (or at least were not updated properly).

like image 30
nightsurgex2 Avatar answered Oct 21 '22 09:10

nightsurgex2


I was also looking for this, as the documentation from YouTube is not clear at all. Some answers, such as @nightsurgex2's, hinted at the fact that only the daily limit counts, but I wanted to be sure before sending this to production, so I wrote and ran some custom tests. I'm not going to speak about the "per user" limits, as the application we are developing does not use this.

The test application just sends a lot of dummy requests (each worth 1 quota point) and breaks when API returns an error. Please keep in mind that this will exhaust your application quota for that day, so use a dummy project if you want to try anything similar. The results were:

Finished YouTube Data: 03/17/2022 15:24:13
Took: 51759.2994 ms
Total requests: 10451


Finished YouTube Analytics: 03/17/2022 15:29:29
Took: 16080.7929 ms
Total requests: 892

Finished YouTube Analytics: 03/17/2022 18:29:57
Took: 10478830.055 ms
Total requests: 98927
  • The limit for YouTube Data v3 is 10k points per day. The number we got is very close to this. Trying to send further requests, even hours later, will fail. There is no per-minute limit.
  • YouTube Analytics v2 enforces both a per-minute and a per-day limit. These values are consistent with Google's documentation and with the test above: 720 requests per minute, or 100k per day (reset at midnight US West Coast). If you go steadily at the maximum per-minute rate, you will exhaust your daily quota in around 2 hours and 20 minutes.
  • YouTube Data has a much smaller quota, however, you are not likely to use it as often. You only use it to get playlist ids, video ids, and the like. The bulk of data (viewers, demographics, subscribers, etc) will come from Analytics. Even then, you will possibly have to phase our your requests or cache their result, depending on your needs.
like image 42
nascente_diskreta Avatar answered Oct 21 '22 09:10

nascente_diskreta