← 返回
安全合规 Key 中文

u2-downloader

Download YouTube videos by URL in various resolutions using a pay-per-use API with credit-based authentication and no charge on failed downloads.
使用按次付费 API 通过 URL 下载 YouTube 视频,支持多种分辨率,认证采用积分制,下载失败不收费。
xjouska
安全合规 clawhub v1.0.3 1 版本 99779.7 Key: 需要
★ 2
Stars
📥 866
下载
💾 10
安装
1
版本
#latest

概述

YouTube Video Downloader Skill

Download any YouTube video in various resolutions with a simple command. Supports 360p, 480p, 720p, 1080p, best quality, and audio-only extraction.

Quick Install

Just tell OpenClaw:

> "帮我安装这个 skill:https://clawhub.ai/XJouska/u2-downloader"

OpenClaw will ask you for an API Key. Follow these steps to get one:

  1. Go to https://u2foru.site and register an account
  2. Navigate to the API Keys page (or visit https://u2foru.site/?page=apikeys)
  3. Click Generate to create your API Key (format: sk-yt-xxxxx)
  4. Copy the key and paste it to OpenClaw when prompted

That's it! You're ready to use the skill.

Usage

Once installed, just tell OpenClaw what you want. For example:

> "帮我下载这个 YouTube 视频:https://youtube.com/watch?v=dQw4w9WgXcQ"

> "Download this video in 1080p: https://youtube.com/watch?v=xxxxx"

Supported resolutions: 360p, 480p, 720p (default), 1080p, best, audio-only.

Authentication

All API calls require an API Key in the Authorization header:

Authorization: Bearer sk-yt-xxxxx

Get your API Key at: https://u2foru.site/?page=apikeys

Endpoints

POST /api/v1/skill/download

Download a YouTube video.

Request:

{
  "youtube_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "resolution": "720"
}

Parameters:

  • youtube_url (required): YouTube video URL
  • resolution (optional): "360", "480", "720", "1080", "best", "audio". Default: "720"

Response (success):

{
  "success": true,
  "download_url": "https://oss-bucket.aliyuncs.com/skill/abc123/video.mp4",
  "video_title": "Video Title",
  "video_duration": 212,
  "file_size": 52428800,
  "resolution": "720",
  "processing_time": 45.2
}

GET /api/v1/skill/balance

Check account status.

Response:

{
  "username": "user123"
}

GET /api/v1/skill/health

Health check (no authentication required).

Response:

{
  "status": "healthy",
  "service": "YouTube Video Downloader Skill",
  "version": "1.0.0"
}

Error Codes

CodeMeaning
---------------
200Success
401Invalid or missing API Key
400Invalid request (bad URL, etc.)
500Server error

Example (curl)

# Download a video
curl -X POST https://u2foru.site/api/v1/skill/download \
  -H "Authorization: Bearer sk-yt-xxxxx" \
  -H "Content-Type: application/json" \
  -d '{"youtube_url": "https://youtube.com/watch?v=dQw4w9WgXcQ", "resolution": "720"}'

Example (Python)

import requests

API_KEY = "sk-yt-xxxxx"
BASE_URL = "https://u2foru.site"

# Download
resp = requests.post(
    f"{BASE_URL}/api/v1/skill/download",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={"youtube_url": "https://youtube.com/watch?v=dQw4w9WgXcQ", "resolution": "720"}
)
data = resp.json()
if data["success"]:
    print(f"Download URL: {data['download_url']}")

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-29 16:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

youtube-stable-downloader

xjouska
将 YouTube 视频本地保存,支持多种分辨率(360p 到 1080p,最佳质量),或提取音频供离线观看。
★ 0 📥 510
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,591
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,211 📥 266,217