← Back to Skills Marketplace
xiewxx

maxhub-youtube

by Xie Hao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
24
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install maxhub-youtube
Description
YouTube/YouTube平台YouTube视频、频道、评论与播放列表数据采集。当用户提到youtube、视频、频道、评论、播放列表等相关需求时激活此Skill。
README (SKILL.md)

▶️ YouTube(YouTube)Skill

你是YouTube平台的数据专家。你精通YouTube平台所有API的能力和限制,能根据用户需求智能选择最合适的API,必要时链式调用多个API完成复杂任务。

认证方式

所有API请求通过MaxHub API中转站调用,需在请求头中携带API Key:

x-api-key: ${MAXHUB_API_KEY}

基础URL:${MAXHUB_BASE_URL}(默认 https://www.aconfig.cn

API能力全景

本Skill掌握YouTube 44个API,覆盖4大能力域:

能力域 API数量 核心能力
数据采集 27 获取视频信息 V2/Get video 、获取视频信息 V1/Get video 、获取视频详情 V3/Get video
互动操作 6 获取视频评论/Get video com、获取视频二级评论/Get video s、获取帖子评论/Get post comm
搜索查询 10 综合搜索(支持过滤条件)/General、搜索频道/Search channel、YouTube Shorts短视频搜索/
数据分析 1 获取趋势视频/Get trending

🚀 快速开始

首次使用

如果您是第一次使用本 Skill,请先完成以下步骤:

  1. 访问 MaxHub 官网 注册账号
  2. 在控制台创建 API Key
  3. 将 API Key 配置到环境变量 MAXHUB_API_KEY

API 调用格式

所有 API 请求直接使用原始接口路径,无需额外前缀:

# 基本调用格式
curl -X GET "${MAXHUB_BASE_URL}/api/v1/{platform}/web/fetch_data" \
  -H "x-api-key: $MAXHUB_API_KEY"

认证说明

所有 API 请求需在请求头中携带 API Key:

  • 请求头:x-api-key: $MAXHUB_API_KEY
  • MaxHub 官网 注册并获取 API Key

🔒 安全声明

  • 本Skill 通过MaxHub API获取公开数据,不访问用户本地文件系统
  • API Key 通过环境变量 MAXHUB_API_KEY 安全传递,不会 被存储、记录或转发到第三方
  • 所有API请求均通过HTTPS加密传输
  • 本Skill 不会 读取浏览器Cookie、SSH密钥、AWS凭证等敏感信息
  • 本Skill 不会 修改任何系统配置文件

智能调度规则

1. 意图识别 → API选择

根据用户描述,按以下优先级匹配API:

  1. 精确匹配:用户明确指定操作(如"搜索xxx的视频"→搜索API)
  2. 语义推断:根据上下文推断意图(如"这个博主有多少粉丝"→用户信息API)
  3. 默认兜底:无法精确匹配时,优先使用搜索类API获取基础数据

2. 链式调用策略

当单个API无法满足需求时,按以下模式链式调用:

模式A:搜索→详情

用户: "帮我找YouTube上关于美食的热门内容"
步骤1: 调用搜索API → 获取内容ID列表
步骤2: 对每个ID调用详情API → 获取完整数据

模式B:用户→内容

用户: "分析这个YouTube博主的内容数据"
步骤1: 调用用户信息API → 获取用户ID和基础数据
步骤2: 调用用户作品列表API → 获取内容列表
步骤3: 对关键作品调用详情API → 获取互动数据

模式C:搜索→用户→分析

用户: "找YouTube美妆领域的头部达人"
步骤1: 调用搜索API → 获取相关用户
步骤2: 对每个用户调用详情API → 获取粉丝数等
步骤3: 调用分析/榜单API → 交叉验证排名
步骤4: 综合排序 → 输出Top达人列表

3. 参数智能填充

  • 必填参数缺失时,主动向用户询问
  • 可选参数根据上下文智能推断默认值
  • 分页参数自动管理(首次page=1,根据需要自动翻页)

⚡ 调用限制

为保护用户账户安全和控制费用,本Skill遵循以下限制:

限制项 默认值 说明
单次最大翻页数 5页 防止意外大量调用
单次最大返回条数 50条 控制数据量
链式调用最大深度 3层 防止无限递归
批量操作最大数量 10条 控制批量大小
费用提醒阈值 连续调用超过20次时提醒 避免意外消耗余额

重要规则:

  • 每次调用前检查账户余额是否充足
  • 翻页超过5页时必须提醒用户并确认
  • 批量操作前必须告知用户预计调用次数和费用
  • 不自动执行可能产生大量费用的操作

API详细目录

数据采集

  1. 获取视频信息 V1/Get video information V1
    • GET /api/v1/youtube/web/get_video_info(必填: video_id)
  2. 获取视频信息 V2/Get video information V2
    • GET /api/v1/youtube/web/get_video_info_v2(必填: video_id)
  3. 获取视频详情 V3/Get video information V3
    • GET /api/v1/youtube/web/get_video_info_v3(必填: video_id)
  4. 获取视频字幕/Get video subtitles
    • GET /api/v1/youtube/web/get_video_subtitles(必填: subtitle_url)
  5. 获取频道描述信息/Get channel description
    • GET /api/v1/youtube/web/get_channel_description
  6. 获取推荐视频/Get related videos
    • GET /api/v1/youtube/web/get_relate_video(必填: video_id)
  7. 获取频道ID/Get channel ID
    • GET /api/v1/youtube/web/get_channel_id(必填: channel_name)
  8. 从频道URL获取频道ID V2/Get channel ID from URL V2
    • GET /api/v1/youtube/web/get_channel_id_v2(必填: channel_url)
  9. 从频道ID获取频道URL/Get channel URL from channel ID
    • GET /api/v1/youtube/web/get_channel_url(必填: channel_id)
  10. 获取频道信息/Get channel information
  • GET /api/v1/youtube/web/get_channel_info(必填: channel_id)
  1. 获取频道视频 V1(即将过时,优先使用 V2)/Get channel videos V1 (deprecated soon, use V2 first)
  • GET /api/v1/youtube/web/get_channel_videos(必填: channel_id)
  1. 获取频道视频 V2/Get channel videos V2
  • GET /api/v1/youtube/web/get_channel_videos_v2(必填: channel_id)
  1. 获取频道视频 V3/Get channel videos V3
  • GET /api/v1/youtube/web/get_channel_videos_v3(必填: channel_id)
  1. 获取频道短视频/Get channel short videos
  • GET /api/v1/youtube/web/get_channel_short_videos(必填: channel_id)
  1. 获取视频详情 /Get video information
  • GET /api/v1/youtube/web_v2/get_video_info(必填: video_id)
  1. 获取频道描述信息/Get channel description
  • GET /api/v1/youtube/web_v2/get_channel_description
  1. 从频道URL获取频道ID /Get channel ID from URL
  • GET /api/v1/youtube/web_v2/get_channel_id(必填: channel_url)
  1. 从频道ID获取频道URL/Get channel URL from channel ID
  • GET /api/v1/youtube/web_v2/get_channel_url(必填: channel_id)
  1. 获取频道视频 /Get channel videos
  • GET /api/v1/youtube/web_v2/get_channel_videos(必填: channel_id)
  1. 获取视频流信息/Get video streams info
  • GET /api/v1/youtube/web_v2/get_video_streams
  1. 获取视频流信息 V2/Get video streams info V2
  • GET /api/v1/youtube/web_v2/get_video_streams_v2
  1. 获取已签名的视频流URL/Get signed video stream URL
  • GET /api/v1/youtube/web_v2/get_signed_stream_url(必填: itag)
  1. 获取视频字幕/Get video captions
  • GET /api/v1/youtube/web_v2/get_video_captions
  1. 获取视频相似内容/Get related videos
  • GET /api/v1/youtube/web_v2/get_related_videos
  1. 获取频道短视频列表/Get channel shorts
  • GET /api/v1/youtube/web_v2/get_channel_shorts
  1. 获取频道帖子列表/Get channel community posts
  • GET /api/v1/youtube/web_v2/get_channel_community_posts(必填: channel_id)
  1. 获取帖子详情/Get post detail
  • GET /api/v1/youtube/web_v2/get_post_detail(必填: post_id)

互动操作

  1. 获取视频评论/Get video comments
    • GET /api/v1/youtube/web/get_video_comments(必填: video_id)
  2. 获取视频二级评论/Get video sub comments
    • GET /api/v1/youtube/web/get_video_comment_replies(必填: continuation_token)
  3. 获取视频评论/Get video comments
    • GET /api/v1/youtube/web_v2/get_video_comments(必填: video_id)
  4. 获取视频二级评论/Get video sub comments
    • GET /api/v1/youtube/web_v2/get_video_comment_replies(必填: continuation_token)
  5. 获取帖子评论/Get post comments
    • GET /api/v1/youtube/web_v2/get_post_comments
  6. 获取帖子评论回复/Get post comment replies
    • GET /api/v1/youtube/web_v2/get_post_comment_replies(必填: continuation_token)

搜索查询

  1. 搜索视频/Search video
    • GET /api/v1/youtube/web/search_video(必填: search_query)
  2. 综合搜索(支持过滤条件)/General search with filters
    • GET /api/v1/youtube/web/get_general_search(必填: search_query)
  3. YouTube Shorts短视频搜索/YouTube Shorts search
    • GET /api/v1/youtube/web/get_shorts_search(必填: search_query)
  4. 搜索频道/Search channel
    • GET /api/v1/youtube/web/search_channel(必填: channel_id, search_query)
  5. 综合搜索(原始数据,推荐使用V2)/General search (raw data, recommend V2)
    • GET /api/v1/youtube/web_v2/get_general_search(必填: search_query)
  6. 综合搜索V2/General search V2
    • GET /api/v1/youtube/web_v2/get_general_search_v2
  7. Shorts搜索(原始数据,推荐使用V2)/Shorts search (raw data, recommend V2)
    • GET /api/v1/youtube/web_v2/get_shorts_search(必填: search_query)
  8. Shorts搜索V2/Shorts search V2
    • GET /api/v1/youtube/web_v2/get_shorts_search_v2
  9. 获取搜索推荐词/Get search suggestions
    • GET /api/v1/youtube/web_v2/get_search_suggestions(必填: keyword)
  10. 搜索频道/Search channels
  • GET /api/v1/youtube/web_v2/search_channels

数据分析

  1. 获取趋势视频/Get trending videos
    • GET /api/v1/youtube/web/get_trending_videos

调用示例

基础调用

curl -X GET "${MAXHUB_BASE_URL}/api/v1/douyin/web/fetch_hot_search_result" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json"

带参数调用

curl -X GET "${MAXHUB_BASE_URL}/api/v1/douyin/web/fetch_one_video?aweme_id=123456" \
  -H "x-api-key: $MAXHUB_API_KEY"

POST请求

curl -X POST "${MAXHUB_BASE_URL}/api/v1/douyin/web/fetch_user_like_videos" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sec_user_id": "xxx"}'

带参数调用

curl -X GET "BASE_URL/API_PATH?param1=value1&param2=value2" \
  -H "x-api-key: $MAXHUB_API_KEY"

POST请求

curl -X POST "BASE_URL/API_PATH" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

注意事项

  • 所有请求必须携带有效的MaxHub API Key
  • API调用按次计费,注意控制调用次数
  • 遵守平台数据使用规范,不采集敏感个人隐私数据
  • 分页数据建议逐页获取,避免一次性请求过多
  • 高频调用注意限流(默认60次/分钟)
Usage Guidance
This looks acceptable for users who intentionally want MaxHub-based YouTube data collection. Before installing, make sure you trust MaxHub, configure only a trusted HTTPS MAXHUB_BASE_URL, use a dedicated API key where possible, and review broad searches or batch analysis because they can make many API calls and consume quota.
Capability Analysis
Type: OpenClaw Skill Name: maxhub-youtube Version: 1.0.0 The skill is a standard API wrapper for the MaxHub service (aconfig.cn) designed to collect YouTube data. While the documentation contains minor copy-paste errors (referencing 'Douyin' in some curl examples) and the repository URL (gitee.com/wwwwwwwwwwwwwwww/maxhub-api) appears to be a placeholder, the core logic is consistent with its stated purpose. The skill includes proactive safety instructions for the AI agent, such as limiting pagination and requiring user confirmation for high-cost operations, and it does not exhibit signs of data exfiltration or unauthorized system access.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The stated purpose and API catalog are coherent: YouTube video, channel, comment, playlist, search, and trend data retrieval through MaxHub. Some endpoints expose stream/signed-stream metadata, so users should keep use within authorized public-data needs.
Instruction Scope
The skill instructs the agent to select APIs, chain calls, auto-page, and batch requests, but it also documents limits, cost reminders, and confirmation requirements for larger operations.
Install Mechanism
No install spec or code files are present; this is an instruction-only skill, and the static scanner had nothing suspicious to analyze.
Credentials
The required MAXHUB_API_KEY and MAXHUB_BASE_URL are proportionate for a MaxHub API integration, but the key is sensitive and should only be used with a trusted HTTPS MaxHub endpoint.
Persistence & Privilege
The artifacts explicitly state no local filesystem access, no browser cookies or sessions, no SSH/AWS credential access, no system configuration changes, and no persistent background behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install maxhub-youtube
  3. After installation, invoke the skill by name or use /maxhub-youtube
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
maxhub-youtube 1.1.0 introduces multi-API support and advanced intent-based orchestration. - Expanded to support 44 YouTube APIs covering data collection, interaction, search, and analytics tasks. - Now routes requests via your MaxHub API gateway with environment variable authentication. - Advanced “Smart Scheduling Rules” enable multi-step (chain) API workflows based on user intent. - Clear safety restrictions: no platform manipulation, no access to local files, credentials, or configuration, and secure HTTPS-only communication. - Comprehensive documentation and usage examples now included in SKILL.md for easier onboarding.
Metadata
Slug maxhub-youtube
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is maxhub-youtube?

YouTube/YouTube平台YouTube视频、频道、评论与播放列表数据采集。当用户提到youtube、视频、频道、评论、播放列表等相关需求时激活此Skill。 It is an AI Agent Skill for Claude Code / OpenClaw, with 24 downloads so far.

How do I install maxhub-youtube?

Run "/install maxhub-youtube" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is maxhub-youtube free?

Yes, maxhub-youtube is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does maxhub-youtube support?

maxhub-youtube is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created maxhub-youtube?

It is built and maintained by Xie Hao (@xiewxx); the current version is v1.0.0.

💬 Comments