YouTube Comments Scraper (Public, No Login, Up to 1000) avatar

YouTube Comments Scraper (Public, No Login, Up to 1000)

Pricing

from $0.40 / 1,000 comment delivereds

Go to Apify Store
YouTube Comments Scraper (Public, No Login, Up to 1000)

YouTube Comments Scraper (Public, No Login, Up to 1000)

Scrape public YouTube comments from any video without login. Returns one item per comment: author, text, votes, replies, timestamps, video metadata. Uses the watch page and Innertube API. Residential proxies recommended for bulk use.

Pricing

from $0.40 / 1,000 comment delivereds

Rating

0.0

(0)

Developer

Steadfetch

Steadfetch

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

33 minutes ago

Last modified

Categories

Features

Limited permissions

Share

YouTube Comments Scraper (Public Videos)

Base Apify Actor for Steadfetch. Scrapes the public comments of any public YouTube video - no login, no account cookies - and returns typed JSON: one dataset item per comment plus error items for videos without a usable comment section.

What it does

  • Accepts public video URLs (watch?v=, youtu.be/, /shorts/, /embed/, /live/) or bare 11-character video ids.
  • Reads the public watch page and YouTube's own public comment endpoint (youtubei/v1/next, the same one the website uses), ~20 comments per page, following the page's own continuation tokens until maxComments is reached.
  • Returns the fields that matter for analysis: comment text, comment id, author handle and channel id (public usernames only - no emails, phones or profiles), likes, reply count, video title, video id, video URL and the video's total comment count as YouTube shows it.
  • Sorts TOP_COMMENTS (web default) or NEWEST_FIRST, and can exclude comments older than oldestCommentDate. Both are included at no extra charge.
  • Handles videos without comments gracefully: instead of failing, the run ends SUCCEEDED with an error item carrying a code (VIDEO_UNAVAILABLE, AGE_RESTRICTED, NO_COMMENTS).
  • Validates every item against the dataset schema before it reaches the dataset (strictSchema, default true).

The Actor works on plain Apify datacenter runs - no residential proxies required (the leader of this niche demands them in its FAQ). An optional proxyConfiguration input is honored if your environment needs one.

How to use

  1. Fill startUrls with public video URLs and set maxComments:

    $apify call steadfetch/youtube-comments-scraper --input='{"startUrls":[{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],"maxComments":100,"strictSchema":true}'
  2. Read results from the run's default dataset (JSON, CSV or the API).

Minimum input

{
"startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }]
}

With the defaults this reads the 100 most-liked comments of the video, in the order YouTube shows.

Input fields

