Get Youtube Video Analytics of a video not owned b

2019-07-23 15:17发布

问题:

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"
}