made by arjun

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.

View pricing and run on Apify Built and maintained by Arjun

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.

Input exampleDownload input

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

Checked against Apify build 0.1.13 on 2026-11-09. Defaults come from the live schema, not the starter example. Download input schema

Parameter / typeRequired / defaultMeaning 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 schema
100
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 schema
false
Expand replies. Saved replies share the per-video result limit with parent comments.
maxRepliesPerThreadinteger Optional in schema
10
Save up to 1–500 replies per parent comment. Ignored when includeReplies is false. Numeric range: 1 … 500

“Optional” means the schema does not require that field individually. Conditional input requirements and runtime limits still apply.

Keep the text and a way back to the discussion

Key output example

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

One complete record from the cloud demonstration run on 20 October 2026, build 0.1.13. The original input below includes duplicate and invalid URLs to demonstrate deduplication and status handling. Not a result of the starter input.

Original demonstration-run input
Original demonstration-run input
Download 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
}
Record JSON
Download 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"
}
Reply

One complete record from the cloud demonstration run on 20 October 2026, build 0.1.13. The original input below includes duplicate and invalid URLs to demonstrate deduplication and status handling. Not a result of the starter input.

Original demonstration-run input
Original demonstration-run input
Download 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
}
Record JSON
Download 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 comment

One complete record from the cloud demonstration run on 20 October 2026, build 0.1.13. The original input below includes duplicate and invalid URLs to demonstrate deduplication and status handling. Not a result of the starter input.

Original demonstration-run input
Original demonstration-run input
Download 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
}
Record JSON
Download 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"
}
Image / animated-image comment

Cloud demonstration record from 20 October 2026, build 0.1.13. From a separate image-comment run; its original input is not included. Not a result of the starter input. Attachment URLs may expire.

Record JSON
Download 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"
    }
  ]
}
Comments-disabled status

One complete record from the cloud demonstration run on 20 October 2026, build 0.1.13. The original input below includes duplicate and invalid URLs to demonstrate deduplication and status handling. Not a result of the starter input.

Original demonstration-run input
Original demonstration-run input
Download 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
}
Record JSON
Download 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"
}
Invalid-input status

One complete record from the cloud demonstration run on 20 October 2026, build 0.1.13. The original input below includes duplicate and invalid URLs to demonstrate deduplication and status handling. Not a result of the starter input.

Original demonstration-run input
Original demonstration-run input
Download 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
}
Record JSON
Download 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"
}

Complete output field reference

Current reference: build 0.1.13, checked 2026-11-09. The table covers content and status records and expands defined nested fields. Different record types do not return every field at once.

Preserve actual nulls, empty strings, empty arrays and omitted fields. Schema types do not guarantee availability; missing values should not all become zero.

View all 46 field paths
FieldSchema typeMeaning
recordTypestringSeparates content records from status records. Group by type before counting or analyzing rows.
comment videoStatus
statusstringBusiness outcome for this record type. Failure and no-result status records are not successful content records.
invalidInput noComments commentsDisabled unavailable partial failed chargeLimitReached
inputValuestringOriginal input that produced a status record.
errorCodestringMachine-readable problem identifier.
errorMessagestringProblem explanation, not normal content.
suggestionstringSuggested next action.
commentCountintegerOn search content records, the public video's comment count. On comment-tool status rows, the combined comments and replies saved in this run.
parentCommentCountintegerParent comments saved in this run, reported on a status row.
replyCommentCountintegerReplies saved in this run, reported on a status row.
truncatedbooleanStatus-row flag indicating an incomplete collection; interpret together with status.
sourceTypestringvideo or short, as identified from the input.
video short
videoIdstringYouTube video ID.
videoUrlstringCanonical video page URL.
videoTitlestring | nullVideo title.
videoChannelIdstring | nullID of the channel that published the video.
videoChannelNamestring | nullName of the channel that published the video.
commentIdstringUnique comment or reply ID.
commentUrlstringLink back to the original comment.
textstring | nullOriginal comment text. Image-only comments may contain an empty string; also inspect attachments.
attachmentsobject[]Images or animated images exposed by the source, present only when attached. Media files are not downloaded or hosted.
attachments[].urlstringOriginal result or nested-object URL. Attachment URLs may expire.
attachments[].widthintegerAttachment width in pixels.
attachments[].heightintegerAttachment height in pixels.
attachments[].formatstringSource image-format hint. A GIF-style animation may be served as animated WebP.
publishedTimeTextstring | nullDisplayed time label, such as 3 years ago, not an exact timestamp.
publishedAtEstimatedstring | nullEstimated UTC time calculated from the relative label, not an exact publication timestamp supplied by YouTube.
likeCountintegerLikes supplied or normalized from the source, not an inferred audience size.
likeCountTextstringDisplayed likes-count label.
replyCountintegerSource-reported reply count, not the number of replies saved in this run.
parentCommentIdstring | nullParent comment ID for a reply; null for a parent comment.
replyDepthinteger0 for a parent comment, 1 for a reply.
isReplybooleanWhether the record is a reply.
isPinnedbooleanWhether the comment is pinned.
isHeartedbooleanWhether the comment has a creator-heart marker.
isPaidbooleanWhether the source marks the comment as paid.
paidAmountTextstring | nullSource-reported payment amount text; may be omitted or empty when unavailable.
authorNamestring | nullPublic display name of the comment author.
authorChannelIdstring | nullComment author's channel ID.
authorChannelUrlstring | nullComment author's channel URL.
authorAvatarUrlstring | nullComment author's avatar URL.
authorIsVerifiedbooleanComment author's public verification marker.
authorIsVideoOwnerbooleanWhether the author is the video's owning channel.
authorIsMemberbooleanChannel-membership marker supplied by the source.
authorBadgesstring[]Author badges supplied by the source.
sortBystringEffective sort order for this run.
top newest
scrapedAtstringRecord collection time in UTC ISO 8601.

Download output schema View current documentation on Apify

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.