配额计算器

下表显示了调用每种 API 方法的配额费用。所有 API 请求(包括无效请求)都会产生至少 1 点的配额费用。

启用 YouTube Data API 的项目默认分配的配额为 100 次 search.list 调用、100 次 videos.insert 调用,以及所有其他端点每天共 10,000 个单位。您可以在 Google Cloud 控制台的 “配额” 页面上查看配额使用情况。每日配额会在美国太平洋时间零点重置。

以下几点值得注意,因为它们都会影响您的配额使用情况:

  • search.list 和 videos.insert 方法有各自的配额存储桶。这两种方法每天的默认限额均为 100 次。每次调用的配额费用为 1。
  • 如果您的应用调用了会返回多个结果页面的方法(例如 search.list),则检索其他结果页面的每个请求都会产生估计的配额费用。
  • 从技术上讲,YouTube Live Streaming API 方法是 YouTube Data API 的一部分,调用 这些方法也会产生配额费用。因此,用于直播的 API 方法也会列在 表中。
配额费用
资源 方法 费用

活动

list 1

字幕

list 50
  insert 400
  update 450
  delete 50

channelBanners

insert 50

频道

list 1
  update 50

channelSections

list 1
  insert 50
  update 50
  delete 50

评论

list 1
  insert 50
  update 50
  setModerationStatus 50
  delete 50

commentThreads

list 1
  insert 50
  update 50

guideCategories

list 1

i18nLanguages

list 1

i18nRegions

list 1

liveBroadcasts

bind 1
  delete 1
  insert 1
  insertCuepoint 1
  list 1
  transition 1
  update 1

liveChatBans

delete 200
  insert 200

liveChatMessages

delete 20
  insert 20
  list 5
  streamList 5
  transition 20

liveChatModerators

delete 200
  insert 200
  list 50

liveStreams

delete 1
  insert 1
  list 1
  update 1

成员

list 1

membershipsLevels

list 1

playlistItems

list 1
  insert 50
  update 50
  delete 50

播放列表

list 1
  insert 50
  update 50
  delete 50

搜索

list 每天 100 个配额。每次调用消耗 1 个配额。

订阅

list 1
  insert 50
  delete 50

superChatEvents

list 1

缩略图

set 50

videoAbuseReportReasons

list 1

videoCategories

list 1

视频

list 1
  insert 每天 100 个配额。每次调用消耗 1 个配额。
  update 50
  rate 50
  getRating 1
  reportAbuse 50
  delete 50

水印

set 50
  unset 50