YouTube 数据 API 每个请求或每个对象的费用?

YouTube data API cost per request or per object?

我知道使用 YouTube API 服务会产生费用,但我想知道费用是否按请求计算。 例如,当我查询 3 个视频的元数据时,该请求的成本会增加三倍,还是与我查询 1 个视频的元数据相同?

我假设你在谈论 YouTube API v3 的配额,我建议你访问这个 link,一个配额计算器:

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 花费 3

  • 该请求的费用会增加三倍,还是与我查询 1 个视频的元数据一样?

我们可以假设 "cost be the same as if I query the meta data for 1 video" 因为他们这样说“request” :

多个视频的请求是这样的:

这也是一个请求,所以也是 3 的成本!

真正的问题是当你有多个页面时:

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.