YouTube Comments Scraper: Replies & CSV Export avatar

YouTube Comments Scraper: Replies & CSV Export

Pricing

from $0.56 / 1,000 stored comments or reply

Go to Apify Store
YouTube Comments Scraper: Replies & CSV Export

YouTube Comments Scraper: Replies & CSV Export

Export public YouTube comments and replies to JSON, CSV or Excel. Choose Top or Newest order and set a total row limit. Each reply keeps its parent comment ID. No YouTube login or API key needed.

Pricing

from $0.56 / 1,000 stored comments or reply

Rating

0.0

(0)

Developer

Cliqto Media

Cliqto Media

Maintained by Community

Actor stats

1

Bookmarked

3

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

YouTube Comments Scraper gets public comments and replies from YouTube videos. Add video URLs or IDs, choose Top or Newest order, and export one row for each saved comment or reply as JSON, CSV, or Excel. No YouTube login or API key is needed.

The price is $0.05 per start + $0.80 per 1,000 saved rows on the Free plan (less on paid plans, see Pricing). Replies count as rows too. A video with comments turned off or no visible comments can return an empty table. A limit or source failure can leave a partial result. Open Run summary to check what happened.

YouTube Comments Scraper: public comments, optional replies, IDs and export

Run it now: open the prefilled input form and get YouTube comments in seconds, no coding

Independent tool: This Actor is not made, approved, or sponsored by YouTube or Google.

Table of contents

What it does

Get a current public sample of comments from up to 50 videos in one run. Supported input forms include watch URLs, youtu.be, Shorts URLs, live video URLs, embed URLs, YouTube Music video links, and 11-character video IDs. Pasted links without https://, with http://, with spaces around them, or with a #t= timestamp also work. Live chat is outside this product.

Top-level comments load first for each video. Optional replies load next and keep their parent comment ID. To leave room for replies, set maxTopLevelCommentsPerVideo below maxComments. These are limits, not promises.

๐Ÿ‘‰ Try it now: open the input form

Good fit

  • Read feedback on a known public video or a small set of videos.
  • Export comment text, likes, public author fields, and reply links.
  • Match repeated exports by stable comment IDs in your own system.

Not a fit

This Actor does not find videos, download media, score sentiment, or post comments. It cannot recover deleted comments or read private, held, hidden, member-only, or login-only comments. It does not provide a fixed historical snapshot or exact posting dates.

๐Ÿ‘‰ Try it now: open the input form

How it works

  1. You give public video URLs or IDs (up to 50) and choose Top or Newest order and a row limit.
  2. The Actor reads each video's public comment pages the way a visitor sees them, with no YouTube login or API key. Top-level comments load first, then replies if you switched them on.
  3. It saves one Dataset row per unique comment or reply and a RUN_SUMMARY record with the result and stop reason for each video.

๐Ÿ‘‰ Try it now: open the input form

Quick start

  1. Open Input. A new form suggests a public Blender video in startUrls.
  2. Keep that example or add your public video URL or ID.
  3. Keep sort=TOP, maxComments=100, and includeReplies=false for a first run.
  4. Click Start. Set a maximum charge in Run options when needed.
  5. Open Comments and replies. Check videoId, text, and isReply.
  6. Open Run summary to check the result and stop reason for each video.

This input is the example suggested by the schema. Other omitted fields use the runtime defaults listed below. An API request with {} is invalid; it does not silently use the demo video.

{
"startUrls": ["https://www.youtube.com/watch?v=aqz-KE-bpKQ"],
"includeReplies": false
}

Output table: one row per comment with text, likes, author and video ID columns

Expected result: up to 100 top-level rows in Top order in about 15 seconds. A full 100-row result costs $0.08 in comment events. The source can return fewer rows or fail; check the report even when Apify shows SUCCEEDED.

๐Ÿ‘‰ Try it now: open the input form

Use cases

JobInput choiceUseful fieldsNext step
Read feedbackOne video, TOP, small maxCommentstext, likeCount, videoIdExport a table for review
Read recent commentssort=NEWESTpublishedTimeText, topLevelPositionCheck the displayed source order
Study a discussionReplies on, smaller top-level capisReply, parentCommentId, threadIdGroup rows by parent
Match repeat exportsSame video in later runsid, recordKey, retrievedAtDeduplicate in your own system

