OpenAPI 文档/YouTubeGET

YouTube — 视频评论

SpiderHubs OpenAPI 文档:YouTube — 视频评论,分类 YouTube。接口 GET /openapi/v1/contentcreator/youtube/web_v2/get_video_comments。读取一条视频的一级评论。默认按热门排序,可改为最新。下一页把上次返回的 con...

OpId: yt-video-comments · 最近更新: 2026-11-19

说明

读取一条视频的一级评论。默认按热门排序,可改为最新。下一页把上次返回的 continuation_token 原样传回。

基础信息

Endpoint:
GET /openapi/v1/contentcreator/youtube/web_v2/get_video_comments
计费:
1 积分 / 次
限流:
300 次 / 分钟 / 用户

请求参数说明

参数类型必填说明
video_idstring是11 位视频 ID
sort_bystring否top 热门(默认)或 newest 最新
continuation_tokenstring否翻页令牌。首页不传
language_codestring否显示语言,默认 zh-CN
country_codestring否地区,默认 US
need_formatboolean否是否返回清洗后的评论。默认 true

响应字段说明

字段类型说明
codeint业务状态码,200 表示成功
request_idstring本次请求唯一标识,排查问题时可提供
dataobject业务数据容器,具体字段见下
data.commentsarray一级评论
data.comments[].comment_idstring评论 ID
data.comments[].contentstring评论正文
data.comments[].published_timestring相对发布时间,如 1天前
data.comments[].like_countstring点赞数
data.comments[].reply_countstring回复数
data.comments[].authorobject作者:channel_id、display_name、channel_url、is_verified
data.continuation_tokenstring下一页令牌。没有更多时为空
请求示例 · cURL
curl 'https://api.spiderhubs.com/openapi/v1/contentcreator/youtube/web_v2/get_video_comments?video_id=ZFEnfscZpAU&sort_by=top' \
  -H 'Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx'
响应示例
{
  "code": 200,
  "request_id": "b31e0a44-91c2-4f08-8a55-6d2e1c70aa09",
  "data": {
    "comments": [
      {
        "comment_id": "UgzExampleCommentId",
        "content": "Example comment",
        "published_time": "1 day ago",
        "like_count": "2",
        "reply_count": "0",
        "author": {
          "channel_id": "UCexample",
          "display_name": "@example",
          "channel_url": "https://www.youtube.com/@example",
          "is_verified": false
        }
      }
    ],
    "continuation_token": ""
  }
}

开始调用 SpiderHubs API

使用账户中心生成的 API Key,通过 Authorization: Bearer sk_live_xxx 调用接口。