API 参考文档/社媒
读取 YouTube 评论
youtube.video.comments按 YouTube 视频 ID 读取评论。有回复的评论可带有读取回复所需的令牌。
YouTube API单价$0.002 / 1 次请求
在控制台试用请求参数
| 参数 | 类型 | 说明 |
|---|---|---|
video_id必填 | string | 视频 ID 最小长度: 1最多 256 个字符 |
continuation_token | string | 上一页返回的分页令牌 最小长度: 1最多 16384 个字符 |
返回内容
业务数据位于execution.result.data。执行记录同时返回状态、实际费用和 Anyuse 请求 ID。
| 参数 | 类型 | 说明 |
|---|---|---|
items必填 | array | items |
items[].id必填 | string | items[].id |
items[].reply_continuation_token | string | items[].reply_continuation_token |
items[].text | string | items[].text |
items[].title | string | items[].title |
items[].username | string | items[].username |
next | object | 有下一页时,将这些字段合并到原输入 |
next.continuation_token必填 | string | 上一页返回的分页令牌 最小长度: 1最多 16384 个字符 |