YouTube Comments Scraper
YouTube comments scraper, no login. Scrape YouTube comments and replies of videos and Shorts: YouTube comments with text, author, channel, likes, reply count, publish time, pinned and hearted flags, Top or Newest.

What it extracts
Every field below comes from the Actor’s published dataset schema.
| Field | Description | Type |
|---|---|---|
videoTitle | Video | text |
authorName | Author | text |
text | Comment | text |
likeCount | Likes | number |
replyCount | Replies | number |
publishedTimeText | Published | text |
isReply | Reply | boolean |
isPinned | Pinned | boolean |
isHeartedByCreator | Hearted | boolean |
authorIsCreator | By creator | boolean |
authorAvatarUrl | Avatar | image |
commentUrl | Comment URL | link |
inputUrl | Input | text |
Input parameters
Generated from the Actor’s input schema — the same fields the Apify console shows.
| Parameter | Type | Required | Description |
|---|---|---|---|
startUrls | array | Required | YouTube videos whose comments to scrape. Paste a video URL such as https://www.youtube.com/watch?v=dQw4w9WgXcQ, a youtu.be link, a Shorts URL (…/shorts/…), a live URL, or a bare 11-character video id. One entry per video, and as many videos as you like. |
maxItems | integer | Optional | Maximum number of comments to scrape from each video (start URL). Replies, when included, count toward this limit. |
sortBy | string | Optional | The order YouTube lists the comments in: Top comments (most engagement first) or Newest first. A pinned comment comes first in both. |
includeReplies | boolean | Optional | Also scrape the replies to each comment. Each reply is saved as its own item, right after the comment it answers, with parentCommentId set. |
maxRepliesPerComment | integer | Optional | When replies are included, the maximum number of replies to scrape for each comment, in the order YouTube lists them. |
proxyConfiguration | object | Optional | Proxy configuration. YouTube serves comments without a proxy, so none is used by default; if YouTube refuses a request, the run retries through Apify Proxy on its own. You can also choose Apify datacenter or residential proxies from the start. |
API access
Run this Actor from your own code over the Apify API.
{
"startUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
]
}curl -X POST \
"https://api.apify.com/v2/acts/logical_scrapers~youtube-comments-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"startUrls":["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]}'import { ApifyClient } from 'apify-client'
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' })
const run = await client.actor('logical_scrapers~youtube-comments-scraper').call({
"startUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
]
})
const { items } = await client.dataset(run.defaultDatasetId).listItems()
console.log(items)from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("logical_scrapers~youtube-comments-scraper").call(run_input={
"startUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)Runs are executed on Apify. Create an API token in your Apify account, then call the Actor over REST or with the official client for your language. The same input object works in the Apify console, so you can test interactively before automating.
Pricing
Data not currently verified. This Actor's pricing model is not declared in our source repository.
Current rates are published on the Apify listing and can change, so they are not duplicated here. See pricing on Apify
Reliability
Measured across all public Goldmine Actors on Apify, 2026-11-12. This is an account-level figure, not a per-Actor benchmark — per-Actor speed and completeness benchmarks are not yet published. Source.
Used for
Workflows this Actor is part of, and the other scrapers it chains with.