← Back to Skills Marketplace
xiewxx

maxhub-twitter

by Xie Hao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
29
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install maxhub-twitter
Description
Twitter/Twitter平台Twitter/X推文搜索、用户数据与趋势分析。当用户提到twitter、x、推文、tweet、话题等相关需求时激活此Skill。
README (SKILL.md)

🐦 Twitter(Twitter)Skill

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

认证方式

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

x-api-key: ${MAXHUB_API_KEY}

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

API能力全景

本Skill掌握Twitter 13个API,覆盖4大能力域:

能力域 API数量 核心能力
数据采集 7 获取单个推文数据/Get single 、获取用户推文回复/Get user tw、获取用户发帖/Get user post
搜索查询 1 搜索/Search
互动操作 4 用户关注/User Followings、获取最新的推文评论/Get the la、用户粉丝/User Followers
数据分析 1 趋势/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:搜索→详情

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

模式B:用户→内容

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

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

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

3. 参数智能填充

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

⚡ 调用限制

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

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

重要规则:

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

API详细目录

数据采集

  1. 获取单个推文数据/Get single tweet data
    • GET /api/v1/twitter/web/fetch_tweet_detail(必填: tweet_id)
  2. 获取用户资料/Get user profile
    • GET /api/v1/twitter/web/fetch_user_profile
  3. 获取用户发帖/Get user post
    • GET /api/v1/twitter/web/fetch_user_post_tweet
  4. 获取用户推文回复/Get user tweet replies
    • GET /api/v1/twitter/web/fetch_user_tweet_replies(必填: screen_name)
  5. 获取用户高光推文/Get user highlights tweets
    • GET /api/v1/twitter/web/fetch_user_highlights_tweets(必填: userId)
  6. 获取用户媒体/Get user media
    • GET /api/v1/twitter/web/fetch_user_media(必填: screen_name)
  7. 转推用户列表/ReTweet User list
    • GET /api/v1/twitter/web/fetch_retweet_user_list(必填: tweet_id)

搜索查询

  1. 搜索/Search
    • GET /api/v1/twitter/web/fetch_search_timeline(必填: keyword)

互动操作

  1. 获取评论/Get comments
    • GET /api/v1/twitter/web/fetch_post_comments(必填: tweet_id)
  2. 获取最新的推文评论/Get the latest tweet comments
    • GET /api/v1/twitter/web/fetch_latest_post_comments(必填: tweet_id)
  3. 用户关注/User Followings
    • GET /api/v1/twitter/web/fetch_user_followings(必填: screen_name)
  4. 用户粉丝/User Followers
    • GET /api/v1/twitter/web/fetch_user_followers(必填: screen_name)

数据分析

  1. 趋势/Trending
    • GET /api/v1/twitter/web/fetch_trending

调用示例

基础调用

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
Install only if you trust MaxHub/aconfig.cn with your API usage. Configure a dedicated MaxHub API key, verify the base URL, monitor costs, and ensure the agent uses the Twitter/X endpoints rather than the stray Douyin examples.
Capability Analysis
Type: OpenClaw Skill Name: maxhub-twitter Version: 1.0.0 The skill bundle is a standard API wrapper for interacting with Twitter/X data via the MaxHub service (aconfig.cn). It requires a user-provided MAXHUB_API_KEY and uses a configurable MAXHUB_BASE_URL. While the documentation in SKILL.md contains some inconsistencies (such as including Douyin/TikTok API examples in a Twitter-focused skill), these appear to be unintentional copy-paste errors rather than malicious instructions. There is no evidence of data exfiltration, unauthorized file access, or harmful prompt injection.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The main purpose and API catalog align with Twitter/X search, user/profile, comment, follower, and trend data via MaxHub. A few example commands reference Douyin endpoints, which looks like a documentation/template mismatch rather than automatic hidden behavior.
Instruction Scope
The skill instructs the agent to perform chained API calls, automatic pagination, and limited batch collection. These are purpose-aligned for analysis and include stated caps and confirmation rules, but they can still consume API quota or balance.
Install Mechanism
No install spec or executable code is present; this is an instruction-only skill and the static scan reported no findings.
Credentials
The skill requires MAXHUB_API_KEY and sends it as an x-api-key header to the configured MAXHUB_BASE_URL. That is expected for a MaxHub API integration, but users should verify the endpoint and monitor API usage.
Persistence & Privilege
The artifacts claim no local filesystem access, no browser cookie/session access, no system configuration changes, and no persistent background behavior; no included file contradicts those claims.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install maxhub-twitter
  3. After installation, invoke the skill by name or use /maxhub-twitter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
maxhub-twitter 1.0.0 changelog - Initial release of maxhub-twitter skill. - Enables Twitter/X tweet search, user data access, and trend analysis via MaxHub API. - Requires MAXHUB_API_KEY environment variable for authentication. - All data access is HTTPS, public-only, and does not store or forward user credentials. - Restricts operations: no local file, cookie, or system access; no automated platform actions. - Offers 13 Twitter-related APIs covering data collection, search, user interactions, and trending analysis.
Metadata
Slug maxhub-twitter
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is maxhub-twitter?

Twitter/Twitter平台Twitter/X推文搜索、用户数据与趋势分析。当用户提到twitter、x、推文、tweet、话题等相关需求时激活此Skill。 It is an AI Agent Skill for Claude Code / OpenClaw, with 29 downloads so far.

How do I install maxhub-twitter?

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

Is maxhub-twitter free?

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

Which platforms does maxhub-twitter support?

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

Who created maxhub-twitter?

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

💬 Comments