← 返回 Skills 市场
xiewxx

Maxhub Toutiao

作者 Xie Hao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
47
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install maxhub-toutiao
功能描述
头条/Toutiao平台今日头条新闻资讯搜索与数据采集。当用户提到头条、toutiao、新闻、资讯、推荐等相关需求时激活此Skill。
使用说明 (SKILL.md)

📰 头条(Toutiao)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,覆盖2大能力域:

能力域 API数量 核心能力
数据采集 6 获取指定文章的信息/Get inform、获取指定视频的信息/Get inform、获取指定用户的信息/Get inform
互动操作 1 获取指定作品的评论/Get commen

🚀 快速开始 / 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/{platform}/web/fetch_data" \
  -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 public data 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

智能调度规则 / 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 → 获取互动数据

模式C:搜索→用户→分析 / Pattern C: Search → User → Analysis

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

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 information of specified article
    • GET /api/v1/toutiao/web/get_article_info(必填: aweme_id)
  2. 获取指定视频的信息/Get information of specified video
    • GET /api/v1/toutiao/web/get_video_info(必填: aweme_id)
  3. 获取指定文章的信息/Get information of specified article
    • GET /api/v1/toutiao/app/get_article_info(必填: group_id)
  4. 获取指定视频的信息/Get information of specified video
    • GET /api/v1/toutiao/app/get_video_info(必填: group_id)
  5. 获取指定用户的信息/Get information of specified user
    • GET /api/v1/toutiao/app/get_user_info(必填: user_id)
  6. 从头条用户主页获取用户user_id/Get user_id from user profile
    • GET /api/v1/toutiao/app/get_user_id(必填: user_profile_url)

互动操作

  1. 获取指定作品的评论/Get comments of specified post
    • GET /api/v1/toutiao/app/get_comments(必填: group_id, offset)

调用示例 / API Call Examples

基础调用 / Basic Call

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"

带参数调用 / Call with Parameters

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

POST请求 / POST Request

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

带参数调用 / Call with Parameters

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

POST请求 / POST Request

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

注意事项 / 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, do not collect sensitive personal privacy data
  • 分页数据建议逐页获取,避免一次性请求过多 / 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 is reasonable to use if you trust MaxHub and are comfortable giving the agent access to a MaxHub API key for public Toutiao data. Monitor paid usage, confirm large or batch requests, and verify the actual Toutiao API paths because some examples mention Douyin endpoints.
功能分析
Type: OpenClaw Skill Name: maxhub-toutiao Version: 1.0.0 The skill is a legitimate integration for the Toutiao platform using the MaxHub API service (aconfig.cn). It defines clear API interactions, authentication via environment variables, and safety constraints for the AI agent. No evidence of malicious intent, data exfiltration, or unauthorized execution was found in the code or instructions (SKILL.md).
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is Toutiao public news/data collection and the listed API catalog is mostly aligned, but SKILL.md includes example endpoints for `/api/v1/douyin/...`, which does not match the Toutiao skill.
Instruction Scope
The skill instructs chained, paginated, and batch API calls, but it also states limits such as max 5 pages, max depth 3, batch size 10, and confirmation/cost reminders for larger operations.
Install Mechanism
There is no install script or code to run, but the registry says no required env vars/primary credential while SKILL.md requires `MAXHUB_API_KEY` for actual use.
Credentials
Use of a MaxHub API key and HTTPS calls to the MaxHub API are proportionate to the stated API-integration purpose; the artifacts do not show local file, cookie, or system-configuration access.
Persistence & Privilege
No artifacts show persistence, background workers, file writes, browser/session access, or account-mutating actions; the documented APIs are data retrieval/comment retrieval.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install maxhub-toutiao
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /maxhub-toutiao 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Added comprehensive skill documentation and usage instructions in SKILL.md, including authentication, API catalog, scheduling rules, rate limits, and security statements. - Detailed all supported Toutiao (头条) data APIs and example call formats. - Outlined intelligent API selection, chain call strategies, and parameter handling. - Specified operation limits and guidance for safe, controlled usage. - Included security and privacy best practices for all users.
元数据
Slug maxhub-toutiao
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Maxhub Toutiao 是什么?

头条/Toutiao平台今日头条新闻资讯搜索与数据采集。当用户提到头条、toutiao、新闻、资讯、推荐等相关需求时激活此Skill。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 47 次。

如何安装 Maxhub Toutiao?

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

Maxhub Toutiao 是免费的吗?

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

Maxhub Toutiao 支持哪些平台?

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

谁开发了 Maxhub Toutiao?

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

💬 留言讨论