如何获得对 YouTube 视频的所有评论? [英] How to get all comments on a YouTube video?
问题描述
由于 Google 已弃用 YouTube v2 API,我无法找到从视频中获取所有评论的方法.
Since Google has deprecated the YouTube v2 API, I cannot find a way to get all the comments from a video.
是否可以使用单个未弃用的 API(Google+、YT v3)来做到这一点?
Is it possible to use a single, non-deprecated API (Google+, YT v3) to do that?
我不关心维护线程.
推荐答案
相信我它有效
https://www.googleapis.com/youtube/v3/commentThreads?key=******************&textFormat=plainText&part=snippet&videoId=kffacxfA7G4&maxResults=50
https://www.googleapis.com/youtube/v3/commentThreads?key=******************&textFormat=plainText&part=snippet&videoId=kffacxfA7G4&maxResults=50
Key由google开发者控制台提供,50表示json形式的50条评论,video id是视频的id.对于任何类型的查询,请在下方评论.
Key will be provided by the google developer console and 50 denotes 50 comments in form of a json, video id is the id of the video. For any type of queries comment below.
这篇关于如何获得对 YouTube 视频的所有评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!