返回顶部
y

youtube-playlistYouTube播放列表

Browse YouTube playlists and fetch video transcripts. Use when the user shares a playlist link, asks "what's in this playlist", "list playlist videos", "browse playlist content", or wants to work with playlist videos and get their transcripts.

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

youtube-playlist

YouTube 播放列表

通过 TranscriptAPI.com 浏览播放列表并获取转录文本。

设置

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

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

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

→ 验证码已发送至邮箱。询问用户:请检查您的邮箱,获取 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 — 请查阅此文档获取最新参数和模式。

GET /api/v2/youtube/playlist/videos — 1 积分/页

分页播放列表视频列表(每页 100 个)。接受 playlist 参数 — YouTube 播放列表 URL 或播放列表 ID。

bash

第一页


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

后续页面

curl -s https://transcriptapi.com/api/v2/youtube/playlist/videos?continuation=TOKEN \ -H Authorization: Bearer $TRANSCRIPTAPIKEY
参数必需验证条件
playlist条件必需播放列表 URL 或 ID(PL/UU/LL/FL/OL 前缀)
continuation
条件必需 | 非空字符串 |

仅提供 playlist 或 continuation 中的一个,不可同时提供。

接受的播放列表 ID 前缀:

  • - PL — 用户创建的播放列表
  • UU — 频道上传播放列表
  • LL — 喜欢的视频
  • FL — 收藏夹
  • OL — 其他系统播放列表

响应:

json
{
results: [
{
videoId: abc123xyz00,
title: 播放列表视频标题,
channelId: UCuAXFkgsw1L7xaCfnd5JJOw,
channelTitle: 频道名称,
channelHandle: @handle,
lengthText: 10:05,
viewCountText: 150万次观看,
thumbnails: [{ url: ..., width: 120, height: 90 }],
index: 0
}
],
playlist_info: {
title: 最佳科学讲座,
numVideos: 47,
description: 顶级科学演讲,
ownerName: TED,
viewCount: 5000000
},
continuation_token: 4qmFsgKlARIYVVV1...,
has_more: true
}

分页流程:

  1. 1. 首次请求:?playlist=PLxxx — 返回前 100 个视频 + continuationtoken
  2. 后续请求:?continuation=TOKEN — 返回接下来 100 个视频 + 新 token
  3. 重复直到 hasmore: false 或 continuation_token: null

工作流程:播放列表 → 转录文本

bash

1. 列出播放列表视频


curl -s https://transcriptapi.com/api/v2/youtube/playlist/videos?playlist=PLPLAYLISTID \
-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

从 URL 提取播放列表 ID

从 https://www.youtube.com/playlist?list=PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf 中,播放列表 ID 为 PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf。您也可以直接将完整 URL 传递给 playlist 参数。

错误

代码含义操作
400同时或未提供参数仅提供 playlist 或 continuation 中的一个
402
积分不足 | transcriptapi.com/billing | | 404 | 未找到播放列表 | 检查播放列表是否为公开 | | 408 | 超时 | 重试一次 | | 422 | 播放列表格式无效 | 必须是有效的播放列表 URL 或 ID |

每页消耗 1 积分。免费套餐:100 积分,每分钟 300 次请求。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 youtube-playlist-1776374489 技能

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

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

通过命令行安装

skillhub install youtube-playlist-1776374489

下载

⬇ 下载 youtube-playlist v1.4.1(免费)

文件大小: 6.6 KB | 发布时间: 2026-4-17 15:59

v1.4.1 最新 2026-4-17 15:59
ClawHub variant: minimal tapi-auth.js v3.0.0, only writes to ~/.openclaw/openclaw.json

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部