# Find YouTube comments about battery life in phone reviews

**Use case:** 

Search YouTube for phone review videos and keep only comments that mention battery. The example reads the top 3 videos. Swap the search and keyword to mine any product feedback.

## Input

```json
{
  "startUrls": [],
  "searchTerms": [
    "iphone 16 review"
  ],
  "maxComments": 30,
  "sortBy": "top",
  "includeReplies": false,
  "maxRepliesPerComment": 20,
  "maxVideos": 3,
  "channelTab": "videos",
  "keywords": [
    "battery"
  ],
  "onlyNewComments": false,
  "maxConcurrency": 8,
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "authorAvatarUrl": {
    "label": "Author avatar",
    "format": "string"
  },
  "authorName": {
    "label": "Author",
    "format": "string"
  },
  "text": {
    "label": "Comment text",
    "format": "string"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "replyCount": {
    "label": "Replies",
    "format": "integer"
  },
  "publishedTimeText": {
    "label": "Published (as shown)",
    "format": "string"
  },
  "type": {
    "label": "Type (comment, reply, error)",
    "format": "string"
  },
  "isPinned": {
    "label": "Pinned",
    "format": "boolean"
  },
  "isHeartedByCreator": {
    "label": "Hearted by creator",
    "format": "boolean"
  },
  "videoTitle": {
    "label": "Video title",
    "format": "string"
  },
  "commentUrl": {
    "label": "Comment link",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Comments Scraper: Replies, Shorts & Channels Actor is ready to run with the inputs already set for "Find YouTube comments about battery life in phone reviews". [Sign up or log in](https://console.apify.com/create-task-from-example/EgAstsQW4NzEdUxKf) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find YouTube comments about battery life in phone reviews" task

The YouTube Comments Scraper: Replies, Shorts & Channels Actor will start running based on the input automatically. You can also change all the input fields, like youtube links, search terms, and more, to match your specific use case.

### 3. Receive the "Find YouTube comments about battery life in phone reviews" 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 author avatar, author, comment 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 "Find YouTube comments about battery life in phone reviews" task via API](https://apify.com/panix/youtube-comments-scraper.md).

## FAQ

### What does this task return?

It returns one row per matching comment with author, text, likes and video link.

### Do I need an account or API key?

No. It reads public YouTube comments without an account or API key.

### How do I change the example?

Edit the input fields and save the task, or call the Actor with your own input. Every field is explained in the input form.

### How much does a run cost?

You pay per result and a small start fee, with no subscription. The example run costs a few cents at most. See the Actor's pricing tab for exact prices.

## About this Actor

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