made by arjun
← Back to use cases

Workflow guide

Turn YouTube comments into a review-ready worksheet

Turn 40 saved YouTube comments into a review CSV with matching parent text. Download the Python example and reproduce it locally without starting a new collection.

After publishing a video, a content team needs a comment sheet it can work through, not a raw file mixing replies, status records and repeated input links. This worked example starts with a saved historical sample and produces two deliverables: a comment-review worksheet and a separate collection-status sheet.

For: video creators, content teams and anyone sharing comment-review work. Start with: public video URLs. Deliver: 40 comments with original links and reply relationships, plus two separate collection-status records. The source is a developer demonstration run from October 20, 2026, not a customer project or live data.

Download the populated review worksheet (40 comments, CSV) · Download the collection-status sheet (2 records, CSV)

First, separate the 42 records

The original file contains 42 records: 40 comment rows and two videoStatus rows. The comments come from two videos: 19 parent comments and 21 replies. This is not “42 comments”, and 40 comment records do not establish 40 distinct viewers.

Deliverable Contents Who uses it
comments-review.csv 40 comment texts, video titles, original links, parent IDs, reply flags and collection timestamps. The content team or person handling replies, who reads each record and decides what happens next.
collection-status.csv One invalidInput and one commentsDisabled record, retaining the input, reason and suggestion. The person running collection, who checks inputs and comment availability without mixing them into audience feedback.

Start with a small set of your own videos

Open the YouTube comment tool details to review the fields and current run link. For a first run, use this starter configuration and replace the video URLs. It removes the invalid and comments-disabled inputs used in the historical demonstration, so it is not a verbatim copy of the original run input.

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

top prioritizes discussion ranked by the platform; it is not a random sample or a complete picture of audience sentiment. To inspect recent discussion, choose a supported alternative sort mode. Review current pricing and spending settings before running. Historical results are not guaranteed to be reproducible today.

Keep thread relationships, then add work columns

Separate comments and statuses using recordType. Deduplicate comments by commentId, not author or text, and retain videoId, parentCommentId and isReply. A short reply can then be read alongside the comment it addresses.

Original Actor fields Worksheet columns Why they matter
videoId / videoTitle video_id / video_title Identify the video each comment belongs to.
commentId / parentCommentId / isReply comment_id / parent_comment_id / is_reply Preserve IDs and thread relationships. Import IDs as text.
text / commentUrl comment_text / comment_url Retain the source-language text and a link to the evidence.
likeCount / scrapedAt like_count / collected_at Record the likes and collection time from that run, not as live values.
Added for your workflow, not Actor output review_topic / next_action / owner / review_status The first three columns are for the team to fill in. review_status starts as not_reviewed.

Not every question belongs in a support queue

One thread in this historical data contains the parent comment “still looks better than my renders” and the reply “What do you mean still?”. The reply has a question mark, but it addresses another viewer’s comment. Punctuation alone is not a reason to classify it as a product inquiry.

Group by video and parent comment, read the context, then fill in the topic, next action and owner. Keep the comment URL when a response is needed. Ordinary discussion can also be marked as needing no action. The downloaded worksheet does not prefill sentiment, customer value or response decisions; automated guesses are not presented as human review.

Send the two status records to the person responsible for collection. invalidInput calls for checking the input format. commentsDisabled means the source reported comments disabled in that run; it should not be counted as “nobody commented”. The original demonstration also used two URL formats for the same video to illustrate deduplication.

Use it for your own comment review

Replace the inputs with one or two of your videos, inspect the fields, then export and organize the results. The deliverable is a worksheet another person can pick up: every record has a source, context and a review status. A one-off review does not require a schedule or automated replies.

See full parameters, output and the Apify run link. To find videos by topic first, use the YouTube research workflow.

Generate the worksheet locally

Download and extract the example, then run this command from its directory. You only need Python 3: no token, network requests or Actor execution.

Download the Python example: script, historical JSON and bilingual instructions

python review_comments.py sample-output.json --out output

Use py on Windows or python3 on macOS / Linux if needed. This produces comments-review.csv with 40 comments, collection-status.csv with two statuses, and export-summary.json. Running it again overwrites these three output files; choose a new output directory once manual review has started.

The updated worksheet adds parent_comment_text and parent_in_export. It matches text from the same export by video and parent-comment ID, placing context beside each reply. If no match exists, the text stays blank and the flag is false; no missing data is invented. Both columns are blank for top-level comments. These and the review columns are added during preparation, not new Actor fields.

When importing the CSV into Excel or Google Sheets, set IDs to text and disable automatic conversion of text to numbers, dates or formulas. For your own JSON, run python review_comments.py my-comments.json --out my-review. The script deduplicates on videoId + commentId and keeps the first record. It is not intended to merge collection snapshots from different times.

View the code, bilingual instructions and sample provenance on GitHub. The example code and original documentation use the MIT License; third-party comment data is excluded.

Where this example comes from

These files are saved development-project samples. The accompanying record identifies run qln2pjpwCHunRPUKQ, build 0.1.13, dated October 20, 2026. On November 11, 2026, neither the Apify API nor the authenticated Console could find the run. This recheck covers local file consistency, record counts and the JSON-to-CSV conversion, not renewed verification of cloud execution or a fresh collection. Original text is unchanged, and no other run’s data was mixed in. Download the verification record and file hashes.

Download the matching original input · Download all original results · Download record counts and provenance