Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3756

Why does Google's YouTube Data API v3 "Queries per day" Quota increase more than I'm calling it?

$
0
0

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:

https://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 21 channelIdshttps://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 2 channelIdshttps://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 39 channelIdshttps://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 16 channelIdshttps://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 1 channelIdhttps://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 8 channelIdshttps://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 37 channelIdshttps://youtube.googleapis.com/youtube/v3/search  https://youtube.googleapis.com/youtube/v3/channels with 11 channelIdstotal search = 8total channels = 8 calls with 21+2+39+16+1+8+37+11 = 135 channelIds8 + 8 + 135 = 151

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?


Viewing all articles
Browse latest Browse all 3756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>