# Comments Insights for YouTube Videos and Shorts

**Use case:** 

Access valuable insights by extracting comments from selected YouTube videos and shorts. This task fetches detailed comment data, including text, author information, timestamps, and like counts, from up to 200 comments for each provided video URL. Ideal for analyzing viewer sentiment and tracking engagement on specific content.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=ZxXruY7llcc",
    "https://www.youtube.com/shorts/0LI9Gf-bk5I"
  ],
  "resultsLimit": 200
}
```

## Output

```json
{
  "inputUrl": {
    "label": "Input URL",
    "format": "link"
  },
  "commentText": {
    "label": "Comment Text",
    "format": "text"
  },
  "id": {
    "label": "Comment ID",
    "format": "number"
  },
  "publishedTime": {
    "label": "Published Time",
    "format": "text"
  },
  "interpolatedTimestamp": {
    "label": "Interpolated Timestamp",
    "format": "number"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "author": {
    "label": "Author",
    "format": "object"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

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

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

### 2. Start the "Comments Insights for YouTube Videos and Shorts" task

The Youtube Comments Scraper Actor will start running based on the input automatically. You can also change all the input fields, like video urls and results limit, to match your specific use case.

### 3. Receive the "Comments Insights for YouTube Videos and Shorts" 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 input url, comment text, comment 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 "Comments Insights for YouTube Videos and Shorts" task via API](https://apify.com/scraper_one/youtube-comments-scraper.md).

## FAQ

### What data does the Comments Insights task provide?

The Comments Insights task provides comment text, author information, timestamps, likes, and comment IDs from selected YouTube videos.

### What is the maximum number of comments I can retrieve per video?

The maximum number of comments retrievable per video is up to 200, as specified in the task configuration.

### What type of YouTube content can I analyze with this task?

This task can analyze both regular YouTube videos and YouTube Shorts, as it accepts URLs for both formats.

### Can I schedule the Comments Insights task to run automatically?

The Comments Insights task can be scheduled to run automatically in the Apify Console.

### Is it necessary to provide multiple video URLs for analysis?

Providing multiple video URLs is optional; you can input a single video URL to extract comments as well.

### What limitations should I be aware of when using this task?

The task works only on publicly visible comments and is subject to YouTube's rate limits; consider proxy rotation for larger volumes.

## About this Actor

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