← 返回
内容创作 Key 中文

Youtube Master

Get YouTube video info, statistics, descriptions, thumbnails, and optionally transcripts. Uses YouTube Data API (free) for basic info and Apify (optional) fo...
获取 YouTube 视频信息、统计数据、描述、缩略图以及可选字幕。使用 YouTube Data API(免费)获取基本信息,使用 Apify(可选)获取...
tevfikgulep
内容创作 clawhub v1.0.2 1 版本 99873.1 Key: 需要
★ 2
Stars
📥 747
下载
💾 17
安装
1
版本
#latest

概述

🎬 YouTube Master

Get comprehensive YouTube video data including metadata, statistics, descriptions, thumbnails, and optionally transcripts.

Why This Skill?

YouTube videos require multiple APIs to get complete data. This skill intelligently uses:

  • YouTube Data API (FREE) → Video metadata, stats, description
  • Apify API (OPTIONAL) → Only when transcripts requested

Advantages

💰 Cost Effective

  • Default: YouTube API only (free quota)
  • Transcript: Only 1 Apify request when explicitly requested
  • No wasted API calls

⚡ Fast Performance

  • YouTube API: ~200ms response
  • Apify: Only loads when needed

📊 Complete Data

DataSource
--------------
Title✅ YouTube API
Description✅ YouTube API
Channel Name✅ YouTube API
View Count✅ YouTube API
Like Count✅ YouTube API
Comment Count✅ YouTube API
Upload Date✅ YouTube API
Thumbnail URL✅ YouTube API
Tags✅ YouTube API
Transcript✅ Apify (on demand)

How It Works

┌─────────────────┐
│  Input: URL└────────┬/ID   │
────────┘
         │
         ▼
┌─────────────────┐
│ YouTube API    │ ◄── FREE, always runs
│ (viewCount,    │
│  description,   │
│  title, etc.)  │
└────────┬────────┘
         │
    ┌────┴────┐
    │         │
    ▼         ▼
┌───────┐ ┌──────────────┐
│ --    │ │ --transcript │
│info   │ │ is requested │
│only   │ └──────┬───────┘
└───┬───┘        │
    │            ▼
    │    ┌─────────────────┐
    │    │ Apify API      │ ◄── Only runs if
    │    │ (transcript)   │     explicitly asked
    │    └────────┬────────┘
    │             │
    └─────┬───────┘
          │
          ▼
┌─────────────────┐
│   Full Output   │
└─────────────────┘

Credentials Setup

Option 1: Environment Variables

export YOUTUBE_API_KEY="AIzaSy..."
export APIFY_TOKEN="apify_api_..."

Option 2: Credentials File (Recommended)

Add to ~/.openclaw/workspace/credentials/api-credentials.json:

{
  "google": {
    "api_key": "AIzaSy..."
  },
  "apify": {
    "api_key": "apify_api_..."
  }
}

Getting YouTube API Key

  1. Go to Google Cloud Console
  2. Create a project
  3. Enable YouTube Data API v3
  4. Create credentials (API Key)
  5. Free quota: 10,000 units/day

Getting Apify Token

  1. Go to Apify
  2. Sign up / Login
  3. Copy API token from Settings

Usage

Default (Info Only - FREE)

python3 get_transcript.py "VIDEO_ID"
python3 get_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"

With Transcript (Uses Apify)

python3 get_transcript.py "VIDEO_ID" --transcript
python3 get_transcript.py "VIDEO_ID" -t
python3 get_transcript.py "VIDEO_ID" --transcript --lang tr

Info Only

python3 get_transcript.py "VIDEO_ID" --info-only

Examples

Basic Video Info

python3 get_transcript.py dQw4w9WgXcQ

Video + Transcript

python3 get_transcript.py Oi3Z1wlZXhg --transcript --lang tr

Save to File

python3 get_transcript.py VIDEO_ID > output.txt

API Quotas

YouTube Data API (Free)

  • 10,000 units/day (default)
  • Video list: 1 unit per request
  • Enough for ~10,000 video queries/day

Apify

  • Free tier available
  • Only charged when transcript requested

Files

  • get_transcript.py - Main script

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 20:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,942
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,215
data-analysis

Master Marketing

tevfikgulep
集增长策略、内容再利用与趋势监测于一体的营销引擎。利用数据驱动策略、全平台内容复用及实时趋势分析驱动业务增长。
★ 15 📥 6,823