# YouTube Comments Scraper: Comments, Replies & Video Insights

> Scrape YouTube comments and replies from videos, Shorts, whole channels and playlists. Text, likes, reply count, author, pinned and creator-hearted flags, comment links, plus a per-video summary with themes. No login, no API key, no quota. $0.40/1K.

- Category: Jobs & content
- Price: $0.40 per 1,000 × comment, billed per result by Apify (no subscription); any other billed events are listed on the Store page. Cap any run with `maxTotalChargeUsd`.
- Store page: https://apify.com/wrenfield-data/youtube-comments-scraper?fpr=qx6tzs
- Human page: https://wrenfielddata.com/tools/youtube-comments-scraper/
- OpenAPI 3 spec: https://api.apify.com/v2/acts/wrenfield-data~youtube-comments-scraper/builds/default/openapi.json
- MCP tool: https://mcp.apify.com?tools=wrenfield-data/youtube-comments-scraper (appears as `wrenfield-data--youtube-comments-scraper`)

## Call it

Synchronous run that returns the dataset rows as JSON (use `/runs` for long jobs and poll; see the OpenAPI spec):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/wrenfield-data~youtube-comments-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "maxComments": 20}'
```

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `videos` | array | yes | `["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]` | One per line: video URLs, Shorts URLs, youtu.be links, 11-character video IDs, channel URLs or @handles (latest uploads are scraped), or playlist URLs. |
| `maxComments` | integer |  | `100` | Top-level comments to collect from each video. Replies (if enabled) are extra. |
| `sortBy` | string |  | `"top"` | Same order as on YouTube. Use 'Newest first' together with 'Only comments newer than' for monitoring. |
| `includeReplies` | boolean |  | `false` | Also collect replies under each comment (each reply is one row, linked by parentCommentId). |
| `maxRepliesPerComment` | integer |  | `20` | Only used when replies are included. |
| `maxVideosPerChannel` | integer |  | `10` | For channel and playlist inputs: how many of the latest videos to scrape. |
| `newerThan` | string |  |  | Optional date (YYYY-MM-DD). Older comments are skipped; with 'Newest first' the run stops reading a video once it reaches older comments. YouTube shows relative dates, so the cutoff is matched to the day. |
| `keywords` | array |  |  | Optional. Keep only comments that contain at least one of these words (case-insensitive). Only kept comments are charged. |
| `includeVideoSummary` | boolean |  | `true` | One extra row per video: total comment count, views, average likes, share of questions, channel-owner replies, creator hearts, top themes and the most-liked comment. |

## Example input

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxComments": 20
}
```

## Notes

- Auth: an Apify API token as `Authorization: Bearer <token>`; the MCP server also supports OAuth sign-in.
- Failed or empty results are not charged on most tools; check the pricing on the Store page.
- Questions: hello@wrenfielddata.com
- Apify Store links on this page are referral links. They may earn us a commission, at no extra cost to you.
