made by arjun

工具详情

YouTube 评论采集工具

导出 YouTube 视频与 Shorts 的公开评论和回复,保留正文、作者、点赞、回复关系与评论链接。查看输入示例、字段说明和采集限制。

在 Apify 查看价格与运行 由 Arjun 开发与维护

想整理视频下的反馈,可以先把评论变成可筛选的表格。这个工具按视频链接采集公开评论,可选择热门或最新排序,也可展开回复。每条评论或回复保存为一条数据,供你后续归类、检索或分析。

工具由 Arjun 开发,在你的 Apify 账户中运行。它负责采集,不会自动生成情绪判断或评论摘要。

先确定你需要哪种评论样本

  • 想快速浏览讨论重点:选择热门评论,先取少量结果。
  • 想跟进近期反馈:选择最新排序,并记录采集时间。
  • 需要看清对话上下文:启用回复,同时设置每条顶层评论的回复上限。

输入视频链接,先采集 20 条评论

下面的输入只请求顶层评论,不展开回复。复制到 Apify JSON 编辑器后,可以把链接替换为你的目标视频或 Shorts。

输入示例下载输入

用于 Apify 的 JSON 输入编辑器。运行前确认当前价格和费用上限。

{
    "startUrls": [
        "https://www.youtube.com/watch?v=YE7VzlLtp-4"
    ],
    "maxCommentsPerVideo": 20,
    "sortBy": "top",
    "includeReplies": false
}

完整输入参数

按 Apify 构建 0.1.13 核对,日期 2026-11-09。默认值来自线上 Schema,不是上方示例设置。 下载输入 Schema

参数与类型必填与默认值含义与限制
startUrlsstring[] | {url: string}[] Schema 必填
["https://www.youtube.com/watch?v=YE7VzlLtp-4"]
1–20 个视频或 Shorts 链接、11 位视频 ID;也接受 {url: ...} 对象。相同视频 ID 去重;直播页面仅采集普通评论,不包含直播聊天。 列表数量:1 … 20
maxCommentsPerVideointeger Schema 可选
100
每个视频保存的顶层评论与回复合计上限;状态行不计入。0 改用最新排序遍历可获取的顶层评论页,回复上限和费用上限仍有效。 数值范围:0 … 5000
sortBystring Schema 可选
"top"
top 为热门排序,newest 为最新排序;maxCommentsPerVideo 为 0 时自动使用 newest。
top newest
includeRepliesboolean Schema 可选
false
是否展开回复。开启后,回复也占用每个视频的评论总量上限。
maxRepliesPerThreadinteger Schema 可选
10
每条顶层评论最多保存 1–500 条回复。includeReplies 为 false 时忽略。 数值范围:1 … 500

“可选”只表示 Schema 没有单独要求该字段;输入之间的条件和运行限制仍然适用。

保留正文,也保留回到原讨论的线索

关键输出示例

以下为示意数据,仅展示关键字段,不是上方输入的实际运行结果。空值不等于零。

{
    "videoTitle": "Example tutorial",
    "authorName": "@example_viewer",
    "text": "Could you show how to export this to CSV?",
    "likeCount": 32,
    "replyCount": 4,
    "publishedTimeText": "2 days ago",
    "isReply": false,
    "commentUrl": "https://www.youtube.com/watch?v=EXAMPLE1234&lc=EXAMPLE_COMMENT",
    "scrapedAt": "2026-11-09T08:00:00Z"
}
关键字段 如何使用
text、authorName 阅读评论正文,识别页面展示的作者名称。
likeCount、replyCount 查看来源提供的互动指标;回复数不等于本次已采集的回复条数。
isReply 区分顶层评论和回复。分析完整对话时,还应保留完整结果中的关联字段。
publishedTimeText、scrapedAt 分别是页面时间标签与采集时间。“2 days ago”不是精确发布时间。
videoTitle、commentUrl 保留视频上下文与评论入口,方便核对原文。

按结果类型查看完整记录

保留样例记录本身的全部字段,不把其他类型或未出现的可选字段补进来。真实记录、历史样例与文档示意分别标注;它们都不是实时数据。

顶层评论

2026-10-20 云端演示运行中的一条完整记录,构建 0.1.13。下方保留原始运行输入,其中重复与无效链接用于展示去重和状态处理。不是上方入门示例的结果。

