YouTube API access without the official API quota hassle — transcripts, search, channels, playlists, and metadata with no Google API key needed. Use when the user needs YouTube data programmatically, wants to avoid Google API quotas, or asks for "youtube api", "get video data", "youtube without api key", "no quota youtube".
通过 TranscriptAPI.com 访问 YouTube 数据——无需 Google API 配额。
如果未设置 $TRANSCRIPTAPIKEY,请帮助用户创建账户(100 个免费积分,无需银行卡):
第 1 步 — 注册: 询问用户的邮箱。
bash
node ./scripts/tapi-auth.js register --email USER_EMAIL
→ 验证码发送至邮箱。询问用户:请检查邮箱中的 6 位验证码。
第 2 步 — 验证: 用户提供验证码后:
bash
node ./scripts/tapi-auth.js verify --token TOKENFROMSTEP_1 --otp CODE
API 密钥已保存至 ~/.openclaw/openclaw.json。详情见下方文件写入。修改前会对现有文件进行备份。
手动选项:transcriptapi.com/signup → 控制台 → API 密钥。
验证和保存密钥命令会将 API 密钥保存至 ~/.openclaw/openclaw.json(设置 skills.entries.transcriptapi.apiKey 和 enabled: true)。修改前会将现有文件备份至 ~/.openclaw/openclaw.json.bak。
要在代理之外的终端/命令行中使用 API 密钥,请手动添加到 shell 配置文件中:
export TRANSCRIPTAPIKEY=
完整 OpenAPI 规范:transcriptapi.com/openapi.json — 查阅此文档获取最新参数和模式。
所有端点:https://transcriptapi.com/api/v2/youtube/...
频道端点接受 channel — @handle、频道 URL 或 UC... ID。播放列表端点接受 playlist — 播放列表 URL 或 ID。
| 端点 | 方法 | 费用 |
|---|---|---|
| /transcript?video_url=ID | GET | 1 |
| /search?q=QUERY&type=video |
搜索视频:
bash
curl -s https://transcriptapi.com/api/v2/youtube/search\
?q=python+tutorial&type=video&limit=10 \
-H Authorization: Bearer $TRANSCRIPTAPIKEY
获取字幕:
bash
curl -s https://transcriptapi.com/api/v2/youtube/transcript\
?videourl=dQw4w9WgXcQ&format=text&includetimestamp=true&send_metadata=true \
-H Authorization: Bearer $TRANSCRIPTAPIKEY
解析频道句柄(免费):
bash
curl -s https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TED \
-H Authorization: Bearer $TRANSCRIPTAPIKEY
最新视频(免费):
bash
curl -s https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TED \
-H Authorization: Bearer $TRANSCRIPTAPIKEY
浏览频道上传内容(分页):
bash
curl -s https://transcriptapi.com/api/v2/youtube/channel/videos?channel=@NASA \
-H Authorization: Bearer $TRANSCRIPTAPIKEY
浏览播放列表(分页):
bash
curl -s https://transcriptapi.com/api/v2/youtube/playlist/videos?playlist=PLPLAYLISTID \
-H Authorization: Bearer $TRANSCRIPTAPIKEY
| 字段 | 规则 |
|---|---|
| channel | @handle、频道 URL 或 UC... ID |
| playlist |
| Google YouTube Data API | TranscriptAPI | |
|---|---|---|
| 配额 | 10,000 单位/天(100 次搜索) | 基于积分,无每日上限 |
| 设置 |
| 代码 | 含义 | 操作 |
|---|---|---|
| 401 | API 密钥无效 | 检查密钥 |
| 402 |
免费套餐:100 积分,300 请求/分钟。入门版($5/月):1,000 积分。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 youtube-api-1776374480 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 youtube-api-1776374480 技能
skillhub install youtube-api-1776374480
文件大小: 6.46 KB | 发布时间: 2026-4-17 16:20