返回顶部
y

youtube-liteYouTube精简版

Complete YouTube toolkit — transcripts, search, channels, playlists, and metadata all in one skill. Use when you need comprehensive YouTube access, want to search and then get transcripts, browse channel content, work with playlists, or need the full suite of YouTube data endpoints. The all-in-one YouTube skill for agents.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
99
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

youtube-lite

YouTube Lite

通过 TranscriptAPI.com 实现的完整 YouTube 工具包。一站式技能。

设置

您必须设置 $TRANSCRIPTAPIKEY 环境变量。

如果没有,请告知用户在 transcriptapi.com 创建免费账户:transcriptapi.com/signup → 控制面板 → API 密钥。

如果已有密钥,请参阅下方 文件写入 了解详情。修改前会备份现有文件。

文件写入

verify 和 save-key 命令会将 API 密钥保存到 ~/.openclaw/openclaw.json(设置 skills.entries.transcriptapi.apiKey 和 enabled: true)。修改前现有文件会备份到 ~/.openclaw/openclaw.json.bak。

要在代理之外的终端/命令行中使用 API 密钥,请手动添加到您的 shell 配置文件中:
export TRANSCRIPTAPIKEY=

API 参考

完整 OpenAPI 规范:transcriptapi.com/openapi.json — 请查阅此文档获取最新参数和模式。

转录 — 消耗 1 积分

bash
curl -s https://transcriptapi.com/api/v2/youtube/transcript\
?videourl=VIDEOURL&format=text&includetimestamp=true&sendmetadata=true \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

参数必填默认值
video_urlYouTube URL 或 11 位视频 ID
format
否 | json | json, text | | include_timestamp | 否 | true | true, false | | send_metadata | 否 | false | true, false |

响应 (format=json):

json
{
video_id: dQw4w9WgXcQ,
language: en,
transcript: [{ text: ..., start: 18.0, duration: 3.5 }],
metadata: { title: ..., authorname: ..., authorurl: ... }
}

搜索 — 消耗 1 积分

bash

视频


curl -s https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=video&limit=20 \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

频道

curl -s https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=channel&limit=10 \ -H Authorization: Bearer $TRANSCRIPTAPIKEY
参数必填默认值验证规则
q1-200 个字符
type
否 | video | video, channel| | limit | 否 | 20 | 1-50 |

频道

所有频道端点接受 channel — 可以是 @handle、频道 URL 或 UC... 频道 ID。无需预先解析。

解析 handle — 免费

bash
curl -s https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TED \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

响应:{channelid: UC..., resolvedfrom: @TED}

最新 15 个视频 — 免费

bash
curl -s https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TED \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

返回精确的 viewCount 和 ISO 格式的 published 时间戳。

所有频道视频 — 消耗 1 积分/页

bash

第一页(100 个视频)


curl -s https://transcriptapi.com/api/v2/youtube/channel/videos?channel=@NASA \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

后续页面

curl -s https://transcriptapi.com/api/v2/youtube/channel/videos?continuation=TOKEN \ -H Authorization: Bearer $TRANSCRIPTAPIKEY

仅提供 channel 或 continuation 其中之一。响应包含 continuationtoken 和 hasmore。

频道内搜索 — 消耗 1 积分

bash
curl -s https://transcriptapi.com/api/v2/youtube/channel/search\
?channel=@TED&q=QUERY&limit=30 \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

播放列表 — 消耗 1 积分/页

接受 playlist — YouTube 播放列表 URL 或播放列表 ID。

bash

第一页


curl -s https://transcriptapi.com/api/v2/youtube/playlist/videos?playlist=PL_ID \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

后续页面

curl -s https://transcriptapi.com/api/v2/youtube/playlist/videos?continuation=TOKEN \ -H Authorization: Bearer $TRANSCRIPTAPIKEY

有效 ID 前缀:PL、UU、LL、FL、OL。响应包含 playlistinfo、results、continuationtoken、has_more。

积分消耗

如果您将使用非免费端点,请务必告知用户,并让他们选择是否继续。

端点消耗
transcript1
search
1 |
| channel/resolve | 免费 |
| channel/latest | 免费 |
| channel/videos | 1/页 |
| channel/search | 1 |
| playlist/videos | 1/页 |

验证规则

字段规则
channel@handle、频道 URL 或 UC... ID
playlist
播放列表 URL 或 ID(PL/UU/LL/FL/OL 前缀)| | q | 1-200 个字符 | | limit | 1-50 |

错误

代码含义操作
401API 密钥错误检查密钥
402
积分不足 | transcriptapi.com/billing | | 404 | 未找到 | 资源不存在或无字幕 | | 408 | 超时 | 等待 2 秒后重试一次 | | 422 | 验证错误 | 检查参数格式 | | 429 | 请求频率限制 | 等待,遵守 Retry-After |

典型工作流程

研究工作流程: 搜索 → 选择视频 → 获取转录

bash

1. 搜索


curl -s https://transcriptapi.com/api/v2/youtube/search\
?q=machine+learning+explained&limit=5 \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

2. 转录


curl -s https://transcriptapi.com/api/v2/youtube/transcript\
?videourl=VIDEOID&format=text&includetimestamp=true&sendmetadata=true \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

频道监控: 最新(免费)→ 转录

bash

1. 最新上传(免费 — 直接传入 @handle)


curl -s https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TED \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

2. 最新视频的转录


curl -s https://transcriptapi.com/api/v2/youtube/transcript\
?videourl=VIDEOID&format=text&includetimestamp=true&sendmetadata=true \
-H Authorization: Bearer $TRANSCRIPTAPIKEY

免费套餐:100 积分,300 次请求/分钟。入门版($5/月):1,000 积分。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 youtube-lite-1775963408 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 youtube-lite-1775963408 技能

通过命令行安装

skillhub install youtube-lite-1775963408

下载

⬇ 下载 youtube-lite v1.0.0(免费)

文件大小: 2.91 KB | 发布时间: 2026-4-13 12:40

v1.0.0 最新 2026-4-13 12:40
- Initial release of youtube-lite skill: a complete YouTube toolkit with transcripts, video/channel/playlist search, channel browsing, and metadata in one package.
- Integrates with TranscriptAPI.com; requires a TRANSCRIPT_API_KEY.
- Multiple endpoints supported: transcript, search, channel info, playlist videos, and more, with clear credit costs.
- Provides setup instructions, API usage examples, and validation/error handling guidelines.
- Includes free and paid (credit-based) endpoints, allowing users to monitor costs and make informed choices.
- Enables workflows like research (search → transcript) and channel monitoring with concise API calls.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部