Tool details
YouTube Comments Scraper
Export public YouTube video and Shorts comments with text, authors, likes, reply relationships and direct links. Explore input examples, fields and collection limits.
Turn a video’s comment section into a filterable dataset before reviewing the feedback. This tool collects public comments from video URLs, supports Top or Newest ordering, and can include replies. Each comment or reply becomes a record for your own classification, search or analysis.
Built by Arjun, the tool runs in your Apify account. It collects data; it does not automatically generate sentiment labels or comment summaries.
Choose the comment sample you need
- For a quick look at prominent discussions, choose Top comments and a small result limit.
- To follow recent feedback, choose Newest first and retain the collection timestamp.
- For conversation context, include replies and set a reply limit per top-level comment.
Start with a video URL and 20 comments
This input requests top-level comments only. Copy it into the Apify JSON editor and replace the URL with your target video or Short.
Use in the Apify JSON input editor. Check current pricing and your charge limit before running.
{
"startUrls": [
"https://www.youtube.com/watch?v=YE7VzlLtp-4"
],
"maxCommentsPerVideo": 20,
"sortBy": "top",
"includeReplies": false
}Complete input reference
| Parameter / type | Required / default | Meaning and limits |
|---|---|---|
startUrlsstring[] | {url: string}[] |
Required by schema["https://www.youtube.com/watch?v=YE7VzlLtp-4"]
| 1–20 video or Shorts URLs or 11-character IDs; {url: ...} entries also work. Duplicate video IDs are processed once. Live pages expose ordinary comments, not live chat. List size: 1 … 20 |
maxCommentsPerVideointeger |
Optional in schema100
| Combined parent-comment and reply limit per video, excluding status rows. 0 traverses available parent-comment pages in newest-first order; reply and spending caps still apply. Numeric range: 0 … 5000 |
sortBystring |
Optional in schema"top"
| top selects ranked comments; newest selects newest first. A maxCommentsPerVideo value of 0 automatically uses newest. top newest |
includeRepliesboolean |
Optional in schemafalse
| Expand replies. Saved replies share the per-video result limit with parent comments. |
maxRepliesPerThreadinteger |
Optional in schema10
| Save up to 1–500 replies per parent comment. Ignored when includeReplies is false. Numeric range: 1 … 500 |
Keep the text and a way back to the discussion
Illustrative data showing selected fields, not an actual result of the input above. Null does not mean zero.
{
"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"
}| Key fields | How to use them |
|---|---|
text, authorName |
Read the comment and the author name displayed by the source. |
likeCount, replyCount |
Review available engagement metrics. The reply count is not the number of replies collected in this run. |
isReply |
Separate replies from top-level comments. Keep the relationship fields from the full result when reconstructing conversations. |
publishedTimeText, scrapedAt |
The source’s time label and the collection timestamp. A label such as “2 days ago” is not an exact publication timestamp. |
videoTitle, commentUrl |
Retain video context and a direct link for checking the original comment. |
Explore records by result type
Each sample preserves the fields present in that record. Fields from other types or absent optional fields are not added. Real historical records and documentation examples are labelled separately; none are live data.
Parent comment
Original demonstration-run input
{
"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
}{
"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"
}Reply
Original demonstration-run input
{
"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
}{
"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 comment
Original demonstration-run input
{
"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
}{
"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"
}Image / animated-image comment
{
"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"
}
]
}Comments-disabled status
Original demonstration-run input
{
"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
}{
"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"
}Invalid-input status
Original demonstration-run input
{
"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
}{
"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"
}Complete output field reference
View all 46 field paths
| Field | Schema type | Meaning |
|---|---|---|
recordType | string | Separates content records from status records. Group by type before counting or analyzing rows.comment videoStatus |
status | string | Business outcome for this record type. Failure and no-result status records are not successful content records.invalidInput noComments commentsDisabled unavailable partial failed chargeLimitReached |
inputValue | string | Original input that produced a status record. |
errorCode | string | Machine-readable problem identifier. |
errorMessage | string | Problem explanation, not normal content. |
suggestion | string | Suggested next action. |
commentCount | integer | On search content records, the public video's comment count. On comment-tool status rows, the combined comments and replies saved in this run. |
parentCommentCount | integer | Parent comments saved in this run, reported on a status row. |
replyCommentCount | integer | Replies saved in this run, reported on a status row. |
truncated | boolean | Status-row flag indicating an incomplete collection; interpret together with status. |
sourceType | string | video or short, as identified from the input.video short |
videoId | string | YouTube video ID. |
videoUrl | string | Canonical video page URL. |
videoTitle | string | null | Video title. |
videoChannelId | string | null | ID of the channel that published the video. |
videoChannelName | string | null | Name of the channel that published the video. |
commentId | string | Unique comment or reply ID. |
commentUrl | string | Link back to the original comment. |
text | string | null | Original comment text. Image-only comments may contain an empty string; also inspect attachments. |
attachments | object[] | Images or animated images exposed by the source, present only when attached. Media files are not downloaded or hosted. |
attachments[].url | string | Original result or nested-object URL. Attachment URLs may expire. |
attachments[].width | integer | Attachment width in pixels. |
attachments[].height | integer | Attachment height in pixels. |
attachments[].format | string | Source image-format hint. A GIF-style animation may be served as animated WebP. |
publishedTimeText | string | null | Displayed time label, such as 3 years ago, not an exact timestamp. |
publishedAtEstimated | string | null | Estimated UTC time calculated from the relative label, not an exact publication timestamp supplied by YouTube. |
likeCount | integer | Likes supplied or normalized from the source, not an inferred audience size. |
likeCountText | string | Displayed likes-count label. |
replyCount | integer | Source-reported reply count, not the number of replies saved in this run. |
parentCommentId | string | null | Parent comment ID for a reply; null for a parent comment. |
replyDepth | integer | 0 for a parent comment, 1 for a reply. |
isReply | boolean | Whether the record is a reply. |
isPinned | boolean | Whether the comment is pinned. |
isHearted | boolean | Whether the comment has a creator-heart marker. |
isPaid | boolean | Whether the source marks the comment as paid. |
paidAmountText | string | null | Source-reported payment amount text; may be omitted or empty when unavailable. |
authorName | string | null | Public display name of the comment author. |
authorChannelId | string | null | Comment author's channel ID. |
authorChannelUrl | string | null | Comment author's channel URL. |
authorAvatarUrl | string | null | Comment author's avatar URL. |
authorIsVerified | boolean | Comment author's public verification marker. |
authorIsVideoOwner | boolean | Whether the author is the video's owning channel. |
authorIsMember | boolean | Channel-membership marker supplied by the source. |
authorBadges | string[] | Author badges supplied by the source. |
sortBy | string | Effective sort order for this run.top newest |
scrapedAt | string | Record collection time in UTC ISO 8601. |
Top comments are not the full comment history
Top ordering is useful for a ranked sample, not a random sample or a measure of every viewer’s opinion. With maxCommentsPerVideo: 0, the tool switches to newest-first ordering and follows the public top-level comment pages YouTube exposes. Reply caps, run budget and source availability still apply.
Private, deleted, held-for-review and otherwise unavailable comments are outside the collection scope. Disabled comments, unavailable videos or incomplete collection can produce status records in the Dataset. Status records are not comments; separate them before counting comments.
Common questions
Does a limit of 20 mean 20 top-level comments plus replies?
No. When replies are enabled, top-level comments and replies share the limit. The example disables replies, so it saves up to 20 top-level comments.
Does it include sentiment analysis?
No. The tool returns collected data. Sentiment classification, topic grouping and summaries are separate steps in your workflow, and you should review their results.
Why did a finished run return only a status record?
Read the status and run summary to distinguish disabled comments, no public comments, an unavailable video and a request failure. A finished run does not mean the entire comment history was collected.
For a walkthrough, read Export YouTube comments to CSV. Inspect a small result before increasing the limit or adding replies.
Browse other data tools or read the Apify quick start. Check current pricing and your run charge limit on Apify.
Parameters and fields reviewed 9 November 2026. An independently developed tool, not affiliated with YouTube.