原始演示运行输入
原始演示运行输入
下载 JSON
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=YE7VzlLtp-4"
    },
    {
      "url": "https://youtu.be/YE7VzlLtp-4"
    },
    {
      "url": "https://www.youtube.com/shorts/cjSKS1D9Kow"
    },
    {
      "url": "https://www.youtube.com/watch?v=XqZsoesa55w"
    },
    {
      "url": "https://example.com/watch?v=YE7VzlLtp-4"
    }
  ],
  "maxCommentsPerVideo": 20,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerThread": 10
}
记录 JSON
下载 JSON
{
  "recordType": "comment",
  "sourceType": "video",
  "videoId": "YE7VzlLtp-4",
  "videoUrl": "https://www.youtube.com/watch?v=YE7VzlLtp-4",
  "videoTitle": "Big Buck Bunny",
  "videoChannelId": "UCSMOQeBJ2RAnuFungnQOxLg",
  "videoChannelName": "Blender",
  "commentId": "UgyvM3zp3TKN8kEO4Yd4AaABAg",
  "commentUrl": "https://www.youtube.com/watch?v=YE7VzlLtp-4&lc=UgyvM3zp3TKN8kEO4Yd4AaABAg",
  "text": "still looks better than my renders",
  "publishedTimeText": "3 years ago",
  "publishedAtEstimated": "2023-10-20T03:58:38.914007Z",
  "likeCount": 518,
  "likeCountText": "518",
  "replyCount": 7,
  "parentCommentId": null,
  "replyDepth": 0,
  "isReply": false,
  "isPinned": false,
  "isHearted": false,
  "isPaid": false,
  "authorName": "@5MadMovieMakers",
  "authorChannelId": "UCLkZVEXz_qObWr7hAEbS_pQ",
  "authorChannelUrl": "https://www.youtube.com/@5MadMovieMakers",
  "authorAvatarUrl": "https://yt3.ggpht.com/ytc/AIdro_m_HacbRsFWToHwnxwoZRFsLPGdHSq0GCQGcsTkUWV1FXc=s88-c-k-c0x00ffffff-no-rj",
  "authorIsVerified": true,
  "authorIsVideoOwner": false,
  "authorIsMember": false,
  "authorBadges": [
    "Verified"
  ],
  "sortBy": "top",
  "scrapedAt": "2026-10-20T03:58:38.914007Z"
}
回复

2026-10-20 云端演示运行中的一条完整记录,构建 0.1.13。下方保留原始运行输入,其中重复与无效链接用于展示去重和状态处理。不是上方入门示例的结果。

原始演示运行输入
原始演示运行输入
下载 JSON
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=YE7VzlLtp-4"
    },
    {
      "url": "https://youtu.be/YE7VzlLtp-4"
    },
    {
      "url": "https://www.youtube.com/shorts/cjSKS1D9Kow"
    },
    {
      "url": "https://www.youtube.com/watch?v=XqZsoesa55w"
    },
    {
      "url": "https://example.com/watch?v=YE7VzlLtp-4"
    }
  ],
  "maxCommentsPerVideo": 20,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerThread": 10
}
记录 JSON
下载 JSON
{
  "recordType": "comment",
  "sourceType": "video",
  "videoId": "YE7VzlLtp-4",
  "videoUrl": "https://www.youtube.com/watch?v=YE7VzlLtp-4",
  "videoTitle": "Big Buck Bunny",
  "videoChannelId": "UCSMOQeBJ2RAnuFungnQOxLg",
  "videoChannelName": "Blender",
  "commentId": "UgyvM3zp3TKN8kEO4Yd4AaABAg.9pZANjNy0eI9s3KGXqaM86",
  "commentUrl": "https://www.youtube.com/watch?v=YE7VzlLtp-4&lc=UgyvM3zp3TKN8kEO4Yd4AaABAg.9pZANjNy0eI9s3KGXqaM86",
  "text": "hi",
  "publishedTimeText": "3 years ago",
  "publishedAtEstimated": "2023-10-20T03:58:39.253700Z",
  "likeCount": 7,
  "likeCountText": "7",
  "replyCount": 0,
  "parentCommentId": "UgyvM3zp3TKN8kEO4Yd4AaABAg",
  "replyDepth": 1,
  "isReply": true,
  "isPinned": false,
  "isHearted": false,
  "isPaid": false,
  "authorName": "@FonziYT",
  "authorChannelId": "UCaPAI6WqKfRteQZixfNouUQ",
  "authorChannelUrl": "https://www.youtube.com/@FonziYT",
  "authorAvatarUrl": "https://yt3.ggpht.com/XkKR24myozqwB2Wj3I4ZWNOyH39anXjxw5IQCn2JrsSKiGFBtA54V2jhnloLYf_M9krGrBWYLw=s88-c-k-c0x00ffffff-no-rj",
  "authorIsVerified": false,
  "authorIsVideoOwner": false,
  "authorIsMember": false,
  "authorBadges": [],
  "sortBy": "top",
  "scrapedAt": "2026-10-20T03:58:39.253700Z"
}
Shorts 评论

