# Search and export all comments on a YouTube video

**Use case:** 

Exports all public comments on a YouTube video so you can search and filter them in a spreadsheet. Each row has the comment text, author, likes, reply count, date and whether it is pinned or hearted. Download as CSV, Excel or JSON. Independent tool, not affiliated with or endorsed by YouTube or Google.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "videoIds": [],
  "maxComments": 10,
  "includeReplies": false
}
```

## Output

```json
{
  "video_title": {
    "label": "Video Title",
    "format": "string"
  },
  "author_name": {
    "label": "Author Name",
    "format": "string"
  },
  "comment_text": {
    "label": "Comment Text",
    "format": "string"
  },
  "like_count": {
    "label": "Like Count",
    "format": "integer"
  },
  "reply_count": {
    "label": "Reply Count",
    "format": "integer"
  },
  "is_reply": {
    "label": "Is Reply",
    "format": "boolean"
  },
  "is_pinned": {
    "label": "Is Pinned",
    "format": "boolean"
  },
  "is_hearted": {
    "label": "Is Hearted",
    "format": "boolean"
  },
  "published_at": {
    "label": "Published At",
    "format": "string"
  }
}
```

## About this Actor

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