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:
searchand 8 to
idfield 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.
If you have better answer, please add a comment about this, thank you!