2026-10-20 云端演示运行中的一条完整记录,构建 0.1.13。下方保留原始运行输入,其中重复与无效链接用于展示去重和状态处理。不是上方入门示例的结果。

原始演示运行输入
原始演示运行输入
下载 JSON
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=YE7VzlLtp-4"
    },
    {
      "url": "https://youtu.be/YE7VzlLtp-4"
    },
    {
      "url": "https://www.youtube.com/shorts/cjSKS1D9Kow"
    },
    {
      "url": "https://www.youtube.com/watch?v=XqZsoesa55w"
    },
    {
      "url": "https://example.com/watch?v=YE7VzlLtp-4"
    }
  ],
  "maxCommentsPerVideo": 20,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerThread": 10
}
记录 JSON
下载 JSON
{
  "recordType": "comment",
  "sourceType": "short",
  "videoId": "cjSKS1D9Kow",
  "videoUrl": "https://www.youtube.com/watch?v=cjSKS1D9Kow",
  "videoTitle": "How to learn AI for FREE, including prompts, chatbots, automations, coding, and agents:",
  "videoChannelId": "UCiGWNa6QK6CiKPvv5-YPv8g",
  "videoChannelName": "Sabrina Ramonov 🍄",
  "commentId": "UgxGGjnWNMgVP1KmZnZ4AaABAg",
  "commentUrl": "https://www.youtube.com/watch?v=cjSKS1D9Kow&lc=UgxGGjnWNMgVP1KmZnZ4AaABAg",
  "text": "I don’t want you to take this the wrong way but…I think I love you. You’ve helped me so much. Others like me too. Thank you.",
  "publishedTimeText": "7 months ago",
  "publishedAtEstimated": "2026-03-20T03:58:39.689787Z",
  "likeCount": 46,
  "likeCountText": "46",
  "replyCount": 5,
  "parentCommentId": null,
  "replyDepth": 0,
  "isReply": false,
  "isPinned": false,
  "isHearted": false,
  "isPaid": false,
  "authorName": "@NinaMcAlpin",
  "authorChannelId": "UCT8ZKe7QLuKLjEJkMee7o9g",
  "authorChannelUrl": "https://www.youtube.com/@NinaMcAlpin",
  "authorAvatarUrl": "https://yt3.ggpht.com/ytc/AIdro_l4B4Et88vx1Nh-zoDUEExgQBXEzbfzBCApObVOvXyroAdDDlnOOH5OFkBTiMvJuqH4ng=s88-c-k-c0x00ffffff-no-rj",
  "authorIsVerified": false,
  "authorIsVideoOwner": false,
  "authorIsMember": false,
  "authorBadges": [],
  "sortBy": "top",
  "scrapedAt": "2026-10-20T03:58:39.689787Z"
}
图片/动图评论

2026-10-20 云端演示记录,构建 0.1.13。来自单独的动图评论运行,未附原始输入;不是上方入门示例的结果。附件链接可能过期。

记录 JSON
下载 JSON
{
  "recordType": "comment",
  "sourceType": "video",
  "videoId": "9bZkp7q19f0",
  "videoUrl": "https://www.youtube.com/watch?v=9bZkp7q19f0",
  "videoTitle": "PSY - GANGNAM STYLE(강남스타일) M/V",
  "videoChannelId": "UCrDkAvwZum-UTjHmzDI2iIw",
  "videoChannelName": "officialpsy",
  "commentId": "UgyugAYtlMUjAmOy_1Z4AaABAg",
  "commentUrl": "https://www.youtube.com/watch?v=9bZkp7q19f0&lc=UgyugAYtlMUjAmOy_1Z4AaABAg",
  "text": "",
  "publishedTimeText": "5 days ago",
  "publishedAtEstimated": "2026-10-15T03:59:46.273942Z",
  "likeCount": 7,
  "likeCountText": "7",
  "replyCount": 1,
  "parentCommentId": null,
  "replyDepth": 0,
  "isReply": false,
  "isPinned": false,
  "isHearted": false,
  "isPaid": false,
  "authorName": "@Boss_Baragoz",
  "authorChannelId": "UCsePG0O1MoTk7hL-U_2loFw",
  "authorChannelUrl": "https://www.youtube.com/@Boss_Baragoz",
  "authorAvatarUrl": "https://yt3.ggpht.com/hLOTUt0DBqEgQYhXdQQONVPhsBpdEnNvyOTX_SYyobn3GYDmBU1ga90XmMfL_6Qc7stlYKgbG54=s88-c-k-c0x00ffffff-no-rj",
  "authorIsVerified": false,
  "authorIsVideoOwner": false,
  "authorIsMember": false,
  "authorBadges": [],
  "sortBy": "newest",
  "scrapedAt": "2026-10-20T03:59:46.273942Z",
  "attachments": [
    {
      "url": "https://i.ytimg.com/c_exp/UgyugAYtlMUjAmOy_1Z4AaABAg/IMSstM98j7Zgs_webp_animated_original_aspect_ratio.webp?sqp=CKy029YGGOCoAQ==&rs=AOn4CLCP2jfIurHAspj2xiwe9UkNxOJk9g",
      "width": 498,
      "height": 280,
      "format": "IMAGE_FORMAT_ANIMATED_WEBP"
    }
  ]
}
评论关闭状态

