# YouTube Shorts Comment Scraper

**Use case:** 

Scrape public comments from the YouTube Shorts URL in this task input. This task asks for newest comments and caps results at 50 comments for each Short. It saves flat dataset rows with comment text, author, time, likes, and Short details when available.

## Input

```json
{
  "shortsUrls": [
    {
      "url": "https://www.youtube.com/shorts/se50viFJ0AQ"
    }
  ],
  "commentOrder": "newest",
  "maxComments": 50
}
```

## Output

```json
{
  "shortUrl": {
    "label": "Short URL",
    "format": "string"
  },
  "shortTitle": {
    "label": "Short title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel name",
    "format": "string"
  },
  "channelUrl": {
    "label": "Channel URL",
    "format": "string"
  },
  "shortPublishedAt": {
    "label": "Short published at",
    "format": "string"
  },
  "shortViewCount": {
    "label": "Short view count",
    "format": "integer"
  },
  "shortLikeCount": {
    "label": "Short like count",
    "format": "integer"
  },
  "shortCommentCount": {
    "label": "Short comment count",
    "format": "integer"
  },
  "thumbnailUrl": {
    "label": "Thumbnail URL",
    "format": "string"
  },
  "music": {
    "label": "Music or audio",
    "format": "object"
  },
  "shortTags": {
    "label": "Short tags",
    "format": "array"
  },
  "commentId": {
    "label": "Comment ID",
    "format": "string"
  },
  "commentText": {
    "label": "Comment text",
    "format": "string"
  },
  "commentAuthor": {
    "label": "Comment author",
    "format": "string"
  },
  "commentAuthorUrl": {
    "label": "Comment author URL",
    "format": "string"
  },
  "commentPublishedAt": {
    "label": "Comment published at",
    "format": "string"
  },
  "commentLikeCount": {
    "label": "Comment like count",
    "format": "integer"
  },
  "commentReplyCount": {
    "label": "Comment reply count",
    "format": "integer"
  },
  "creatorHearted": {
    "label": "Creator hearted",
    "format": "boolean"
  }
}
```

## About this Actor

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