FieldTypeRequiredDefaultDescription
startUrlsarrayYes-Public video URLs or video ids.
maxCommentsintegerNo100Maximum comments pushed to the dataset (hard limit 10000).
sortCommentsBystringNoTOP_COMMENTSTOP_COMMENTS or NEWEST_FIRST (the page's own sort menu; free).
oldestCommentDatestringNo-ISO date; comments older than it are excluded. Dates are approximate (YouTube shows relative times like "7 years ago" to signed-out clients).
strictSchemabooleanNotrueFail the run on output-schema violations. Keep enabled.
proxyConfigurationobjectNononeOptional proxy settings for public pages.

Example output

{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Example Video Title",
"scrapedAt": "2026-11-25T12:00:00.000Z",
"type": "Comment",
"cid": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"comment": "Public comment text as shown on the video page.",
"author": "@examplehandle",
"authorHandle": "@examplehandle",
"authorChannelId": "UC1234567890abcdefghijklmnop",
"authorAvatar": "https://yt3.ggpht.com/example=s88-c-k-c0x00ffffff-no-rj",
"authorIsChannelOwner": false,
"hasCreatorHeart": null,
"videoId": "dQw4w9WgXcQ",
"pageUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentsCount": 2400000,
"replyCount": 742,
"voteCount": 109000,
"likes": 109000,
"publishedTime": "7 years ago (edited)",
"publishedTimeEdited": true,
"publishedDateApprox": "2019-06-01T12:00:00.000Z",
"replyToCid": null
}

Error item example (run still succeeds):

{
"url": "https://www.youtube.com/watch?v=EXAMPLEID111",
"title": null,
"scrapedAt": "2026-11-25T12:00:00.000Z",
"type": "Error",
"code": "NO_COMMENTS",
"message": "The video has no public comment section (comments are disabled or none exist).",
"videoId": "EXAMPLEID111",
"pageUrl": "https://www.youtube.com/watch?v=EXAMPLEID111"
}

Output fields

FieldTypeDescription
urlstringVideo page URL (common Steadfetch envelope, required).
titlestring | nullVideo title.
scrapedAtdate-timeISO 8601 UTC timestamp of the scrape (required).
typestringComment or Error.
cidstring | nullYouTube comment id.
commentstring | nullComment text.
authorstring | nullPublic display name/handle.
authorHandlestring | nullPublic @handle.
authorChannelIdstring | nullPublic channel id.
authorAvatarstring | nullPublic avatar thumbnail URL.
authorIsChannelOwnerboolean | nullAuthor owns the video's channel.
hasCreatorHeartnullAlways null: the signed-out web client does not expose the creator-heart state.
videoIdstring | nullVideo id.
pageUrlstring | nullWatch URL.
commentsCountinteger | nullApproximate total comment count of the video (YouTube's rounded figure).
replyCountinteger | nullReplies to the comment (YouTube's rounded figure).
voteCount / likesinteger | nullLikes (YouTube's rounded figure, e.g. 109K -> 109000).
publishedTimestring | nullRelative time as shown on the web.
publishedTimeEditedboolean | nullComment marked "(edited)".
publishedDateApproxstring | nullApproximate UTC date derived from the relative time.
replyToCidnullAlways null: top-level comments only (use replyCount for thread size).
code / messagestring | nullOnly on Error items.

Pricing

Pay-per-event with the two synthetic platform events: apify-actor-start at 0.00005 USD per run (Apify-recommended default, includes the first 5 seconds of compute) and apify-default-dataset-item at 0.4 USD per 1,000 results (one public comment = one result) - below the cheapest competitor in this niche (datasaurus bills 0.5 USD per 1,000 comments) and well below the leader (streamers bills 2 USD per 1,000 on the FREE plan and demands paid residential proxies). Sorting and the date filter are included at no extra charge; there is no custom per-item event and no Actor.charge() call, so users are never billed twice.

Cost basis (measured, see the repository task for the run): ~50 public API pages per 1,000 comments at <=1 request/second, about 60 seconds of the 0.25 GB slice per 1,000 comments, no proxy by default - a small fraction of the price, with margin over proxy cost if a user attaches one.

Works on the Apify free plan - about 12,499 results for the $5 monthly credit (floor((5.00 - 0.00005) / 0.0004)).

Monitor Actors built from this template may add exactly one more event: the reserved monitor-check, charged once per watched item actually checked in a run, priced 0.01-1.00 USD per 1,000 checks. This Actor is an extractor and ships no monitor charge; the pattern and the price measurement are documented in the repository CONTRIBUTING.md, section "Monitor Actors: charge per check".

FAQ

Does the Actor need a login or account cookies? No. It only reads public pages and YouTube's public comment endpoint without authentication. Comment authors' public usernames are returned; the Actor never returns emails, phone numbers or profile dumps.

Why no browser (Playwright)? The comment data is already on the public page and the public API; HTTP-only runs are roughly 10x cheaper and faster.

Why is hasCreatorHeart null and why are dates relative? YouTube's signed-out web client does not expose creator hearts and only shows relative times ("7 years ago"). The Actor reports what the public page actually carries instead of inventing values; publishedDateApprox is an estimate.

Why does the run succeed with 0 comments and 1 Error item? For videos that are unavailable, age-restricted or have comments disabled, a typed error item (VIDEO_UNAVAILABLE, AGE_RESTRICTED, NO_COMMENTS) is more useful than a failed run. Real network failures still fail the run.

When am I charged? Once per run start (apify-actor-start) and once per result saved (apify-default-dataset-item). Failed runs that deliver no results only incur the start event.

Is the output schema stable? Yes. New fields are added additively and required fields never change.

Can I request a new source? Yes, open an issue in the Steadfetch actors repository describing the public page you want tracked.

Other Steadfetch Actors

Support

Report bugs or request features through the Apify Store page (Issues tab) of the Actor you ran, or through the Steadfetch actors repository issues. Include the run ID and the input used.

Maintenance

This Actor is tested daily through the monorepo CI (npm test and npm run publish:check on every push, plus the shared publish gate) and a daily QA run against the example input. Use this Actor only for content you are allowed to collect under YouTube's terms - the user is responsible for how the output is used; Steadfetch removes any Actor from the Store within 48 hours of a valid complaint.