2026-10-20 云端演示运行中的一条完整记录,构建 0.1.13。下方保留原始运行输入,其中重复与无效链接用于展示去重和状态处理。不是上方入门示例的结果。

原始演示运行输入
原始演示运行输入
下载 JSON
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=YE7VzlLtp-4"
    },
    {
      "url": "https://youtu.be/YE7VzlLtp-4"
    },
    {
      "url": "https://www.youtube.com/shorts/cjSKS1D9Kow"
    },
    {
      "url": "https://www.youtube.com/watch?v=XqZsoesa55w"
    },
    {
      "url": "https://example.com/watch?v=YE7VzlLtp-4"
    }
  ],
  "maxCommentsPerVideo": 20,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerThread": 10
}
记录 JSON
下载 JSON
{
  "recordType": "videoStatus",
  "status": "commentsDisabled",
  "inputValue": "https://www.youtube.com/watch?v=XqZsoesa55w",
  "commentCount": 0,
  "parentCommentCount": 0,
  "replyCommentCount": 0,
  "truncated": false,
  "errorCode": "COMMENTS_DISABLED",
  "errorMessage": "Comments are turned off. Learn more",
  "suggestion": "Use another public video with comments enabled.",
  "scrapedAt": "2026-10-20T03:58:37.587866Z",
  "sourceType": "video",
  "videoId": "XqZsoesa55w",
  "videoUrl": "https://www.youtube.com/watch?v=XqZsoesa55w",
  "sortBy": "top"
}
无效输入状态

2026-10-20 云端演示运行中的一条完整记录,构建 0.1.13。下方保留原始运行输入,其中重复与无效链接用于展示去重和状态处理。不是上方入门示例的结果。

原始演示运行输入
原始演示运行输入
下载 JSON
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=YE7VzlLtp-4"
    },
    {
      "url": "https://youtu.be/YE7VzlLtp-4"
    },
    {
      "url": "https://www.youtube.com/shorts/cjSKS1D9Kow"
    },
    {
      "url": "https://www.youtube.com/watch?v=XqZsoesa55w"
    },
    {
      "url": "https://example.com/watch?v=YE7VzlLtp-4"
    }
  ],
  "maxCommentsPerVideo": 20,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerThread": 10
}
记录 JSON
下载 JSON
{
  "recordType": "videoStatus",
  "status": "invalidInput",
  "inputValue": "https://example.com/watch?v=YE7VzlLtp-4",
  "commentCount": 0,
  "parentCommentCount": 0,
  "replyCommentCount": 0,
  "truncated": false,
  "errorCode": "INVALID_INPUT",
  "errorMessage": "This input is not a supported YouTube video or Shorts URL or video ID.",
  "suggestion": "Use a public YouTube video URL, Shorts URL, or an 11-character video ID.",
  "scrapedAt": "2026-10-20T03:58:36.490540Z"
}

完整输出字段参考

当前核对构建:0.1.13;核对日期:2026-11-09。表格涵盖成功与状态记录,并展开已定义的嵌套字段。不同类型不会同时返回所有字段。

保留实际的 null、空字符串、空数组或缺省字段。Schema 类型说明不是可用性保证,也不能把缺失值统一改成 0。

