Yt

zeropointrepo/youtube-skills/clawhub/yt

作者 zeropointrepo4f7994b94e7d无许可证1K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库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 字幕、搜索结果和频道最新上传内容。

功能
该技能为智能体提供调用 TranscriptAPI HTTP 接口的说明,用于获取 YouTube 视频字幕、搜索视频或频道、列出频道最新上传内容,以及将 @handle 解析为频道 ID。它说明了必需的请求头、请求参数、积分消耗和错误码。产出包括字幕文本、搜索结果列表,以及包含观看次数和发布日期的频道上传元数据。
适用场景
当请求涉及 YouTube 内容时使用,例如粘贴的视频链接或 ID、@handle、视频摘要、频道最新上传或主题搜索。它不适用于上传视频或管理账号。
运行要求
需要能访问 transcriptapi.com 的网络,以及用于所有 API 请求的 TRANSCRIPT_API_KEY 环境变量(以 sk_ 开头);免费账号提供 100 积分。请求必须携带 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

bash
curl -s "https://transcriptapi.com/api/v2/youtube/transcript\?video_url=VIDEO_URL&format=text&include_timestamp=true&send_metadata=true" \  -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \  -H "User-Agent: YourAgent/1.0"

Search — 1 credit

bash
curl -s "https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=video&limit=10" \  -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \  -H "User-Agent: YourAgent/1.0"
ParamDefaultValues
q—1-200 chars (required)
typevideovideo, channel
limit201-50

Channel latest — FREE

bash
curl -s "https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TED" \  -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \  -H "User-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

bash
curl -s "https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TED" \  -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \  -H "User-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.

来源与署名

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

许可证: 无许可证

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

举报或申请下架