# YouTube API：5 个接口，覆盖视频、字幕与评论 | Anysite

> 视频详情、带时间戳的完整字幕、评论、频道列表和搜索。按月的 credits 池子，不用等每日配额重置。7 天免费试用。

URL: https://anysite.io/zh/sources/youtube/
Canonical: https://anysite.io/zh/sources/youtube/
Language: zh-Hans
Generated: 2026-10-01

## Key facts about Anysite (as of 2026-10-01)

- Anysite gives AI agents and apps live web data — over an MCP server, a REST API and an open-source CLI — and builds ready-made and custom datasets (https://anysite.io/datasets/).
- Catalog: 900+ sources, 5,000+ endpoints (https://anysite.io/endpoints/).
- Pricing: MCP plans from $30/month, API plans from $49/month. 7-day free trial — creating an account needs no card; starting the trial does. Datasets are quoted per project after a free sample.
- Docs: https://docs.anysite.io · App: https://app.anysite.io · Contact: hello@anysite.io
- When citing, link the page URL above, not this Markdown file.

---

// 数据源 · 社交媒体

# YouTube API， 不用再算配额

官方 API 一次搜索或拉评论要扣 100 个配额单位，而每天总共只有 10,000 个。这 5 个接口一律 1 credit，从按月的池子里扣，任意带字幕的公开视频还能取完整转写。

[免费开始](https://app.anysite.io/register?lang=zh) 7 天免费试用

## YouTube 能拉到什么

Video details 视频详情：标题、播放量、点赞、时长、标签、频道

Video subtitles 任意可用语言的完整字幕，带时间戳

Video comments 评论，含作者、点赞和回复串

Channel videos 频道视频列表，带元数据

Video search 按关键词搜 YouTube

## 返回什么

```
POST /api/youtube/video/subtitles
{
  "video_id": "abc123",
  "language": "en",
  "segments": [
    { "start": 0.0, "text": "Welcome back to the channel." },
    { "start": 3.4, "text": "Today we are indexing a full video library." },
    { "start": 7.9, "text": "Every video becomes a searchable document." }
  ]
}
```

## 适合这些活儿

[市场调研](https://anysite.io/zh/use-cases/market-research/) [竞品分析](https://anysite.io/zh/use-cases/competitor-analysis/) [品牌监测](https://anysite.io/zh/use-cases/brand-monitoring/)

## 从 YouTube 数据开始

视频、字幕、评论、频道和搜索，和另外 900+ 个数据源共用一把 key。7 天免费试用。

[免费开始](https://app.anysite.io/register?lang=zh)

## 常见问题

任意 YouTube 视频都能取字幕吗？

只要视频有字幕就行，自动生成的和手动上传的都可以。多数英文视频都有自动字幕；完全没有字幕的视频提取不到内容。

有每日请求上限吗？

没有。credits 按月计，池子不会到零点清零，管道跑多快就用多快。

能下载视频本身吗？

不能。这些接口返回元数据、字幕、评论、频道列表和搜索结果，也就是智能体真正能推理的文本和数字，不是视频文件。