# YouTube 视频采集：字幕文本+评论，每千个视频0.19美元起

**Use case:** 

输入关键词或粘贴 YouTube 频道、视频、Shorts、播放列表链接，获取播放量、点赞数、评论数、发布时间、标签和频道订阅数；字幕文本（带时间戳）和每个视频最多100条评论已包含在价格内。无需登录、无需 API Key。示例：按关键词采集最近一个月的视频。

## Input

```json
{
  "searchQueries": [
    "跨境电商"
  ],
  "maxVideos": 30,
  "channelSections": [
    "videos"
  ],
  "maxPosts": 10,
  "mode": "complete",
  "includeTranscripts": true,
  "includeComments": true,
  "maxComments": 50,
  "commentsSort": "top",
  "maxRepliesPerComment": 0,
  "sortBy": "relevance",
  "uploadDate": "month",
  "videoType": "any",
  "duration": "any",
  "onlyNewVideos": false,
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "type": {
    "label": "type",
    "format": "string"
  },
  "title": {
    "label": "title",
    "format": "string"
  },
  "url": {
    "label": "url",
    "format": "string"
  },
  "channelName": {
    "label": "channelName",
    "format": "string"
  },
  "viewCount": {
    "label": "viewCount",
    "format": "integer"
  },
  "likeCount": {
    "label": "likeCount",
    "format": "integer"
  },
  "commentCount": {
    "label": "commentCount",
    "format": "integer"
  },
  "commentsIncluded": {
    "label": "commentsIncluded",
    "format": "integer"
  },
  "duration": {
    "label": "duration",
    "format": "string"
  },
  "publishedAt": {
    "label": "publishedAt",
    "format": "string"
  },
  "category": {
    "label": "category",
    "format": "string"
  },
  "searchQuery": {
    "label": "searchQuery",
    "format": "string"
  },
  "sourceUrl": {
    "label": "sourceUrl",
    "format": "string"
  },
  "thumbnailUrl": {
    "label": "thumbnailUrl",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Scraper | $0.19/1K | Transcripts, Comments, Shorts Actor is ready to run with the inputs already set for "YouTube 视频采集：字幕文本+评论，每千个视频0.19美元起". [Sign up or log in](https://console.apify.com/create-task-from-example/eJyDqqn0gqoyHGAYd) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "YouTube 视频采集：字幕文本+评论，每千个视频0.19美元起" task

The YouTube Scraper | $0.19/1K | Transcripts, Comments, Shorts Actor will start running based on the input automatically. You can also change all the input fields, like search keywords, max videos per keyword or link, and more, to match your specific use case.

### 3. Receive the "YouTube 视频采集：字幕文本+评论，每千个视频0.19美元起" 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 type, title, url, 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 "YouTube 视频采集：字幕文本+评论，每千个视频0.19美元起" task via API](https://apify.com/monkey.d.scraping/youtube-scraper.md).

## FAQ

### 需要 YouTube API Key 或 Google 账号吗？

不需要。无需密钥、无需登录，也没有每日配额，只需要 Apify 账号，Free 套餐即可试用。

### 字幕文本和评论要额外付费吗？

不需要。字幕文本和每个视频最多100条评论已包含在视频价格内；超过100条的评论每1,000条0.03美元起。

### 可以导出到 Excel 吗？

可以。数据集可下载为 JSON、CSV、Excel，也可发送到 Google Sheets。

## About this Actor

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