# Comments of YouTube videos

**Use case:** 

The first 200 comments of a YouTube video with author, text, likes, reply count, when it was posted and whether the creator pinned or hearted it, together with the video's own stats. Paste any video links to analyze audience sentiment, collect feedback or find questions for your next video.

## Input

```json
{
  "searchQueries": [
    "lofi hip hop",
    "iphone 17 review"
  ],
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=arj7oStGLkU"
    }
  ],
  "maxResults": 20,
  "fullDetails": true,
  "sortBy": "relevance",
  "uploadDate": "any",
  "videoType": "all",
  "duration": "any",
  "features": [],
  "channelTabs": [
    "videos"
  ],
  "channelSort": "newest",
  "maxComments": 200,
  "commentsSort": "top",
  "country": "US",
  "language": "en",
  "maxConcurrency": 20
}
```

## Output

```json
{
  "thumbnailUrl": {
    "label": "Thumbnail",
    "format": "image"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "type": {
    "label": "Type",
    "format": "text"
  },
  "url": {
    "label": "Link",
    "format": "link"
  },
  "publishedAt": {
    "label": "Published",
    "format": "date"
  },
  "publishedDate": {
    "label": "Date",
    "format": "text"
  },
  "duration": {
    "label": "Duration",
    "format": "text"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "commentCount": {
    "label": "Comments",
    "format": "number"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "channelSubscribers": {
    "label": "Subscribers",
    "format": "number"
  },
  "category": {
    "label": "Category",
    "format": "text"
  },
  "input": {
    "label": "Search / URL",
    "format": "text"
  },
  "position": {
    "label": "#",
    "format": "number"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "error": {
    "label": "Message",
    "format": "text"
  }
}
```

## About this Actor

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