# YouTube Video Comments with Likes and Replies

**Use case:** 

Read what viewers wrote under a video. Each row is one comment with the text, author, like count, reply count, posted time and whether the creator hearted or pinned it. Replies are switched on for this example. The price is $0.003 per comment, so 200 comments cost $0.60. Paste more video links to read several threads in one run.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "sortBy": "top",
  "includeReplies": true,
  "maxCommentsPerVideo": 100,
  "maxResults": 200,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "commentId": {
    "label": "Comment id"
  },
  "videoId": {
    "label": "Video id"
  },
  "text": {
    "label": "Text"
  },
  "authorName": {
    "label": "Author name"
  },
  "authorChannelUrl": {
    "label": "Author channel url"
  },
  "likes": {
    "label": "Likes"
  },
  "replyCount": {
    "label": "Reply count"
  },
  "publishedTimeText": {
    "label": "Published time text"
  },
  "isReply": {
    "label": "Is reply"
  },
  "parentId": {
    "label": "Parent id"
  },
  "isPinned": {
    "label": "Is pinned"
  },
  "isHearted": {
    "label": "Is hearted"
  },
  "videoTitle": {
    "label": "Video title"
  },
  "commentUrl": {
    "label": "Comment url"
  }
}
```

## How it works

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

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

### 2. Start the "YouTube Video Comments with Likes and Replies" task

The YouTube Comments Scraper: Comments, Replies and Likes Actor will start running based on the input automatically. You can also change all the input fields, like video urls, sort comments by, and more, to match your specific use case.

### 3. Receive the "YouTube Video Comments with Likes and 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 comment id, video id, text, 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 "YouTube Video Comments with Likes and Replies" task via API](https://apify.com/talcoe/youtube-comments.md).

## About this Actor

This example demonstrates how to use [YouTube Comments Scraper: Comments, Replies and Likes](https://apify.com/talcoe/youtube-comments.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/talcoe/youtube-comments.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/talcoe/youtube-comments.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`).
