← 返回 Skills 市场
wangzhiming1999

Felo YouTube Subtitling

作者 wangzhiming · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
340
总下载
0
收藏
3
当前安装
2
版本数
在 OpenClaw 中安装
/install felo-youtube-subtitling
功能描述
Fetch YouTube video subtitles/captions using Felo YouTube Subtitling API. Use when users ask to get YouTube subtitles, extract captions from a video, fetch t...
使用说明 (SKILL.md)

\r \r

Felo YouTube Subtitling Skill\r

\r

When to Use\r

\r Trigger this skill when the user wants to:\r \r

  • Get subtitles or captions from a YouTube video\r
  • Extract transcript by video ID or video URL\r
  • Fetch subtitles in a specific language (e.g. en, zh-CN)\r
  • Get subtitles with timestamps for analysis or translation\r \r Trigger keywords (examples):\r \r
  • YouTube subtitles, get captions, video transcript, extract subtitles, YouTube 字幕\r
  • Explicit: /felo-youtube-subtitling, "use felo youtube subtitling"\r \r Do NOT use for:\r \r
  • Real-time search (use felo-search)\r
  • Web page content (use felo-web-fetch)\r
  • Generating slides (use felo-slides)\r \r

Setup\r

\r

1. Get API key\r

\r

  1. Visit felo.ai\r
  2. Open Settings -> API Keys\r
  3. Create and copy your API key\r \r

2. Configure environment variable\r

\r Linux/macOS:\r \r

