made by arjun
← Browse all Actors

Practical guide

Export YouTube comments to CSV

Export YouTube comments to CSV with source links, timestamps and reply context. Download a 40-comment historical worksheet and run the Python example locally.

Inputs reviewed November 9, 2026 · Output excerpt from October 20, 2026

A spreadsheet is easier to work with than repeatedly scrolling through a video’s comments. This guide uses YouTube Comments Scraper to collect a small set of comments from one video and export them to CSV. The Actor returns comments; it does not classify sentiment or summarize opinions.

You need: a public video URL and your own Apify account. You get: a comment table for Excel or Google Sheets, with text, source links and collection times. Preview the deliverable with the 40-comment historical worksheet and conversion script, without running an Actor.

Start with one video

Open the Actor in your Apify account, switch to JSON input, and enter this configuration. The example uses Blender’s Big Buck Bunny. You can replace it with the public video you want to examine.

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

maxCommentsPerVideo caps comment records per video; it does not guarantee 20 results. Here, top requests comments ranked highly by the platform. Use newest if you are interested in recent feedback. Neither ordering produces a random sample.

includeReplies: false leaves thread replies out. When replies are enabled, both top-level comments and replies count toward the comment limit. Keeping replies off makes the first output easier to inspect.

Check Pricing and set a maximum charge limit before starting. A result limit is not a charge limit. Avoid requesting all available comments with 0 on your first run. See the Apify quick start for the full sequence.

What a real record looks like

This excerpt comes from the historical JSON available on this site, with field values unchanged. The full file contains 40 comments and two status records; it is not a new result from the single-video starter input above. The original cloud run could not be found during the November 11, 2026 recheck. This is a saved sample, not current data. See provenance and verification limits.

{
  "recordType": "comment",
  "videoId": "YE7VzlLtp-4",
  "commentId": "UgyvM3zp3TKN8kEO4Yd4AaABAg",
  "text": "still looks better than my renders",
  "likeCount": 518,
  "isReply": false,
  "commentUrl": "https://www.youtube.com/watch?v=YE7VzlLtp-4&lc=UgyvM3zp3TKN8kEO4Yd4AaABAg",
  "scrapedAt": "2026-10-20T03:58:38.914007Z"
}

The example illustrates the fields, not the video’s current comment count or its audience’s overall opinion. Running the same input today may return different comments and counts.

Separate comment rows from status rows

Field or record How to use it
recordType: comment An actual comment record for further analysis.
recordType: videoStatus A processing outcome, such as disabled comments, an unavailable video, or partial failure. Do not count it as a comment.
commentId / commentUrl Keep the identifier and source link for deduplication and checking the original.
publishedAtEstimated Estimated from the relative age displayed by YouTube, not an exact publication timestamp supplied by the platform.
scrapedAt The collection time. Keep it when comparing runs.

If the run finishes without comments, check videoStatus and the log. Disabled comments, an unavailable link, and a video with no comments are different situations. The Actor collects accessible public comments, not deleted, hidden, or unauthorized content, and not live-chat messages.

Export a useful spreadsheet

  1. Inspect the comments in Output and confirm that videoId matches your target.
  2. Open the dataset’s Export dialog and choose CSV. Start with recordType, videoId, commentId, text, likeCount, isReply, commentUrl, and scrapedAt.
  3. In your spreadsheet, filter for recordType = comment. Keep status rows separately rather than treating them as empty comments.
  4. Label questions, suggestions, or other themes relevant to your research. If you add a classification model, review its output separately.

Twenty top comments are useful for checking the tool and finding leads, not for representing the entire audience. When comparing videos, keep the sort order, collection window, and sample size as consistent as possible, and acknowledge the remaining platform-ranking bias.

Hand the export to someone for review

A direct CSV export is enough to inspect the fields. For a shared review, use the comment worksheet example: separate collection statuses, put the parent comment beside each reply, then add a topic, next action and owner. The example script converts existing JSON; it does not start a paid collection run.

Still choosing videos? Start with the topic-to-video research workflow. To adjust collection settings, see the complete input and output reference.

Open the comment Actor on Apify ↗

I build this paid Actor. This is a regular product link; current charges are shown on Apify and billed to your account.

Fields and historical sample: Actor README. Export instructions: Apify Dataset documentation.

Related tool details