Yt

ZeroPointRepo/youtube-skills/skills/yt

作者 ZeroPointRepo4f7994b94e7d5e250c3b51102d609992e04d5d0d无许可证1K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库2天前更新

Use when YouTube is relevant: pasted video links or IDs, @handles, quick video lookups, summaries, channel latest uploads, topic search, or any request involving YouTube content — even if YouTube is not mentioned explicitly. Covers transcripts, search, and channel latest. Not for uploads or account management.

AI 生成的概览

通过 TranscriptAPI 服务获取 YouTube 字幕、搜索结果和频道最新上传视频。

功能
提供通过 HTTP 调用 TranscriptAPI 接口的说明,用于获取 YouTube 视频字幕、搜索视频或频道、列出频道最新上传内容,以及将 @handle 解析为频道 ID。文档说明了必需的请求头、参数、积分消耗和错误码,并指向身份验证设置和可直接运行的 curl 示例参考文件。其产出为字幕文本、搜索结果和频道上传列表,而非文件。
适用场景
适用于涉及 YouTube 内容的请求,例如粘贴的视频链接或 ID、@handle、视频摘要、频道最新上传或主题搜索。不适用于上传视频或账号管理。
运行要求
需要访问 transcriptapi.com 的网络连接、TRANSCRIPT_API_KEY 环境变量(提供免费额度),以及每个请求都要携带 Authorization bearer 请求头和非默认的 User-Agent 请求头。无需额外运行时或依赖;该技能不包含脚本,只有参考文档。

yt

Quick YouTube lookup via TranscriptAPI.com.

Setup

If $TRANSCRIPT_API_KEY is not set, read references/auth-setup.md [blocked] and follow the instructions there to get and store the key.

Required Headers

Every request needs two headers:

  • Authorization: Bearer $TRANSCRIPT_API_KEY
  • User-Agent: your agent's name and version if known (e.g. HermesAgent/0.11.0, ClaudeCode/1.0). Version is optional — agent name alone is fine. Do not omit this header or send a bare default — Cloudflare will return a 403 (error code 1010) and block the request.

API Reference

Full OpenAPI spec: transcriptapi.com/openapi.json — consult this for the latest parameters and schemas.

Transcript — 1 credit

http
GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_URL&format=text&include_timestamp=true&send_metadata=trueAuthorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0

Search — 1 credit

http
GET https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=video&limit=10Authorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0
ParamDefaultValues
q—1-200 chars (required)
typevideovideo, channel
limit201-50

Channel latest — FREE

http
GET https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TEDAuthorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0

Returns last 15 videos with exact view counts and publish dates. Accepts @handle, channel URL, or UC... ID.

Resolve handle — FREE

http
GET https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TEDAuthorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0

Use to convert @handle to UC... channel ID.

Errors

CodeMeaningAction
401Bad API keyCheck key
402No creditstranscriptapi.com/billing
403/1010Cloudflare blockAdd or fix User-Agent header
404Not foundNo captions or resource doesn't exist
408TimeoutRetry once

Free tier: 100 credits. Search and transcript cost 1 credit. Channel latest and resolve are free.

Copy-paste examples

Every request in this file as a ready-to-run one-liner: references/curl-examples.md [blocked]

来源与署名

来源:ZeroPointRepo/youtube-skills位于skills/yt提交4f7994b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架