How to get share count of a youtube video using youtube api?

淺唱寂寞╮ 提交于 2019-12-23 02:16:13

问题


I'm using youtube to retrive some data on a youtube channel (title, id, keywords, lenght, publication-date, ...)

I want to know how to get the share count of each video in this channel. I want to build a "top 10 most shared video" of a specific channel.


回答1:


Have a look at the YouTube Analytics API:

https://developers.google.com/youtube/analytics/

There is a metric for retrieving the share count (shares). Use dimensions (dimensions=video&metric=shares). Alternatively, use filters if you want to retrieve the share count for a specific video: video==Zhawgd0REhA. For more info, see:

https://developers.google.com/youtube/analytics/v1/available_reports



来源:https://stackoverflow.com/questions/14191638/how-to-get-share-count-of-a-youtube-video-using-youtube-api

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