YouTube Comments Extractor avatar

YouTube Comments Extractor

Pricing

$1.00 / 1,000 comment extracteds

Go to Apify Store
YouTube Comments Extractor

YouTube Comments Extractor

Download YouTube comments and replies with author, likes and dates as JSON. Up to 500 comments per video. $1 per 1,000 comments.

Pricing

$1.00 / 1,000 comment extracteds

Rating

0.0

(0)

Developer

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Part of EchoEmpire Machine Foundry — machine-readable catalog and prices: foundry.echoempire.org/llms.txt · full catalog JSON

YouTube video URLs in, structured comments out.

What it does

Extracts comments from YouTube videos with yt-dlp (no browser, no AI). Each saved comment is one flat dataset record with author, text, like count, timestamp, and reply count. Up to 500 comments per video (maxComments, default 50). Records can include replies as well as top-level comments, in the order yt-dlp returns them. Requests go through Apify residential proxy when it is available to the run.

Input

{
"videoUrls": ["https://www.youtube.com/watch?v=VIDEO_ID"],
"maxComments": 100
}

videoUrls accepts watch, youtu.be, embed, or shorts links, or bare video IDs. If videoUrls is empty, the run fails with a clear message and nothing is charged. The run stops cleanly when your max charge per run is reached.

Output

One dataset record per comment (not one record per video):

{
"videoId": "VIDEO_ID",
"videoTitle": "Video title",
"videoUrl": "https://www.youtube.com/watch?v=VIDEO_ID",
"id": "UgxCOMMENT_ID",
"author": "@Username",
"text": "Great video!",
"likes": 42,
"publishedAt": 1759320000,
"publishedAtIso": "2025-10-01T12:00:00+00:00",
"replyCount": 3,
"status": "ok"
}
  • likes is the like count YouTube reports (YouTube may round it).
  • publishedAt is a Unix timestamp in seconds as reported by yt-dlp. YouTube shows relative times ("2 days ago"), so this value is approximate. publishedAtIso is the same time in ISO 8601 UTC.
  • text is truncated to 5,000 characters. Comments with empty text are skipped.

A video that fails or has no retrievable comments produces one record {"videoId": "...", "status": "error", "error": "..."} ({"input": "...", "status": "error", ...} for an unparseable URL). The key-value store record run-summary holds requested, videosSucceeded, videosFailed, billable_units, ppe_event, and maxComments.

Use cases

  • Sentiment analysis
  • Community engagement monitoring
  • Content feedback collection
  • Social listening pipelines

Pricing

$0.001 per comment extracted ($1 per 1,000 comments)

Charged once per status: "ok" comment record saved. Error records (failed video, disabled or no retrievable comments, bad URL) are not charged.

Limitations

  • Only comments YouTube shows publicly can be returned; deleted or hidden comments are not accessible
  • Maximum 500 comments per video
  • YouTube can rate-limit or bot-wall requests; affected videos return error records

Failure behavior

Each video is processed independently on a fresh residential IP. A failed video is retried once on a new IP; if it still fails it produces an error record and the batch continues.