youtube-transcript-skills
它能做什么
这个工具可以获取 YouTube 视频中的口述文字(即字幕文本),还支持搜索视频和频道,以及查看播放列表的内容。它使用一项免费服务,注册时不需要绑定信用卡。
适用场景
- ✓当你想了解 YouTube 视频里说了什么,但又不想看视频时。
- ✓当你需要在 YouTube 上查找特定视频或频道时。
- ✓当你想查看 YouTube 播放列表中的所有视频时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/youtube-transcript-skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“给我看看 XYZ 频道里那个关于人工智能的视频的字幕。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会连接一项在线服务,获取 YouTube 视频中的口述文字。根据你的需求,它还可以搜索视频或播放列表。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
YouTube Transcript
Overview
Fetches transcripts, search results, and playlist/channel data from YouTube
via the getyoutubetranscript.com REST
API, so an agent can summarize, quote, search, or analyze a video's actual
spoken content without the user copy-pasting it in by hand. No yt-dlp and
no Google API key required.
source_repo: tubeagentkit/youtube-transcript-skillssource_type: community
When to Use This Skill
- Use when the user wants a YouTube video's transcript fetched, summarized, quoted, or analyzed.
- Use when the user wants to search YouTube (globally, or within one channel by handle).
- Use when the user wants a channel handle resolved to a channel ID, or wants a channel's info and upload history.
- Use when the user wants the videos in a YouTube playlist.
How It Works
Step 1: Get an API key
Every call needs an API key: the YOUTUBE_TRANSCRIPT_API_KEY environment
variable, or one the user has already provided. If neither exists, the skill
can sign the user up for a free account (100 credits, no card required) via a
two-step email + verification-code flow against the API - only after the
user has explicitly given consent and an email address to use.
Step 2: Call the API
Base URL: https://getyoutubetranscript.com/api/v1. Send the key as
Authorization: Bearer <API_KEY> or x-api-key: <API_KEY>.
GET /transcript?v=<VIDEO_ID_OR_URL>&language=en- fetch a transcript.GET /search?q=<query>&type=video|channel- search YouTube.GET /resolve?handle=@name- resolve a channel handle to a channel ID (free).GET /channel/latest?channel=@name- channel info and latest videos (free).GET /channel/videos?channel=@name- a channel's full upload history (paginated).GET /channel/search?channel=@name&q=<query>- search within a channel (paginated).GET /playlist?list=<playlist ID or URL>- playlist videos (paginated).
Step 3: Handle errors and pagination
Every error is JSON with a stable code (e.g. TRANSCRIPT_NOT_FOUND,
PAYMENT_REQUIRED, RATE_LIMITED) and a matching HTTP status - relay the
message field to the user rather than guessing at a fix. Paginated
endpoints return an opaque data.continuation_token; pass it back verbatim
as continuation to get the next page, null means no more pages.
Examples
Example 1: Summarize a video
curl -s "https://getyoutubetranscript.com/api/v1/transcript?v=jNQXAC9IVRw&language=en" \
-H "Authorization: Bearer $YOUTUBE_TRANSCRIPT_API_KEY"
Example 2: Browse a channel's uploads
curl -s "https://getyoutubetranscript.com/api/v1/channel/videos?channel=@mkbhd" \
-H "Authorization: Bearer $YOUTUBE_TRANSCRIPT_API_KEY"
Best Practices
- Do reuse an existing
YOUTUBE_TRANSCRIPT_API_KEYbefore offering to create a new account. - Do ask explicit consent before sending an email address anywhere during signup.
- Don't retry a
402 PAYMENT_REQUIREDresponse - direct the user to top up instead. - Don't hammer a
429 RATE_LIMITEDresponse in a retry loop - back off.
Limitations
- The transcript endpoint returns the full spoken text as one string; there is no per-line timestamp breakdown.
- This skill does not replace environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, or safety boundaries are missing.
Security & Safety Notes
- This skill only makes outbound HTTPS requests to
getyoutubetranscript.comendpoints, plus - during first-time setup - an email address the user explicitly provides. It runs no other shell commands and installs nothing. - Never persist a newly issued API key to a shell profile or other file without the user's explicit confirmation first.
Common Pitfalls
- Problem: Assuming the transcript response includes timestamps. Solution: Tell the user timestamps aren't available from this endpoint rather than inventing them.
Related Skills
@youtube-full- an alternative YouTube transcript/search/channel/playlist skill backed by a different upstream API.
常见问题
使用这个工具需要付费吗?
不需要。这项服务有免费套餐,注册时不需要信用卡。不过可能会有使用次数限制。
文字稿会标注每段话的时间戳吗?
不会。这个工具只返回完整的口述文字,不会标出每个字词确切的说话时间。
使用这个工具需要 YouTube 账号吗?
不需要。使用这个工具不需要 YouTube 账号。
详情
作者的原始描述
Fetch YouTube video transcripts, search videos/channels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.
热度
- GitHub 星标
- 48k
- 排名
- #6232
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。