---
title: "YouTube 数据接口：评论、字幕、频道 · SocialToAI"
canonical: https://socialtoai.app/zh/platforms/youtube/
updated: 2026-11-01
---

# YouTube API 数据接口

YouTube API（数据接口）可以搜视频，读视频详情、评论、账号资料和账号发布的视频，不用登录 YouTube 账号，也不用提供 Cookie。每次调用 2 积分（约 $0.004–$0.0067），失败不扣。YouTube 的内容不带作者粉丝数，这个字段返回 null。可以直接发 HTTP 请求，也可以通过 MCP 接到 AI 客户端里用。最近实测：2026-11-19。

- 页面：https://socialtoai.app/zh/platforms/youtube/
- 最近更新：2026-11-01
- 最近实测：2026-11-19

## 可用的动作

| 动作 | 返回什么 | 由什么参数选中 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- | --- |
| `search` | 按关键词找视频：正文、作者和播放或阅读数。 | — | `youtube.search` | 2 | [YouTube 搜索接口](https://socialtoai.app/zh/youtube-search-api.md) |
| `search` | 搜账号 | `type=user` | `youtube.search:user` | 2 | [YouTube 搜索接口](https://socialtoai.app/zh/youtube-search-api.md) |
| `detail` | 用编号或链接取一条视频：正文、作者、点赞数、评论数、播放或阅读数和发布时间。 | — | `youtube.detail` | 2 | [YouTube 详情接口](https://socialtoai.app/zh/youtube-detail-api.md) |
| `detail` | 视频的逐字稿 | `include=transcript` | `youtube.detail:transcript` | 2 | [YouTube 详情接口](https://socialtoai.app/zh/youtube-detail-api.md) |
| `comments` | 一条视频下的评论：正文、点赞数和回复数。 | — | `youtube.comments` | 2 | [YouTube 评论接口](https://socialtoai.app/zh/youtube-comments-api.md) |
| `comments` | 某条评论下的回复 | `reply_of` | `youtube.comments:replies` | 2 | [YouTube 评论接口](https://socialtoai.app/zh/youtube-comments-api.md) |
| `user_profile` | 一个账号：名称、简介、粉丝数和作品数。 | — | `youtube.user_profile` | 2 | [YouTube 账号资料接口](https://socialtoai.app/zh/youtube-user-profile-api.md) |
| `user_posts` | 一个账号最近发布的视频。 | — | `youtube.user_posts` | 2 | [YouTube 账号作品接口](https://socialtoai.app/zh/youtube-user-posts-api.md) |

YouTube 不提供：热榜。

和 TikTok 比，YouTube 的视频多给标题和图片，少给作者粉丝数、分享、收藏和话题标签；账号资料少给关注数。

## 调用示例

```bash
curl https://socialtoai.app/v1/search \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "youtube",
    "query": "meteor shower"
  }'
```

## YouTube 独有的接口

每个接口用自己的 op，通过 `POST /v1/call/{op}` 调用；完整的参数和返回字段在它自己的页面。

### 社区与列表

| 接口 | 做什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| 频道帖子 | 按频道编号或账号名取一页该 YouTube 频道“帖子”栏（原“社区”）里的帖子，从最新的开始。 | `youtube.community_posts` | 2 | [YouTube 频道帖子接口](https://socialtoai.app/zh/youtube-community-posts-api.md) |

### 内容与账号

| 接口 | 做什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| 帖子详情 | 按帖子编号或链接取一条 YouTube 频道帖子（原“社区”帖）。 | `youtube.community_post` | 2 | [YouTube 帖子详情接口](https://socialtoai.app/zh/youtube-community-post-api.md) |

## YouTube 给不了的字段

这些字段在对应的调用里始终是 null，并列在返回的 `unavailable` 里。

| 字段 | 哪些动作 |
| --- | --- |
| `text` | search |
| `published_at` | search, comments |
| `author.verified` | search, detail, user_posts |
| `author.followers` | search, detail, user_posts |
| `metrics.likes` | search |
| `metrics.comments` | search |
| `metrics.shares` | search, detail, user_posts |
| `metrics.collects` | search, detail, user_posts |
| `metrics.reposts` | search, detail, user_posts |
| `hashtags` | search, detail, user_posts |
| `is_pinned` | search, detail, user_posts |
| `url` | comments |
| `content_id` | comments |
| `following` | user_profile |

## 办成一件事多少钱

| 要做的事 | 怎么算 | 积分 | 约合 |
| --- | --- | --- | --- |
| 搜 1,000 条 YouTube 结果 | 每页通常 20 条，50 页 | 100 积分 | 约 ¥2.4（$0.33） |
| 读 1,000 条 YouTube 评论 | 每页通常 20 条，50 页 | 100 积分 | 约 ¥2.4（$0.33） |
| 回填一个 YouTube 账号：200 条视频列表加 20 条全文 | 7 页列表 + 20 次全文 | 54 积分 | 约 ¥1.3（$0.18） |
| 每天盯 1 个 YouTube 账号，一个月最多 | 每次 10 积分 × 31 天 | 310 积分 | 约 ¥7.4（$1.03） |

按 $10 档算，买得越多单价越低。监控只在你开启时运行，随时可以暂停，没有订阅。

## 在 AI 里直接问

- 这周 YouTube 上，家用咖啡和抹茶哪个更火？ → search, search: 4 积分

- 读一下这条 YouTube 视频的评论，告诉我大家在抱怨什么。 → detail, comments × 3: 8 积分

- 在 YouTube 上找 5 个发露营咖啡内容的账号，看看他们最近发了什么。 → search, user_posts × 5: 12 积分

[YouTube MCP 服务器](https://socialtoai.app/zh/mcp/youtube.md)

## 能读 YouTube 的现成工具

- [品牌口碑](https://socialtoai.app/zh/tools/brand-buzz.md)：各平台上的态度占比、提到最多的事，以及背后的帖子
- [评论分析](https://socialtoai.app/zh/tools/comment-insights.md)：评论里的话题和各自占比，还有提问、想买和投诉
- [账号动态](https://socialtoai.app/zh/tools/account-watch.md)：每个账号最近发了什么，哪条明显好于平时
- [找达人](https://socialtoai.app/zh/tools/find-creators.md)：做这类内容的达人：体量、近期作品和契合度
- [达人档案](https://socialtoai.app/zh/tools/creator-card.md)：这个人在其他平台的账号、各自的数据，以及是同一人的把握
- [批量链接数据](https://socialtoai.app/zh/tools/batch-stats.md)：每条链接一行，给出现在的数字；失效的链接会标出来
- [爆款发现](https://socialtoai.app/zh/tools/viral-finder.md)：明显超出作者平时水平的内容

## 官方 API

YouTube 提供官方 YouTube Data API。开发者在 Google Cloud 项目中启用后，用 API Key 即可读取公开视频、频道、评论和搜索结果，有免费的每日配额；申请更多配额须通过合规审核。

来源：[YouTube 官方开发者文档](https://developers.google.com/youtube/v3/getting-started)，核对于 2026-10-17。

|  | 谁能用 | 费用 | 限制 | 来源 |
| --- | --- | --- | --- | --- |
| YouTube Data API v3 | 有 Google Cloud 项目和 API Key 的开发者。 | 配额内免费：默认每天 100 次 search.list，其余接口合计 10,000 单位。 | 读一个列表通常 1 单位；要更多配额得填 Google 的配额扩展申请表。 | [developers.google.com](https://developers.google.com/youtube/v3/getting-started)，核对于 2026-10-29 |
| 字幕下载（captions.download） | 对视频有编辑权限、已登录授权的用户。 | 每次 200 配额单位。 | 只能下载自己能编辑的视频的字幕，任意公开视频不行。 | [developers.google.com](https://developers.google.com/youtube/v3/docs/captions/download)，核对于 2026-10-29 |
| SocialToAI | 有 Key 就能用，不用你的 YouTube 账号，也不用审核。 | 每次 2 积分起（约 $0.0067），失败不扣。 | 只读公开可见的内容；一次调用最多 100 条。 | https://socialtoai.app/zh/pricing.md |

在这里读 1,000 条视频：约 50 次 `youtube.search` 调用（每页通常 20 条），共 100 积分，按第一档约 $0.33。 [算一下要多少钱](https://socialtoai.app/zh/free-tools/api-cost-estimator.md)

[YouTube 官方 API 的申请条件和价格](https://socialtoai.app/zh/does-youtube-have-an-api.md)

- [YouTube 字幕接口](https://socialtoai.app/zh/youtube-transcript-api.md)：按链接取任意公开视频的完整字幕。
- [各平台评论接口对比](https://socialtoai.app/zh/comments-api.md)：哪些平台能取评论、每页多少条、多少积分。
- [各平台字幕接口对比](https://socialtoai.app/zh/transcript-api.md)：哪些平台能取字幕、带不带时间。
- [视频评论分析：让 AI 读完评论，带上原话](https://socialtoai.app/zh/how-to/analyze-comments-with-quotes.md)：评论在说什么，带原话：用工具还是让 AI 读，各平台价格，一次录制
- [批量查几百条链接的互动数据](https://socialtoai.app/zh/how-to/check-stats-for-many-links.md)：一次查几百条链接的数字：各平台价格、赠送积分能跑多少、什么时候会停
- [每天盯竞品账号：发了什么，哪条比平时好](https://socialtoai.app/zh/monitors/competitors.md)：每天盯竞品账号：新发了什么、哪条比平时好，每个账号 9 积分起
- [每天盯品牌口碑：新讨论和背后的原帖](https://socialtoai.app/zh/monitors/brand.md)：每天盯品牌口碑：态度占比和背后的原帖，每次 16 积分起
- [YouTube MCP 服务器](https://socialtoai.app/zh/mcp/youtube.md)：让你的 AI 直接读 YouTube。
