# CrashCourse YouTube Video: Top Comments & Reply Threads

**Use case:** 

Collects top-liked comments and nested reply rows from CrashCourse's Early Computing episode on YouTube, returning one row per comment or reply with parentCommentId linking each reply to its parent thread. Every row carries the comment text, like count, reply count, creator heart, pinned flag, author channel URL and estimated timestamp. Swap in up to 100 video or Shorts links.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=O5nskjZ_GoI"
  ],
  "channels": [],
  "sortBy": "top",
  "maxCommentsPerVideo": 50,
  "maxVideosPerChannel": 5,
  "includeReplies": true,
  "oldestCommentDate": "",
  "onlyNewItems": false,
  "maxItems": 50,
  "debugSnapshot": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "videoTitle": {
    "label": "Video",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "text": {
    "label": "Comment",
    "format": "string"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "replyCount": {
    "label": "Replies",
    "format": "integer"
  },
  "publishedText": {
    "label": "When",
    "format": "string"
  },
  "sort": {
    "label": "Sort",
    "format": "string"
  },
  "isPinned": {
    "label": "Pinned",
    "format": "boolean"
  },
  "isOwner": {
    "label": "Creator",
    "format": "boolean"
  },
  "hasCreatorHeart": {
    "label": "Hearted",
    "format": "boolean"
  },
  "parentCommentId": {
    "label": "Parent ID",
    "format": "string"
  },
  "error.type": {
    "label": "Status",
    "format": "string"
  },
  "url": {
    "label": "Permalink",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "CrashCourse YouTube Video: Top Comments & Reply Threads" task

The YouTube Comments Scraper: Top & Newest, Incremental Actor will start running based on the input automatically. You can also change all the input fields, like video urls or ids, channels (optional), and more, to match your specific use case.

### 3. Receive the "CrashCourse YouTube Video: Top Comments & Reply Threads" 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 video, author, comment, 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 "CrashCourse YouTube Video: Top Comments & Reply Threads" task via API](https://apify.com/kizukidata/youtube-comments-scraper.md).

## FAQ

### What does the CrashCourse top comments and replies task return?

The CrashCourse top comments and replies task returns one row per top-level comment or reply: commentId, parentCommentId, text, likeCount, replyCount, hasCreatorHeart, isPinned, author and direct comment permalink.

### How are reply rows linked to top-level comments?

Include comment replies is on in the CrashCourse top comments and replies task, so each reply is returned as its own row with parentCommentId set to the parent comment's commentId.

### Can I extract comments from YouTube Shorts or multiple videos?

Paste up to 100 YouTube watch links, youtu.be URLs, /shorts/ links or 11-character video IDs into Video URLs or IDs in the CrashCourse top comments and replies task, and raise Maximum rows to match.

### Does the task need a Google account or API key?

The CrashCourse top comments and replies task needs no Google account and no API key. It reads public video comments, and it is not affiliated with YouTube, Google or CrashCourse.

## About this Actor

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