commentthreads.list()带有channelID或allthreadsrecredtoChannelid作为参数给出http 403错误
我正在尝试获取特定频道的所有视频评论。而且我会遇到以下错误。
{
"error": {
"code": 403,
"message": "The video identified by the \u003ccode\u003e\u003ca href=\"/youtube/v3/docs/commentThreads/list#videoId\"\u003evideoId\u003c/a\u003e\u003c/code\u003e parameter has disabled comments.",
"errors": [
{
"message": "The video identified by the \u003ccode\u003e\u003ca href=\"/youtube/v3/docs/commentThreads/list#videoId\"\u003evideoId\u003c/a\u003e\u003c/code\u003e parameter has disabled comments.",
"domain": "youtube.commentThread",
"reason": "commentsDisabled",
"location": "videoId",
"locationType": "parameter"
}
]
}
}
注意: - 我尝试获取其他渠道的视频评论,并且响应上以上没有问题。
请阐明这一点,并在可能的情况下提供官方的API文档。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎有些视频已禁用了这个。相反,您应该使用 commentThreads:list list 每个
face> face> /代码>。
要获取给定的YouTube频道的所有视频ID,您可以通过使用上载 playlist ID “ rel =“ nofollow noreferrer”> channels:list 使用
contentDetails
forpart
,然后提供此uploads
playlist ID到 playListItems:list 获取频道的视频ID。It seems that some videos have disabled comments like this one. You should instead use CommentThreads: list with each
videoId
.To get all video ids of a given YouTube channel you can get the
uploads
playlist id by using Channels: list withcontentDetails
forpart
and then provide thisuploads
playlist id to PlaylistItems: list to get the channel's video ids.