export FELO_API_KEY="your-api-key-here"\r
```\r
\r
Windows PowerShell:\r
\r
```powershell\r
$env:FELO_API_KEY="your-api-key-here"\r
```\r
\r
## How to Execute\r
\r
### Option A: Use the bundled script or packaged CLI\r
\r
**Script** (from repo):\r
\r
```bash\r
node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs --video-code "dQw4w9WgXcQ" [options]\r
```\r
\r
**Packaged CLI** (after `npm install -g felo-ai`):\r
\r
```bash\r
felo youtube-subtitling -v "dQw4w9WgXcQ" [options]\r
# Short forms: -v (video-code), -l (language), -j (json)\r
```\r
\r
Options:\r
\r
| Option | Default | Description |\r
|--------|---------|-------------|\r
| `--video-code` / `-v` | (required) | YouTube **video URL** or **video ID** (e.g. `https://youtube.com/watch?v=ID` or `dQw4w9WgXcQ`) |\r
| `--language` / `-l` | - | Subtitle language code (e.g. `en`, `zh-CN`) |\r
| `--with-time` | false | Include start/duration timestamps in each segment |\r
| `--json` / `-j` | false | Print full API response as JSON |\r
\r
You can pass either a **full YouTube link** or the **11-character video ID**:\r
\r
- Supported URLs: `https://www.youtube.com/watch?v=ID`, `https://youtu.be/ID`, `https://youtube.com/embed/ID`\r
- Or plain ID: `dQw4w9WgXcQ`\r
\r
Examples:\r
\r
```bash\r
# With video URL\r
node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs --video-code "https://www.youtube.com/watch?v=dQw4w9WgXcQ"\r
felo youtube-subtitling -v "https://youtu.be/dQw4w9WgXcQ"\r
\r
# With video ID\r
node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs -v "dQw4w9WgXcQ" --language zh-CN\r
\r
# With timestamps\r
node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs -v "dQw4w9WgXcQ" --with-time --json\r
```\r
\r
### Option B: Call API with curl\r
\r
```bash\r
curl -X GET "https://openapi.felo.ai/v2/youtube/subtitling?video_code=dQw4w9WgXcQ" \\r
  -H "Authorization: Bearer $FELO_API_KEY"\r
```\r
\r
## API Reference (summary)\r
\r
- **Endpoint**: `GET /v2/youtube/subtitling`\r
- **Base URL**: `https://openapi.felo.ai`. Override with `FELO_API_BASE` env if needed.\r
- **Auth**: `Authorization: Bearer YOUR_API_KEY`\r
\r
### Query parameters\r
\r
| Parameter | Type | Required | Default | Description |\r
|-----------|------|----------|---------|-------------|\r
| video_code | string | Yes | - | YouTube video ID (e.g. dQw4w9WgXcQ) |\r
| language | string | No | - | Language code (e.g. en, zh-CN) |\r
| with_time | boolean | No | false | Include start/duration per segment |\r
\r
### Response (200)\r
\r
```json\r
{\r
  "code": 0,\r
  "message": "success",\r
  "data": {\r
    "title": "Video title",\r
    "contents": [\r
      { "start": 0.32, "duration": 14.26, "text": "Subtitle text" }\r
    ]\r
  }\r
}\r
```\r
\r
With `with_time=false`, `start`/`duration` may be absent or zero. `contents[].text` is always present.\r
\r
### Error codes\r
\r
| HTTP | Code | Description |\r
|------|------|-------------|\r
| 400 | - | Parameter validation failed (e.g. missing video_code) |\r
| 401 | INVALID_API_KEY | API key invalid or revoked |\r
| 500/502 | YOUTUBE_SUBTITLING_FAILED | Service error or subtitles unavailable for video |\r
\r
## Output Format\r
\r
- Without `--json`: print title and then each segment's text (one per line or concatenated). If `--with-time`, output includes timestamps.\r
- With `--json`: print full API response.\r
\r
On failure (no subtitles, API error): stderr message and exit 1. Example:\r
\r
```\r
YouTube subtitling failed for video dQw4w9WgXcQ: YOUTUBE_SUBTITLING_FAILED\r
```\r
\r
## Important Notes\r
\r
- Not all videos have subtitles; the API may return an error for some videos.\r
- Language code must match a subtitle track available for the video.\r
- Same `FELO_API_KEY` as other Felo skills.\r
\r
## References\r
\r
- [Felo YouTube Subtitling API](https://openapi.felo.ai/docs/api-reference/v2/youtube-subtitling.html)\r
- [Felo Open Platform](https://openapi.felo.ai/docs/)\r
安全使用建议
The skill appears to be what it claims (calls the Felo subtitling API), but the registry metadata failed to declare the required FELO_API_KEY (and optional FELO_API_BASE). Before installing or using it: 1) Confirm the FELO_API_KEY is created on felo.ai and is a scoped, revocable API key you are comfortable exposing to this tool; 2) Do not set FELO_API_BASE unless you explicitly trust the endpoint — if you set it, the skill will send your API key to that host; 3) Prefer creating a low-privilege key that can be revoked quickly; 4) If you need stronger assurance, ask the publisher to update registry metadata to declare FELO_API_KEY and optionally FELO_API_BASE, or inspect and run the included script locally to verify behavior. The omission in metadata is a transparency issue — treat it as a risk until clarified.
功能分析
Type: OpenClaw Skill Name: felo-youtube-subtitling Version: 1.0.1 The skill is a straightforward implementation for fetching YouTube subtitles via the Felo API. The core logic in `run_youtube_subtitling.mjs` uses standard Node.js APIs to communicate with the documented endpoint (openapi.felo.ai) and lacks any high-risk behaviors such as arbitrary code execution, local file access, or data exfiltration beyond the intended API parameters.
能力评估
Purpose & Capability
The skill's name, description, SKILL.md, README, and bundled script are coherent with the stated purpose (fetching YouTube subtitles via the Felo API). However, the registry metadata claims no required environment variables or primary credential, while the runtime instructions and script explicitly require FELO_API_KEY (and optionally FELO_API_BASE). That metadata omission is inconsistent and reduces transparency.
Instruction Scope
SKILL.md and the script keep scope to the stated task: extracting a video ID, calling the Felo openapi /v2/youtube/subtitling endpoint with an Authorization: Bearer header, and printing results. The instructions do not request unrelated files, system credentials, or broad system access.
Install Mechanism
There is no install spec (instruction-only with a bundled Node script). No external downloads or installers are invoked by the skill. It assumes a Node runtime is available to run the included script.
Credentials
The script legitimately needs FELO_API_KEY and optionally FELO_API_BASE; those are proportionate to calling the Felo API. However, the skill registry metadata omits these requirements entirely. Additionally, FELO_API_BASE can be overridden which — if set to a malicious endpoint — would cause the script to send your FELO_API_KEY to an attacker-controlled server. The presence of an undeclared required secret and an overridable API base are two transparency/privilege issues.
Persistence & Privilege
The skill is not always-on and does not request elevated or persistent system-wide privileges. It does not modify other skills' configs or persist credentials beyond reading environment variables at runtime.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install felo-youtube-subtitling
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /felo-youtube-subtitling 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Re-publish
v1.0.0
- Initial release of felo-youtube-subtitling skill. - Fetches YouTube video subtitles or captions using the Felo YouTube Subtitling API. - Supports fetching subtitles by video ID or URL, language selection, and optional timestamps. - Usable via CLI, script, or direct API call; provides clear setup and usage instructions. - Handles error cases (e.g., missing subtitles, invalid API key) with descriptive messages.
元数据
Slug felo-youtube-subtitling
版本 1.0.1
许可证
累计安装 3
当前安装数 3
历史版本数 2
常见问题

Felo YouTube Subtitling 是什么?

Fetch YouTube video subtitles/captions using Felo YouTube Subtitling API. Use when users ask to get YouTube subtitles, extract captions from a video, fetch t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 340 次。

如何安装 Felo YouTube Subtitling?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install felo-youtube-subtitling」即可一键安装,无需额外配置。

Felo YouTube Subtitling 是免费的吗?

是的,Felo YouTube Subtitling 完全免费(开源免费),可自由下载、安装和使用。

Felo YouTube Subtitling 支持哪些平台?

Felo YouTube Subtitling 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Felo YouTube Subtitling?

由 wangzhiming(@wangzhiming1999)开发并维护,当前版本 v1.0.1。

💬 留言讨论