0

I get that there is a cost incurred when I use YouTube API service, but what I would like to know is if the cost is per request or not. For example, when I query the meta data of 3 videos, would the cost be tripled for that one request, or would the cost be the same as if I query the meta data for 1 video?

Khanetor
  • 11,595
  • 8
  • 40
  • 76
  • Possible duplicate of [Does using the YouTube Data Api generate any cost?](http://stackoverflow.com/questions/27225044/does-using-the-youtube-data-api-generate-any-cost) – Linda Lawton - DaImTo Sep 12 '16 at 06:39

1 Answers1

1

I assume you talk about the quota with the YouTube API v3, i can suggest you to visit this link, a quota calculator:

This tool lets you estimate the quota cost for an API query. All API requests, including invalid requests, incur a quota cost of at least one point.

https://developers.google.com/youtube/v3/determine_quota_cost COST 3

  • would the cost be tripled for that one request, or would the cost be the same as if I query the meta data for 1 video?

We can assume "cost be the same as if I query the meta data for 1 video" because they speaks about "request" like this :

The request for multiple videos is like this :

Which is also one request, so it's also a cost of 3 !

The real deal is when you have multiple pages:

Note: If your application calls a method, such as search.list, that returns multiple pages of results, each request to retrieve an additional page of results will incur the estimated quota cost.

mpgn
  • 7,121
  • 9
  • 67
  • 100