The Actor performs a fresh collection each time. It does not keep a change history, filter unchanged rows, or run sentiment analysis.

๐Ÿ‘‰ Try it now: open the input form

Input

Fields and defaults

Every field except startUrls is optional. A runtime default applies when the field is omitted. A prefill is the example in a fresh visual form. Changing the prefill does not change the API default.

FieldTypeRuntime defaultUI prefillAllowed values and effect
startUrlsstring array, requiredNoneOne public Blender watch URL1โ€“50 video IDs or links (with or without https://); each at most 2,048 characters
sortstringTOPNoneTOP or NEWEST; pinned comments can lead either order
maxCommentsinteger100None1โ€“10,000 rows across all videos, including replies
maxTopLevelCommentsPerVideointeger10000None1โ€“10,000 top-level rows per video; lower it to leave space for replies
includeRepliesbooleanfalsefalseLoad replies after admitted top-level comments
maxRepliesPerCommentinteger50None0โ€“1,000 replies per saved parent; 0 disables reply work
maxRequestsPerVideointeger600None1โ€“600 source attempts per video, including replies and retries
maxTotalRequestsinteger2000None1โ€“2,000 source attempts across the run
concurrencyinteger1None1โ€“4 videos at once; use 1 for predictable ordering
maxRunSecondsinteger1800None30โ€“1,800 seconds; source work stops early to save its report
proxyConfigurationobjectAutomatic, see belowNoneLegacy API connection control; hidden from the form
proxyConfiguration.useApifyProxybooleanRequired when the object is suppliedNonefalse for Direct; true for the supported Apify proxy route
proxyConfiguration.apifyProxyGroupsstring arrayRESIDENTIAL when enabledNoneOnly RESIDENTIAL; enabled missing or empty groups use this group
proxyConfiguration.apifyProxyCountrystringUS when enabledNoneAn uppercase two-letter code; only US has historical release evidence

The request, concurrency, time, and legacy proxy fields remain available in JSON input. The visual form shows the product limits, including the top-level cap needed for replies.

Duplicate video IDs are processed once in first-input order, including when URLs differ. A channel, playlist or other non-video link in a list is skipped at no cost and listed in RUN_SUMMARY.invalidInputs; the other videos still run. If no entry is a video link, the run stops before any request and the status message names the field and shows an example. Empty arrays, bad values and custom proxy URLs are also rejected before a source request. A Direct proxy object must not include group or country settings. A rejected input ends the run without failing: no rows, RUN_SUMMARY.status is invalid_input, and inputErrors lists the field, the problem and an example.

Input written for other YouTube Actors also works. startUrls accepts plain links and { "url": "..." } objects. urls and videoUrls are read as startUrls; maxItems, maxResults, limit and resultsLimit are read as maxComments. When both a synonym and the own field are set, the own field wins and the log says so. A maxComments equal to the form default (100) does not count as set, so maxItems: 15 from an API call still gives 15 rows. Any other unknown field is ignored with a log line and listed in RUN_SUMMARY.ignoredInputFields; it does not stop the run.

The Apify Max items run option (maximum paid results) caps saved rows. When it is lower than maxComments, the lower value is used and both are shown in RUN_SUMMARY (platformMaxItems, effectiveMaxRows). The stop reason is MAX_ITEMS when this cap ended the run, and the status message says "Stopped at the Max items limit of the run".

Interacting settings

WhenWhat happensRecommended action
Top-level rows reach maxCommentsNo room remains for replies or later videosLower the per-video top-level cap or raise the total within its maximum
Replies are on and their cap is 0Replies are not requestedUse a positive reply cap to request replies
proxyConfiguration is omittedDirect below 4,000 requested rows (one switch to Residential US after a block); Residential US from 4,000 to 10,000Start small; proxy access depends on the active Apify account settings
Platform timeout is shorter than maxRunSecondsThe shorter deadline applies, with time reserved for the reportSet both to allow the work you need
Platform timeout is longerThe internal 1,800-second maximum still appliesA longer timeout does not remove source limits
A request, byte, row, or charge cap is reachedSaved rows remain; the report marks the affected scope partialRead the stop reason before another run

Example with replies

{
"startUrls": ["https://www.youtube.com/watch?v=aqz-KE-bpKQ"],
"sort": "TOP",
"maxComments": 20,
"maxTopLevelCommentsPerVideo": 3,
"includeReplies": true,
"maxRepliesPerComment": 2
}

This requests up to three top-level rows and up to two replies for each saved parent. At most nine rows fit this scope, so the maximum comment-event charge for this single video is $0.0072. A parent may have fewer public replies. A reply is linked to its saved parent; excluded parents are outside the scope.

๐Ÿ‘‰ Try it now: open the input form

Output

Saved rows

The default Dataset contains one row per unique saved comment or reply. There are no status or error rows in this table. All listed fields exist in each saved row; optional source values are JSON null when unavailable.

FieldTypeMeaning and empty-value rule
itemTypestringAlways comment
idstringStable source comment ID; a missing ID is a source-format failure
recordKeystringyoutube:<videoId>:<id>; deduplication key within one run
videoIdstringThe normalized video ID
videoUrlstringCanonical HTTPS watch URL, including for Shorts input
threadIdstringThe top-level comment ID for this discussion
isReplybooleantrue for a reply
parentCommentIdstring or nullExact saved parent ID for replies; null for top-level rows
textstringSource display text, up to 100,000 characters; plain text, not HTML
likeCountinteger or nullNon-negative source snapshot; abbreviated labels are approximate
authorobjectContains the three public author fields below
author.displayNamestring or nullPublic display name when available
author.channelIdstring or nullPublic channel ID when available
author.channelUrlstring or nullValidated YouTube channel URL when available
isPinnedboolean or nullSource pinned signal; null for replies
isHeartedboolean or nullCreator-heart signal when available
authorIsCreatorboolean or nullSource channel-owner signal when available
isEditedboolean or nullThe source display-time edited marker when available
publishedTimeTextstring or nullDisplay time such as 2 hours ago; can be rounded or localized
publishedAtnullAlways null: this source does not provide an exact posting date
sortstringRequested TOP or NEWEST
topLevelPositionintegerOne-based parent position within this video's collected top-level rows
replyPositioninteger or nullOne-based position within the parent reply stream; null for top-level rows
retrievedAtISO date stringActor collection time in UTC, not the posting date
sourcestringAlways youtube-innertube

Text keeps Unicode, emoji, and line breaks exposed by the source parser. The Actor does not invent dates from relative labels or add avatars or profile enrichment. A false flag is different from an unavailable null flag.

Output example from the quick start

This is a shortened row from a real run of the quick-start input. Comment IDs, text, and author data are omitted from this public example. The full table has all fields described above.

{
"itemType": "comment",
"videoId": "aqz-KE-bpKQ",
"videoUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ",
"isReply": false,
"parentCommentId": null,
"likeCount": 1900,
"publishedAt": null,
"sort": "TOP",
"topLevelPosition": 1,
"replyPosition": null,
"retrievedAt": "2026-10-08T09:17:19.761Z",
"source": "youtube-innertube"
}

Reports and result states

Output links open the default Dataset through comments and the key-value store record RUN_SUMMARY through runSummary. There is no separate OUTPUT JSON record. The report includes runOutcome, route, row counts, source requests, decoded bytes, retries, stopReasons, per-video outcomes, and reconciliation showing saved rows versus charged events.

SituationDatasetRun summary and next action
Comments foundUnique comment/reply rowsCheck per-video top-level and reply completeness
ZERO_COMMENTSEmpty for that videoThe source explicitly showed zero; no fabricated row
COMMENTS_DISABLEDEmpty for that videoThe source explicitly says comments are off
VIDEO_UNAVAILABLE or PRIVATE_OR_RESTRICTEDEmpty for that videoCheck public availability; restricted reasons are not always distinguishable
A limit is reachedRows already saved remainPARTIAL_LIMIT; check which limit stopped collection
One video in a list cannot be readRows from other videosThe run succeeds as partial; failedVideos counts it, including a video stopped by rate limits or a mid-pagination error after some of its rows. A run-wide block still fails the run
Ambiguous empty, block, or source-format failureCan be empty or partialAMBIGUOUS_EMPTY, REQUEST_BLOCKED, RATE_LIMITED, or source error; retry only a small scope
Invalid input or resourcesEmptyInput error: status is invalid_input, the run succeeds, inputErrors names the field. INVALID_RESOURCES fails the run; check run options

Top-level and reply completeness are separate. NOT_REQUESTED means replies were off or their cap was zero. NOT_STARTED means that work did not start, for example because the total row limit was already full.

COMPLETE_VISIBLE_SNAPSHOT means the visible source chain ended for that video, sort, and scope during the run. It does not mean all historical comments or all replies for parents excluded by your limits. Other states include PARTIAL_LIMIT, PARTIAL_SOURCE_FAILURE, and PARTIAL_SOURCE_CHANGED.

๐Ÿ‘‰ Try it now: open the input form

Pricing

Applied price

The applied price is $0.05 per start + $0.0008 per unique saved comment or reply, including platform usage. Apify automatically charges the standard apify-actor-start event; the Actor does not charge a second start event. At the recommended 512 MB, one start is charged. Up to 1 GB this is one event; above 1 GB, each additional GB adds another start event. There is no video event. The start event is charged when the run starts, also when the input then turns out invalid (for example no video link), so check startUrls before an API call.

Per saved comment or reply by Apify plan: Free $0.0008, Bronze $0.00072, Silver $0.00064, Gold and higher $0.00056. The start event is $0.05. The table below uses the Free price.

Saved rowsStart + comment charges at 512 MB
0$0.05
20$0.066
100$0.13
1,000$0.85

A valid empty video has no comment event, but the start charge still applies. A failed run has the start charge and charges for rows already saved, if any. Duplicates within a run and failed writes have no comment event. A later run is a new collection and can charge for the same comments again. There is no filter-only or unchanged-monitor mode.

Use maxComments and Apify's maxTotalChargeUsd to bound the total start and comment charges. At 512 MB, allow at least $0.0508 for one row, $0.13 for 100, or $0.20 with room to spare. A limit below the start price cannot collect rows. The Actor checks remaining event capacity before saving another row. Account credit rules still apply. Publisher-owned validation runs are not proof of a separate customer's payment.

๐Ÿ‘‰ Try it now: open the input form

Limits

Collection limits

Hard limits are 50 videos and 10,000 saved rows per run. Work also stops at the configured request/time caps or at 256 MiB of decoded source responses. Each response is at most 5 MiB. A reply thread has a 50-attempt request ceiling. Temporary source failures have at most three retries; retries use the same request budget. Redirects and custom source destinations are rejected.

A limit is not a guarantee of that many available results. Large reply scopes need more source requests. Direct access can be blocked. Residential US was used in historical 10,000-row validation; this is not a current speed or availability promise. If the account has no Residential proxy access, the run continues with a direct connection and RUN_SUMMARY.warnings contains RESIDENTIAL_UNAVAILABLE_FALLBACK_DIRECT.

When proxyConfiguration is omitted and YouTube blocks the direct connection, the run switches once to Apify Residential US and retries there (RUN_SUMMARY.route becomes APIFY_RESIDENTIAL, warnings contains DIRECT_BLOCKED_SWITCHED_TO_RESIDENTIAL). Residential use after the switch is included in the per-comment price; there is no separate proxy charge. Without Residential access the warning is DIRECT_BLOCKED_RESIDENTIAL_UNAVAILABLE and the block is reported as before. Set proxyConfiguration to {"useApifyProxy": false} to keep a direct connection only. Regional, age, login, or moderation controls are not bypassed.

๐Ÿ‘‰ Try it now: open the input form

API, export and integrations

The same JSON input works through the Apify Actor runs API. Use Actor ID MFdWh1uHMcLLKVG0g or cliqtomedia~youtube-comments-scraper. Omit the build selector to use the public default. Set timeout=300, memory=512, and a small maxTotalChargeUsd for the quick-start example. Read defaultDatasetId and defaultKeyValueStoreId from the run response, then get the rows and RUN_SUMMARY. See Apify's run and results guide.

Download the Dataset as JSON, CSV, or Excel from Apify. JSON keeps the nested author object and nullable values. Check how your chosen table export shows nested fields before using it in another tool.

Apify tasks and schedules can run a saved input again. Each run gets a fresh snapshot and charges saved rows again. The Actor has no built-in monitor state or custom integration setup. Existing account tasks, schedules, and integrations are managed separately.

Use with AI agents (MCP)

Connect the Apify MCP server to your AI assistant and add this Actor with https://mcp.apify.com?tools=cliqtomedia/youtube-comments-scraper. The agent can then ask for the comments of a video and read the rows or the Run summary.

๐Ÿ‘‰ Try it now: open the input form

Troubleshooting

Replies are on, but there are no reply rows

Check replyParentsEligible, repliesCompleteness, and the total stop reason. If top-level rows reached maxComments, replies had no room. Lower maxTopLevelCommentsPerVideo below the total and run a small sample again. Use the reply example above. Some saved parents have no visible replies.

The run finished with an input error (invalid_input)

The input had no video link, or a value was outside its range; the status message and RUN_SUMMARY.inputErrors name the field. The $0.05 start is charged; no comment is charged. Run finished with no results and an input error message โ€” fix the named field and run again.

The run saved no rows

Read the per-video outcome in Run summary. Disabled, zero, unavailable, restricted, and blocked results have different meanings. Confirm public video access. AMBIGUOUS_EMPTY means the Actor could not prove why the source was empty; it is a failure, not a zero-comment claim.

The run stopped early or timed out

Check result, request, time, byte, reply, and charge limits. A shorter Apify run timeout also shortens source work. Saved rows remain useful, but read the report before assuming that collection ended normally. Retry a smaller scope.

The source failed or changed

Do not repeat a large batch. Try one small public video. If it fails again, report the safe details listed below. Do not add cookies, private credentials, or custom proxy URLs to bypass a restriction.

๐Ÿ‘‰ Try it now: open the input form

FAQ

Is this an official YouTube or Google tool?

No. It is an independent Actor and is not made, approved, or sponsored by YouTube or Google.

Does it use the official YouTube Data API?

No. It reads the public website's InnerTube comments surface through YouTube.js. That interface is not a public supported API and can change.

Does this YouTube comment scraper need an API key?

No. It does not accept a Google API key, OAuth token, YouTube account, or cookies. For a separate official API client, Google documents commentThreads.list; that API is not this Actor's source.

Can I export comments from multiple videos, including Shorts?

Yes. Use up to 50 supported public video URLs or IDs. Duplicate videos are processed once. Live video URLs refer to comments, not live chat.

Can I download YouTube comments as CSV or Excel?

Yes. Open the results table and choose JSON, CSV, or Excel. Each saved comment or reply is one row. JSON preserves the complete nested shape.

Can it get every comment or recover deleted comments?

No. It gets the public comments visible during the run and inside your limits. It cannot recover deleted, hidden, held, private, or member-only comments.

Are replies included?

Only when includeReplies=true and maxRepliesPerComment>0. Leave room in maxComments by choosing a smaller per-video top-level cap. Every saved reply counts toward the total and price.

Why is publishedAt null?

The source gives display text such as 2 hours ago. Converting a rounded label into an exact date would add accuracy the source did not provide. The original label stays in publishedTimeText; publishedAt stays null.

Can I use the rows for analysis?

You can export rows for permitted research or analysis. The Actor does not score sentiment, profile people, or join data from other sources.

๐Ÿ‘‰ Try it now: open the input form

Privacy and allowed use

Public comment text, names, and channel details can still be personal data and user-created content. Use only data you are allowed to collect, keep it secure, and handle valid correction or deletion requests. The Actor does not give you a license to republish comments.

Do not use it for harassment, stalking, doxxing, mass profiling, sensitive-trait inference, spam, automated outreach, targeting minors, or bypassing private, member, login, location, age, or moderation controls.

๐Ÿ‘‰ Try it now: open the input form

๐Ÿ‘‰ Try it now: open the input form

Support

Use this Actor's Apify Issues page for technical questions or bugs. Include the run ID, build ID, UTC start time, selected sort and limits, reply setting, and safe result codes/counters from the Run summary.

Never post comment text, author data, private video URLs, cookies, tokens, authorization headers, raw source responses, page tokens, session data, or proxy URLs in a public Issue.

โญ Found it useful? Rate it. Something wrong? Report a problem.

Run it now: open the prefilled input form and get YouTube comments in seconds, no coding