• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Why does Google’s YouTube Data API v3 “Queries per day” Quota increase more than I’m calling it?

Resolved: Why does Google’s YouTube Data API v3 “Queries per day” Quota increase more than I’m calling it?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have the default 10,000 queries per day. I added some careful debugging output to my program that’s making calls to see exactly how many calls I’m making:
I only made 16 http requests, 8 to search and 8 to channels. The id field in channels call is a comma separated list of ids. So counting each of those as another “hit” that’s 135 more for the total of 151.
But, after running this my quota reported 808 hits from my 10,000 limit! Why the huge delta between what I’m calling and the quota hit?
Each one has maxResults set to 50, do I get charged for each result back vs each http call?

Answer:

Correction you have 10000 units per day. Which does not mean that you can make 10000 requests.

The YouTube Data API uses a quota system to ensure that developers use the service as intended and do not create API clients that unfairly reduce service quality or limit access for others.


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. You can see your quota usage on the Quotas page in the API Console.


As you can see the YouTube api is cost based each request implies a cost against your total quota.
For example. The search.list method costs 100 points to make the request.
Which give you 10000 / 100 = 100
You can make 100 requests before you run out of quota.
Useful links:
  • Quota cost caculator
  • Intro to YouTube API and cost based quota

If you have better answer, please add a comment about this, thank you!

google-api youtube-api youtube-data-api
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How can I write CSS selector(s) that apply to table rows for all td elements on that row after a td with a certain class?

01/04/2023

Resolved: How do I use SetWindowText with Unicode in Win32 using PowerShell?

01/04/2023

Resolved: Shopware 400 Status Error “This value is too long. It should have 255 character or less.” When I Try Updating Database Table

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.