# Scrape a YouTube Video's Top Comments With Replies

**Use case:** 

Paste a YouTube video link and get its comments as rows: text, author, likes, reply count, pinned and creator-heart flags, with the replies underneath as their own rows. Top or newest order, an exact per-video limit, no start fee.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=aqz-KE-bpKQ"
  ],
  "channels": [],
  "startUrls": [],
  "sort": "top",
  "includeReplies": true,
  "resultsLimit": 100,
  "maxItems": 1000,
  "videosPerChannel": 5,
  "maxRunSeconds": 600,
  "includeSeen": false
}
```

## Output

```json
{
  "charged": {
    "label": "Row charged"
  },
  "commentId": {
    "label": "Comment ID"
  },
  "videoId": {
    "label": "Video ID"
  },
  "videoUrl": {
    "label": "Video URL"
  },
  "videoTitle": {
    "label": "Video title"
  },
  "channelName": {
    "label": "Channel"
  },
  "channelId": {
    "label": "Channel ID"
  },
  "text": {
    "label": "Comment"
  },
  "authorName": {
    "label": "Author"
  },
  "authorChannelId": {
    "label": "Author channel ID"
  },
  "authorUrl": {
    "label": "Author channel URL"
  },
  "authorIsVerified": {
    "label": "Author verified"
  },
  "authorIsCreator": {
    "label": "Author is the uploader"
  },
  "authorIsArtist": {
    "label": "Author is an official artist"
  },
  "likeCount": {
    "label": "Likes"
  },
  "likeCountText": {
    "label": "Likes (as shown)"
  },
  "likeCountIsApproximate": {
    "label": "Likes rounded by YouTube"
  },
  "replyCount": {
    "label": "Replies"
  },
  "replyCountText": {
    "label": "Replies (as shown)"
  },
  "replyCountIsApproximate": {
    "label": "Replies rounded by YouTube"
  },
  "publishedText": {
    "label": "Published (as shown)"
  },
  "publishedAt": {
    "label": "Published (derived)"
  },
  "publishedAtPrecision": {
    "label": "Derived to"
  },
  "isPinned": {
    "label": "Pinned"
  },
  "heartedByCreator": {
    "label": "Hearted by creator"
  },
  "isReply": {
    "label": "Is a reply"
  },
  "parentCommentId": {
    "label": "Replies to"
  },
  "videoCommentCount": {
    "label": "Comments on the video"
  },
  "sort": {
    "label": "Order"
  },
  "source": {
    "label": "Door"
  },
  "repeat": {
    "label": "Already had it"
  },
  "status": {
    "label": "Status"
  },
  "statusReason": {
    "label": "What happened"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Comments Scraper — Replies, Likes & Channel Videos Actor is ready to run with the inputs already set for "Scrape a YouTube Video's Top Comments With Replies". [Sign up or log in](https://console.apify.com/create-task-from-example/tMd23wsoWlckWYlKm) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape a YouTube Video's Top Comments With Replies" task

The YouTube Comments Scraper — Replies, Likes & Channel Videos Actor will start running based on the input automatically. You can also change all the input fields, like video urls, channels, and more, to match your specific use case.

### 3. Receive the "Scrape a YouTube Video's Top Comments With Replies" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as row charged, comment id, video id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Scrape a YouTube Video's Top Comments With Replies" task via API](https://apify.com/steadyfetch/youtube-comments-scraper.md).

## About this Actor

This example demonstrates how to use [YouTube Comments Scraper — Replies, Likes & Channel Videos](https://apify.com/steadyfetch/youtube-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/steadyfetch/youtube-comments-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/steadyfetch/youtube-comments-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
