使用YouTube Data Api会产生任何费用吗?

Jho*_*ith 6 youtube google-api youtube-api youtube-data-api

我想知道是否使用YouTube Data Api会产生任何费用(必须支付给谷歌的钱).

我只能找到youtube使用的"单位系统"来限制请求数量?

rsp*_*rsp 13

除了DaImTo的回答之外,我可以补充说,如果您不需要所有YouTube API功能(例如,您只需要获取视频标题和缩略图或类似内容),那么您无需担心完全是API限制,您甚至不需要使用API​​密钥.

I add this because a lot of people only need to get some basic data and get confused by all of the crazy API limits restrictions that keep changing all the time to make things worse, when you can get the same data without using the YouTube API directly.

You can get oEmbed data from YouTube:

http://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ

Or you can access it via Noembed:

https://noembed.com/embed?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ

which (unlike YouTube) also supports JSONP:

https://noembed.com/embed?callback=example&url=https://www.youtube.com/watch?v=dQw4w9WgXcQ

so that you can use it on the client-side with no need for server-side proxies.

See also those answers for more info:

  • 要嵌入,您需要拥有 id 引用,您在使用 API 视频搜索时会获得该 id 引用,这很常见,因此需要 API。 (2认同)

DaI*_*mTo 12

YouTube Data API使用配额来确保开发人员按预期使用该服务,并且不会创建不公平地降低服务质量或限制其他人访问的应用程序.所有API请求(包括无效请求)都会产生至少一个点的配额成本.

他们所指的成本是违反配额的成本.

  • 1,000,000个读取操作,每个操作检索两个资源部分.
  • 50,000个写入操作和450,000个额外的读取操作,每个操作检索两个资源部分.
  • 2000个视频上传,7000个写入操作和200,000个读取操作,每个操作检索三个资源部分.

每天允许您对API提出的请求数量有限.这是免费的,你使用它不需要任何money使用它.某些Google API可能允许您扩展此配额,但会向您收取扩展费用,但这取决于API.

来自Youtube API配额文档的信息

  • 你能告诉我延长配额价格的链接吗?我在谷歌搜索但没有运气.无法找到我必须为扩展支付多少钱. (6认同)