是否有通过YouTube数据API查看捐赠信息的功能?
我希望每5分钟将实时流捐赠信息提取到我的服务器。我正在制作一个脚本来检查该信息的机组人员的名称,并自动发送付款。 YouTube数据API是否有办法处理捐赠信息?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我希望每5分钟将实时流捐赠信息提取到我的服务器。我正在制作一个脚本来检查该信息的机组人员的名称,并自动发送付款。 YouTube数据API是否有办法处理捐赠信息?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
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
AS dalmto ,YouTube数据API V3没有此类功能。
但是,我建议您尝试一下我的 youtube操作API 。 Indeed by requesting https://yt.lemnoslife.com/lives?part=donations& ;特别可能感兴趣您:
捐赠[“ Timestampusec”]
(示例:1654111675007219
)捐赠[“ 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["timestampUsec"]
(example:1654111675007219
)donation["authorExternalChannelId"]
(example:UC_PkX-rSBPWJqoK2zRRalfQ
)donation["purchaseAmountText"]["simpleText"]
(example:100,00\u00a0$US
)donation["message"]["runs"][0]
(example:FOR JUSTICE!
)