闲社服务运行正常AI智能体自动化平台
t

TranscriptAPI工具包

技能标识:transcriptapi

Full TranscriptAPI toolkit — fetch YouTube transcripts, search videos and channels, browse channel uploads, get latest videos, and explore playlists. Use when the user wants to work with YouTube content programmatically, get transcripts for summarization or analysis, find videos, or monitor channels. Triggers on YouTube URLs, "transcript", "transcriptapi", "video summary", "what did they say", "find videos about", "search youtube".

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.4.1
检测标记
后台标记通过
免费
免费获取
3
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

TranscriptAPI工具包

TranscriptAPI

通过 TranscriptAPI.com 获取完整的 YouTube 数据工具包。字幕、搜索、频道、播放列表——一个 API 密钥即可。

设置

如果未设置 $TRANSCRIPTAPIKEY,请帮助用户创建账户(100 个免费积分,无需银行卡):

第 1 步 — 注册: 询问用户的邮箱。

bash
node ./scripts/tapi-auth.js register --email USER_EMAIL

→ 一次性密码(OTP)已发送至邮箱。请询问用户:请检查您的邮箱,获取 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=

API 参考

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

认证

所有请求:-H Authorization: Bearer $TRANSCRIPTAPIKEY

端点

频道端点接受 channel 参数——可以是 @handle、频道 URL 或 UC... ID。无需预先解析。播放列表端点接受 playlist 参数——可以是播放列表 URL 或 ID。

GET /api/v2/youtube/transcript — 1 积分

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

参数必填默认值验证
video_url是—YouTube URL 或 11 字符视频 ID
format
否 | json | json 或 text | | include_timestamp | 否 | true | true 或 false | | send_metadata | 否 | false | true 或 false |

接受:https://youtube.com/watch?v=ID、https://youtu.be/ID、youtube.com/shorts/ID 或纯 ID。

响应(format=json):

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

GET /api/v2/youtube/search — 1 积分

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

参数必填默认值验证
q是—1-200 字符(修剪后)
type
否 | video | video 或 channel| | limit | 否 | 20 | 1-50 |

响应(type=video):

json
{
results: [
{
type: video,
videoId: dQw4w9WgXcQ,
title: Rick Astley - Never Gonna Give You Up,
channelId: UCuAXFkgsw1L7xaCfnd5JJOw,
channelTitle: Rick Astley,
channelHandle: @RickAstley,
channelVerified: true,
lengthText: 3:33,
viewCountText: 1.5B views,
publishedTimeText: 14 years ago,
hasCaptions: true,
thumbnails: [{ url: ..., width: 120, height: 90 }]
}
],
result_count: 20
}

响应(type=channel):

json
{
results: [
{
type: channel,
channelId: UCuAXFkgsw1L7xaCfnd5JJOw,
title: Rick Astley,
handle: @RickAstley,
subscriberCount: 4.2M subscribers,
verified: true,
rssUrl: https://www.youtube.com/feeds/videos.xml?channel_id=UC...
}
],
result_count: 5
}

GET /api/v2/youtube/channel/resolve — 免费(0 积分)

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

参数必填验证
input是1-200 字符 — @handle、URL 或 UC... ID

响应:

json
{ channelid: UCsT0YIqwnpJCM-mx7-gSA4Q, resolvedfrom: @TED }

如果输入已经是有效的 UC[a-zA-Z0-9_-]{22} ID,则直接返回,无需查询。

GET /api/v2/youtube/channel/videos — 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条件必填@handle、频道 URL 或 UC... ID
continuation
条件必填 | 非空字符串(后续页面) |

请提供 channel 或 continuation 中的其中一个。

响应:

json
{
results: [{
videoId: abc123xyz00,
title: Latest Video,
channelId: UCsT0YIqwnpJCM-mx7-gSA4Q,
channelTitle: TED,
channelHandle: @TED,
lengthText: 15:22,
viewCountText: 3.2M views,
thumbnails: [...],
index: 0
}],
playlist_info: {title: Uploads from TED, numVideos: 5000},
continuation_token: 4qmFsgKlARIYVVV1...,
has_more: true
}

GET /api/v2/youtube/channel/latest — 免费(0 积分)

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

参数必填验证
channel是@handle、频道 URL 或 UC... ID

通过 RSS 返回最近 15 个视频,包含精确观看次数和 ISO 时间戳。

响应:

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 transcriptapi-1776374615 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 transcriptapi-1776374615 技能

通过命令行安装

skillhub install transcriptapi-1776374615

下载

⬇ 下载 transcriptapi v1.4.1(免费)

文件大小: 7.68 KB | 发布时间: 2026-4-17 16:14

v1.4.1 最新 2026-4-17 16:14
ClawHub variant: minimal tapi-auth.js v3.0.0, only writes to ~/.openclaw/openclaw.json
返回顶部