← 返回 Skills 市场
xiewxx

Maxhub Xigua

作者 Xie Hao · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
58
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install maxhub-xigua
功能描述
西瓜视频/Xigua平台公开内容搜索与信息查询。当用户提到西瓜视频、xigua、长视频、资讯等相关需求时激活此Skill。
使用说明 (SKILL.md)

🍉 西瓜视频(Xigua)Skill

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

认证方式 / Authentication Method

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

x-api-key: ${MAXHUB_API_KEY}

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

API能力全景 / API Capabilities Overview

本Skill掌握西瓜视频 7个API,覆盖3大能力域:

能力域 API数量 核心能力
信息查询 5 个人信息/Personal info、获取单个作品数据/Get single video、获取个人作品列表/Get user posts
互动数据 1 视频评论列表/Video comment list
搜索查询 1 搜索视频/Search video

🚀 快速开始 / Quick Start

首次使用 / First Time Use

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

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

API 调用格式 / API Call Format

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

curl -X GET "${MAXHUB_BASE_URL}/api/v1/xigua/app/v2/fetch_one_video?item_id=VIDEO_ID" \
  -H "x-api-key: $MAXHUB_API_KEY"

认证说明 / Authentication Instructions

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

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

🔒 安全声明 / Security Statement

  • 本Skill 通过MaxHub API获取西瓜视频平台已公开的信息 / This Skill only fetches publicly available information from Xigua via MaxHub API,不访问用户本地文件系统
  • API Key 通过环境变量 / API Key is passed via environment variable MAXHUB_API_KEY 安全传递,不会 被存储、记录或转发到第三方
  • 所有API请求均通过HTTPS加密传输 / All API requests are encrypted via HTTPS
  • 本Skill 不会 读取浏览器Cookie / This Skill will not read browser cookies、SSH密钥、AWS凭证等敏感信息
  • 本Skill 不会 修改任何系统配置文件 / This Skill will not modify any system configuration files
  • 本Skill 不会 下载、保存或分发任何视频内容 / This Skill will not download, save or distribute any video content
  • 本Skill 不会 绕过任何平台安全机制 / This Skill will not bypass any platform security mechanisms

智能调度规则 / Intelligent Scheduling Rules

1. 意图识别 → API选择 / Intent Recognition → API Selection

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

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

2. 链式调用策略 / Chain Call Strategy

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

模式A:搜索→详情 / Pattern A: Search → Details

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

模式B:用户→内容 / Pattern B: User → Content

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

3. 参数智能填充 / Intelligent Parameter Filling

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

⚡ 调用限制 / Rate Limits

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

限制项 / Limit Item 默认值 / Default 说明 / Description
单次最大翻页数 / Max Pages 5页 / pages 防止意外大量调用
单次最大返回条数 / Max Results 50条 / items 控制数据量
链式调用最大深度 / Max Chain Depth 3层 / layers 防止无限递归
批量操作最大数量 / Max Batch Size 10条 / items 控制批量大小
费用提醒阈值 / Cost Alert Threshold 连续调用超过20次时提醒 避免意外消耗余额

重要规则 / Important Rules:

  • 每次调用前检查账户余额是否充足 / Check account balance before each call
  • 翻页超过5页时必须提醒用户并确认 / Must remind and confirm with user when pagination exceeds 5 pages
  • 批量操作前必须告知用户预计调用次数和费用 / Must inform user of estimated calls and costs before batch operations
  • 不自动执行可能产生大量费用的操作 / Will not automatically execute operations that may incur high costs

API详细目录 / API Detailed Catalog

信息查询

  1. 获取单个作品数据/Get single video data
    • GET /api/v1/xigua/app/v2/fetch_one_video(必填: item_id)
  2. 获取单个作品数据 V2/Get single video data V2
    • GET /api/v1/xigua/app/v2/fetch_one_video_v2(必填: item_id)
  3. 获取单个作品的播放链接/Get single video play URL
    • GET /api/v1/xigua/app/v2/fetch_one_video_play_url(必填: item_id)
  4. 个人信息/Personal information
    • GET /api/v1/xigua/app/v2/fetch_user_info(必填: user_id)
  5. 获取个人作品列表/Get user post list
    • GET /api/v1/xigua/app/v2/fetch_user_post_list(必填: user_id)

