# Example: comments of one TED talk

**Use case:** 

Runs the YouTube Comments Scraper on one public TED talk and returns its top 50 comments with up to 5 replies under each, with authors, likes and dates.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=iG9CE55wbtY"
  ],
  "sort": "top",
  "maxCommentsPerVideo": 50,
  "includeReplies": true,
  "maxRepliesPerComment": 5,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "type": {
    "label": "Row type",
    "format": "string"
  },
  "videoTitle": {
    "label": "Video title",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "authorName": {
    "label": "Author",
    "format": "string"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "replyCount": {
    "label": "Replies",
    "format": "number"
  },
  "publishedTimeText": {
    "label": "Published (as shown)",
    "format": "string"
  },
  "isPinned": {
    "label": "Pinned",
    "format": "boolean"
  },
  "isHearted": {
    "label": "Hearted by the creator",
    "format": "boolean"
  },
  "authorIsChannelOwner": {
    "label": "Author is the video's channel",
    "format": "boolean"
  },
  "parentId": {
    "label": "Parent comment ID",
    "format": "string"
  },
  "commentId": {
    "label": "Comment ID",
    "format": "string"
  },
  "videoUrl": {
    "label": "Video URL",
    "format": "string"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Comments Scraper: Replies Included, $0.50/1K Comments Actor is ready to run with the inputs already set for "Example: comments of one TED talk". [Sign up or log in](https://console.apify.com/create-task-from-example/YVLhUIHcHjuKiIO82) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Example: comments of one TED talk" task

The YouTube Comments Scraper: Replies Included, $0.50/1K Comments Actor will start running based on the input automatically. You can also change all the input fields, like youtube video or shorts urls, sort order, and more, to match your specific use case.

### 3. Receive the "Example: comments of one TED talk" 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 row type, video title, 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 "Example: comments of one TED talk" task via API](https://apify.com/actorforgehq/youtube-comments-scraper.md).

## FAQ

### What does one output row of the TED talk comments example task contain?

The TED talk comments example task returns one row per comment or reply: text, authorName, authorChannelId, likeCount, replyCount, publishedTimeText, isPinned, isHearted, parentId for replies, and the video title and comment count.

### What input does the TED talk comments example task use and how do I change it?

The TED talk comments example task takes one video URL (watch?v=iG9CE55wbtY), Top order, 50 comments and up to 5 replies under each. Replace urls with other videos or Shorts, switch sort to newest and change the limits.

### Does the TED talk comments example task need a YouTube account or API key?

The TED talk comments example task needs no YouTube account, cookies or API key. The YouTube Comments Scraper reads only the comments that YouTube shows publicly to any visitor and never signs in.

### How many comments can the TED talk comments example task get from one big video?

In the Top order YouTube shows about 1,150 top-level comments of a video at most. To go deeper, set sort to newest: the TED talk comments example task then reads up to 10,000 top-level comments per video.

### What does the TED talk comments example task return for a video with comments turned off?

For a video with comments turned off, made for kids, removed or private, the TED talk comments example task returns one row of type video with the reason instead of comments.

### How do I run the TED talk comments example task on a schedule to get only new comments?

Run the TED talk comments example task on Apify Schedules with sort set to newest and Only new since last run on. The YouTube Comments Scraper can also be called through the Apify API or by AI agents over the Apify MCP server.

### Are likes and dates exact in the TED talk comments example task?

YouTube rounds like counts above 1,000 (3.4K) and shows relative dates (7 years ago), so the TED talk comments example task reads likeCount from that text and marks publishedAt as approximate.

## About this Actor

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