是否有通过YouTube数据API查看捐赠信息的功能?

发布于 2025-02-03 08:27:39 字数 88 浏览 3 评论 0 原文

我希望每5分钟将实时流捐赠信息提取到我的服务器。我正在制作一个脚本来检查该信息的机组人员的名称,并自动发送付款。 YouTube数据API是否有办法处理捐赠信息?

I am hoping to pull live stream donation information every 5 minutes onto my server. I am making a script to check that information for the names of the crew and send them payments automatically. Is there a way with the YouTube Data API to handle donation information?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

别理我 2025-02-10 08:27:39

YouTube API都不支持此功能。主要问题是YouTube API已有十年历史了。他们只是为您提供YouTube上视频的基本访问。

您正在寻找的是访问YouTube Web应用中使用的数据,该数据是捐赠,这是一个相对较新的未来,也是Web应用程序的一部分。不只是视频数据。只是YouTube还没有发布API。

尝试提交功能请求

None of the YouTube apis support this functionality. The main issue is that the YouTube apis are more then ten years old. They just give you basic access to the videos on YOuTube.

What you are looking for would be access to data used in the YouTube web app that being donations which is a relatively new future, and again part of the web app. Not just video data. Its just not something YouTube has released an api for yet.

Try and submit a feature request Issue tracker

愛上了 2025-02-10 08:27:39

AS dalmto ,YouTube数据API V3没有此类功能。

但是,我建议您尝试一下我的 youtube操作API 。 Indeed by requesting https://yt.lemnoslife.com/lives?part=donations& ;特别可能感兴趣您:

  • 捐赠时间戳:捐赠[“ Timestampusec”] (示例: 1654111675007219
  • 捐赠信道ID:捐赠[“ AuthorexternalChannelId”] (示例: UC_PKX-RSBPWJQOK2ZRRALFQ
  • 捐赠金额:捐赠[“ puplyaseamounttext”] [“ SimplEtext”] 代码>)
  • 捐赠消息:捐赠[“消息”] [“运行”] [0] (示例:正义!

As DalmTo mentioned, the YouTube Data API v3 doesn't have such feature.

However I recommend you to try out my open-source YouTube operational API. Indeed by requesting https://yt.lemnoslife.com/lives?part=donations&id=VIDEO_ID you will get in item["donations"] the donations currently displayed in the YouTube live chat. Especially may interest you:

  • Donation timestamp: donation["timestampUsec"] (example: 1654111675007219)
  • Donator channel id: donation["authorExternalChannelId"] (example: UC_PkX-rSBPWJqoK2zRRalfQ)
  • Donation amount: donation["purchaseAmountText"]["simpleText"] (example: 100,00\u00a0$US)
  • Donation message: donation["message"]["runs"][0] (example: FOR JUSTICE!)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文