互动数据

  1. 视频评论列表/Video comment list
    • GET /api/v1/xigua/app/v2/fetch_video_comment_list(必填: item_id)

搜索查询

  1. 搜索视频/Search video
    • GET /api/v1/xigua/app/v2/search_video(必填: keyword)

调用示例 / API Call Examples

基础调用 / Basic Call

curl -X GET "${MAXHUB_BASE_URL}/api/v1/xigua/app/v2/fetch_user_info?user_id=USER_ID" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json"

带参数调用 / Call with Parameters

curl -X GET "${MAXHUB_BASE_URL}/api/v1/xigua/app/v2/search_video?keyword=美食" \
  -H "x-api-key: $MAXHUB_API_KEY"

POST请求 / POST Request

curl -X POST "${MAXHUB_BASE_URL}/api/v1/xigua/app/v2/fetch_video_comment_list" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_id": "xxx"}'

注意事项 / Important Notes

  • 所有请求必须携带有效的MaxHub API Key / All requests must carry a valid MaxHub API Key
  • API调用按次计费,注意控制调用次数 / API calls are billed per use, pay attention to call frequency
  • 遵守平台数据使用规范,仅查询已公开的信息 / Follow platform data usage guidelines, only query publicly available information
  • 分页数据建议逐页获取,避免一次性请求过多 / For paginated data, fetch page by page to avoid requesting too much at once
  • 高频调用注意限流(默认60次/分钟)/ Pay attention to rate limiting for high-frequency calls (default 60 calls/minute)
安全使用建议
This skill looks safe to use for public Xigua searches if you are comfortable using MaxHub as the API provider. Configure a dedicated API key if possible, monitor billed usage, avoid sensitive private search terms, and require confirmation before bulk or extended pagination requests.
功能分析
Type: OpenClaw Skill Name: maxhub-xigua Version: 1.1.0 The skill is a well-documented interface for querying public Xigua Video data via the MaxHub API (aconfig.cn). It provides clear instructions for the AI agent regarding API orchestration, rate limiting, and security boundaries, with no evidence of malicious intent, data exfiltration, or unauthorized system access in files like SKILL.md or the API catalog.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is public Xigua/Xigua Video search and information lookup. The listed endpoints are read-oriented search, video details, user information, comment listing, and play URL lookup; no artifact shows account mutation, deletion, posting, moderation, or local file access.
Instruction Scope
The skill instructs the agent to choose APIs, chain calls, and auto-manage pagination, but it also gives explicit caps, cost reminders, and confirmation requirements for larger operations.
Install Mechanism
There is no install spec or code to execute, and the static scan is clean. Registry provenance is limited because the source/homepage fields are unknown/empty, and the registry version differs from the SKILL.md frontmatter version, so users should verify package identity if provenance matters.
Credentials
The skill requires a MaxHub API key even though registry credential fields are empty. This is disclosed in SKILL.md and proportionate to the MaxHub integration, but it grants access to billed API usage and sends request data to MaxHub.
Persistence & Privilege
No artifact shows persistence, background execution, local file reads, browser cookie/session use, credential-store access, or system configuration changes; SKILL.md explicitly disclaims these behaviors.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install maxhub-xigua
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /maxhub-xigua 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
v1.2.0 - 修复安全审核问题,调整描述和安全声明
v1.0.0
maxhub-xigua v1.1.1 - 全新增加技能文档,详细说明西瓜视频内容搜索与数据采集能力,包括API目录、认证方式与调用安全规则 - 列出所有可用API及其用途,涵盖数据采集、互动操作和搜索查询三大能力域 - 介绍智能调度机制,支持链式调用和参数自动填充,提高复杂需求应对能力 - 明确平台接入、调用格式、速率限制及费用预警,保障账户安全和合理使用 - 提供标准调用示例及常见注意事项,方便用户快速上手
元数据
Slug maxhub-xigua
版本 1.1.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Maxhub Xigua 是什么?

西瓜视频/Xigua平台公开内容搜索与信息查询。当用户提到西瓜视频、xigua、长视频、资讯等相关需求时激活此Skill。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 58 次。

如何安装 Maxhub Xigua?

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

Maxhub Xigua 是免费的吗?

是的,Maxhub Xigua 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Maxhub Xigua 支持哪些平台?

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

谁开发了 Maxhub Xigua?

由 Xie Hao(@xiewxx)开发并维护,当前版本 v1.1.0。

💬 留言讨论