YouTube data API cost per request or per object?

Deadly 提交于 2019-12-01 13:51:29

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!