{
"count": 100,
"items": [
{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoCommentCount": null,
"position": 1,
"isReply": false,
"parentCommentId": null,
"commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgzuC3zzpRZkjc5Qzsd4AaABAg",
"commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"text": "We're so honored that the first ever YouTube video was filmed here!",
"author": "@SanDiegoZoo",
"authorChannelId": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
"authorIsChannelOwner": false,
"authorIsVerified": true,
"authorAvatarUrl": "https://yt3.ggpht.com/i8RqA9tYqbbnOi4mlnYEY7IR3kXAoDqQbM_5Sfzw7OjTubiGsOaTdlrIZmj-I0q0Vup68eqs=s88-c-k-c0x00ffffff-no-rj",
"likeCount": 4800000,
"replyCount": 986,
"publishedTimeText": "6 years ago",
"isHearted": true,
"isPinned": true,
"isEdited": false,
"publishedAt": "2020-11-07T13:07:07Z",
"scrapedAt": "2026-11-06T13:07:07Z"
},
{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoCommentCount": null,
"position": 2,
"isReply": false,
"parentCommentId": null,
"commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgwJopRYfCoqhRa13OF4AaABAg",
"commentId": "UgwJopRYfCoqhRa13OF4AaABAg",
"text": "This guys is the only person who has the rights to say \"first\" on youtube.",
"author": "@Jeff-th5ob",
"authorChannelId": "UCg8QP4eNX0uXUkLgpTSRmWw",
"authorIsChannelOwner": false,
"authorIsVerified": false,
"authorAvatarUrl": "https://yt3.ggpht.com/ytc/AIdro_m_xynaUD3u02-q0yYLbJX6TtiTSgckJDy3nIZWVaEhzBA=s88-c-k-c0x00ffffff-no-rj",
"likeCount": 420000,
"replyCount": 851,
"publishedTimeText": "5 years ago",
"isHearted": false,
"isPinned": false,
"isEdited": false,
"publishedAt": "2021-11-07T13:07:07Z",
"scrapedAt": "2026-11-06T13:07:07Z"
},
{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoCommentCount": null,
"position": 3,
"isReply": false,
"parentCommentId": null,
"commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=Ugxnp9ws0dexjE9L5UB4AaABAg",
"commentId": "Ugxnp9ws0dexjE9L5UB4AaABAg",
"text": "Hello",
"author": "@jawed",
"authorChannelId": "UC4QobU6STFB0P71PMvOGN5A",
"authorIsChannelOwner": true,
"authorIsVerified": true,
"authorAvatarUrl": "https://yt3.ggpht.com/uI3VE4PVqvCy0xnWLqMJnEzyBUm3T8VHOCp4ee-1RxdHqKXCdUE_qXYQnpf9AfuEoIPactVyDhM=s88-c-k-c0x00ffffff-no-rj",
"likeCount": 313000,
"replyCount": 995,
"publishedTimeText": "6 months ago",
"isHearted": true,
"isPinned": false,
"isEdited": false,
"publishedAt": "2026-05-10T13:07:07Z",
"scrapedAt": "2026-11-06T13:07:07Z"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14675/youtube+comments+api/37942/youtube+comments+export?videos=https://www.youtube.com/watch?v=jNQXAC9IVRw,https://www.youtube.com/watch?v=dQw4w9WgXcQ&maxCommentsPerVideo=50&sortBy=top&includeReplies=false&maxRepliesPerComment=20&maxComments=Optional' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 YouTube 评论 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
来自任何YouTube视频或短视频的评论和回复:文本、作者、点赞、回复、日期、置顶和创作者心形标记。按热门或最新、关键词过滤。无需API密钥,无配额
从任何YouTube视频或短视频的评论和回复:文本、作者、点赞、回复、日期、置顶和创作者心形标记。顶部或最新,关键词过滤。没有API密钥,没有配额
每次请求最多100个结果,具体取决于endpoint
每个请求从公共来源收集实时数据 相同的请求可以从缓存中服务长达6小时
列表参数接受多个用逗号分隔的值,例如:伦敦,巴黎
YouTube评论导出接口返回来自YouTube视频或短视频的评论和回复,包括文本、作者、点赞、回复、发布时间以及固定评论和创作者点赞的标记等详细信息
响应中的关键字段包括 `videoId` `text` `author` `likeCount` `replyCount` `commentId` 和 `commentUrl` 这些字段提供了每条评论及其上下文的基本信息
响应数据采用 JSON 格式结构,包含结果的 `count` 和 `items` 数组。每个项目表示一个评论或回复及其相关详细信息,便于解析和使用
该终端接受以下查询参数,均为可选:videos、maxCommentsPerVideo、sortBy、includeReplies、maxRepliesPerComment、keywords、publishedAfter、maxComments。videos:视频链接(观看、youtu.be、短视频、直播、嵌入)或11位视频ID。每行一个,数量不限。多个值:以逗号分隔。maxCommentsPerVideo:从每个视频收集的顶级评论(启用时回复也计入)。sortBy:与YouTube视频下的排序菜单相同。includeReplies:还收集每个评论的回复线程(标记为isReply=true并带有parentCommentId)。maxRepliesPerComment:仅在启用回复时使用。keywords:可选。保留包含这些词的评论
该端点提供有关评论文本、作者详细信息、点赞数量、回复数量以及指示评论是否已被置顶或是否有创作者心形标记的标志,提供了用户互动的全面视图
用户可以分析评论情感通过点赞和回复数量跟踪参与度,并通过检查API返回的评论文本和元数据来识别热门话题或趋势