为拼抢YouTube直播视频流当前浏览器计数 [英] Grabbing the current viewer count for youtube live streams

查看:162
本文介绍了为拼抢YouTube直播视频流当前浏览器计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待从源对于实时流Youtube的API V2当前流观众。这些信息似乎是可以在YouTube直播视频流(102看现在)的主页上都和你点击一个流来查看后。

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

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

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

和我没有看到任何依稀相似,我所需要的。有什么我需要添加到查询字符串来得到这个信息?


解决方案

不幸的是,尽管这些数据是在后端提供了YouTube的Web界面可以访问,这不是在所有通过任何API(YT数据API暴露V1 / V2 / V3或YT Analytics(分析)API)在这个时候。

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?

解决方案

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天全站免登陆