查看全部 46 个字段路径
字段Schema 类型含义
recordTypestring区分内容记录与状态记录。先按类型分组,再统计或分析。
comment videoStatus
statusstring该记录的业务状态;结合记录类型阅读,不能把失败或无结果状态当作成功数据。
invalidInput noComments commentsDisabled unavailable partial failed chargeLimitReached
inputValuestring产生状态记录的原始输入。
errorCodestring机器可读的问题标识。
errorMessagestring问题说明,不代表正常内容。
suggestionstring可采取的后续操作提示。
commentCountinteger搜索内容记录中为公开视频评论数;评论工具的状态行中为本次已保存的评论与回复总数。
parentCommentCountinteger状态行中本次已保存的顶层评论数量。
replyCommentCountinteger状态行中本次已保存的回复数量。
truncatedboolean状态行标记本次采集是否未完整结束;需结合 status 阅读。
sourceTypestringvideo 或 short,表示输入识别出的来源类型。
video short
videoIdstringYouTube 视频 ID。
videoUrlstring规范的视频页面链接。
videoTitlestring | null视频标题。
videoChannelIdstring | null发布视频的频道 ID。
videoChannelNamestring | null发布视频的频道名称。
commentIdstring评论或回复的唯一 ID。
commentUrlstring返回原始评论的链接。
textstring | null原始评论正文。纯图片评论可能是空字符串,应同时查看 attachments。
attachmentsobject[]来源提供的图片或动图附件;仅在存在附件时出现,不下载或托管媒体。
attachments[].urlstring结果或嵌套对象的原始链接;附件链接可能过期。
attachments[].widthinteger附件宽度,单位为像素。
attachments[].heightinteger附件高度,单位为像素。
attachments[].formatstring来源的图片格式标记;GIF 风格动图可能实际为 animated WebP。
publishedTimeTextstring | null来源显示的时间标签,例如 3 years ago;不是精确时间戳。
publishedAtEstimatedstring | null根据相对时间标签计算的估计 UTC 时间,不是 YouTube 提供的精确发布时间。
likeCountinteger来源提供或规范化的点赞数;不是推算的受众规模。
likeCountTextstring来源显示的点赞计数文本。
replyCountinteger来源显示的回复数,不等于本次保存的回复条数。
parentCommentIdstring | null回复所属的顶层评论 ID;顶层评论为 null。
replyDepthinteger顶层评论为 0,回复为 1。
isReplyboolean是否为回复。
isPinnedboolean是否被置顶。
isHeartedboolean是否获得创作者爱心标记。
isPaidboolean来源是否将该评论标记为付费评论。
paidAmountTextstring | null来源提供的付费金额文本;没有时可能省略或为空。
authorNamestring | null评论作者的公开显示名称。
authorChannelIdstring | null评论作者的频道 ID。
authorChannelUrlstring | null评论作者的频道主页链接。
authorAvatarUrlstring | null评论作者头像链接。
authorIsVerifiedboolean评论作者的公开认证标记。
authorIsVideoOwnerboolean作者是否为视频所属频道。
authorIsMemberboolean来源提供的频道会员标记。
authorBadgesstring[]来源提供的作者标记列表。
sortBystring本次采用的排序方式。
top newest
scrapedAtstring该条记录的采集时间,使用 UTC ISO 8601。

下载输出 Schema 查看 Apify 当前文档

热门评论不是完整评论历史

热门排序适合取样,不应当作随机样本或全部观众的意见。设置 maxCommentsPerVideo: 0 时,工具会改用最新排序,继续获取 YouTube 提供的公开顶层评论页;回复上限、运行预算和来源可用性仍然生效。

私密、已删除、待审核或来源未提供的评论不在采集承诺内。评论关闭、视频不可用或运行未完成时,Dataset 可能包含状态记录。状态记录不是评论,统计评论数量前应先区分。

常见问题

20 条的上限,是 20 条顶层评论再加回复吗?

不是。开启回复后,顶层评论与回复合计受这个上限约束。示例关闭了回复,所以最多保存 20 条顶层评论。

能直接做情绪分析吗?

这个工具返回采集数据。情绪分类、主题归纳或摘要需要你在后续流程中完成,并自行检查分析结果。

为什么运行结束了,结果却只有状态记录?

先查看状态说明和运行摘要,区分评论关闭、无公开评论、视频不可用与请求失败。不能把运行结束理解为目标视频的全部评论都已采集。

第一次操作可阅读 YouTube 评论导出 CSV 指南。先检查结果,再决定是否扩大数量或启用回复。

浏览其他数据工具,或 查看 Apify 入门指南。当前价格与运行费用上限请在 Apify 确认。

参数与字段核对:2026 年 11 月 9 日。独立开发工具,与 YouTube 无官方关联。