获取 youtube 直播流的当前观众人数 [英] Grabbing the current viewer count for youtube live streams

查看:93
本文介绍了获取 youtube 直播流的当前观众人数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望从 Youtube API v2 获取当前的直播观看者以进行直播.这条信息似乎可以在 Youtube 直播(102 正在观看")的主页上和点击直播后查看.

I am looking to source the current stream viewers from the Youtube API v2 for live streams. This information seems to be available on Youtube live streams ("102 Watching Now") both on the main page and after you click on a stream to view.

http://www.youtube.com/watch?v=oNfdKebcrOI&feature=lb

就在右侧的视频下方.目前我正在使用:

Just below the video on the right. For the time being I am using:

https://gdata.youtube.com/feeds/api/charts/live/events/live_now?v=2&alt=json&inline=true&max-results=20&start-index=1

而且我没有看到任何与我需要的模糊相似的东西.是否需要在查询字符串中添加一些内容才能获取此信息?

And I do not see anything vaguely similar to what I need. Is there something I need to add to the query string to get this info?

推荐答案

不幸的是,虽然这些数据在 YouTube 网络界面可以访问的后端中可用,但它根本没有通过任何 API (YT Data API v1/v2) 公开/v3 或 YT Analytics API).

Unfortunately, while that data is available in a backend that the YouTube web interface can access, it's not exposed at all via any API (YT Data API v1/v2/v3 or YT Analytics API) at this time.

这篇关于获取 youtube 直播流的当前观众人数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