获取非拥有但具有公共统计数据的视频的 Youtube 视频分析 [英] Get Youtube Video Analytics of a video not owned but with public statistics

查看:21
本文介绍了获取非拥有但具有公共统计数据的视频的 Youtube 视频分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试访问我制作的这个测试视频的统计数据.我已经在 Youtube 视频管理中将统计信息设置为公开,我希望即使使用不是该频道的所有者或 MCN 的帐户也能通过 API 查看它们.

I'm trying to access the statistics for this test video I made. I already set in the Youtube video management the statistics to be public and I was expecting to be able to see them through the API even by using an account that is not the owner, nor the MCN of that channel.

这可能吗?如果是,如何?

Is this possible at all? If yes, how?

点击分享"按钮后的三点"图标即可查看统计数据.

You can see already the statistics by clicking the "three dots" icon after the "share" button.

推荐答案

是的,可以使用videos.list 来自 Data API.

Yes, it's possible to view public stats of videos by using videos.list from Data API.

给它一个快速的试用参数:

part -> statistics 
id-> {p3fEBzO1wvk} //your test video
Authorize and Execute

响应正文:

"statistics": {
"viewCount": "29",
"likeCount": "0",
"dislikeCount": "0",
"favoriteCount": "0",
"commentCount": "0"
}

这篇关于获取非拥有但具有公共统计数据的视频的 Youtube 视频分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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