James Webb
James Webb

Reputation: 189

Youtube API quota usage much larger than the number of requests recieved

I am using the Youtube Data API to get search results for a given query.

Example Request (@ avg. rate: 1-2 per minute):
https://content.googleapis.com/youtube/v3/search?q=The+Time+(Dirty+Bit)+The+Black+Eyed+Peas+music+video&maxResults=5&part=snippet&key=XXX

Here is my quota usage for the 2 occasions I have tried this. https://i.sstatic.net/HoK6m.jpg

Here is a chart of requests I have made today: https://i.sstatic.net/bT5mR.jpg

On both days I have exceeded my quota of 10,000 while only making 200ish requests. These numbers do not match up and I can't understand why. I would expect the number of requests to equal quota usage?

I've checked my code and the number of requets being made by my application matches the number of requets on the dashboard.

Any help or guidance would be greatly appreciated.

Upvotes: 1

Views: 964

Answers (1)

Thiti Teantaworn
Thiti Teantaworn

Reputation: 46

For search resource will take 100 cost from quota per request.

And you can also use this. https://developers.google.com/youtube/v3/determine_quota_cost

To calculate quota cost that will be use per request.

Upvotes: 3

Related Questions