微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

u2-downloader

u2-downloader · v1.0.0
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(NO_FRONTMATTER)。我们仍保留下载,方便你自行查看内容。
安全 unknown 级 作者 xjouska 公开目录收录
1k 下载 2 安装 2.9k 收藏 1 浏览

简介

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.

通过你的 Agent 添加

安装目录:u2-downloader/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/u2-downloader/
Codex CLI~/.codex/skills/u2-downloader/
DeepSeek Harness~/.agents/skills/u2-downloader/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文

YouTube Video Downloader Skill

A pay-per-use YouTube video download service. Authenticate with API Key, pay with credits.

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

Credits

  • Rate: S$1 SGD = 5 Credits
  • Cost: 1 credit per successful download
  • Failed downloads: No charge
  • Expiry: Credits never expire
  • Min recharge: S$1 (suggested S$10), custom integer amount
  • Recharge: https://u2foru.site/?page=pricing

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",
  "credits_used": 1,
  "credits_remaining": 24,
  "processing_time": 45.2
}

Response (insufficient credits):

{
  "success": false,
  "credits_remaining": 0,
  "error_message": "Credit insufficient (current: 0). Please recharge at the website."
}

GET /api/v1/skill/balance

Check credit balance.

Response:

{
  "credit_balance": 25,
  "username": "user123"
}

GET /api/v1/skill/health

Health check (no authentication required).

Response:

{
  "status": "healthy",
  "service": "YouTube Video Downloader Skill",
  "version": "1.0.0",
  "credit_rate": "1 download = 1 credit, S$1 = 5 credits"
}

Error Codes

Code Meaning
200 Success
401 Invalid or missing API Key
402 Insufficient credits
400 Invalid request (bad URL, etc.)
500 Server error (no credits charged)

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"}'

# Check balance
curl https://u2foru.site/api/v1/skill/balance \
  -H "Authorization: Bearer sk-yt-xxxxx"

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']}")
    print(f"Credits remaining: {data['credits_remaining']}")

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill