Get Youtube Video Analytics of a video not owned but with public statistics

倾然丶 夕夏残阳落幕 提交于 2019-12-24 07:38:07

问题


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.


回答1:


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

Gave this a quick Try-it parameters:

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

response body:

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


来源:https://stackoverflow.com/questions/39222429/get-youtube-video-analytics-of-a-video-not-owned-but-with-public-statistics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!