运行时依赖
安装命令
点击复制技能文档
🧵 Threads(Threads)Skill 你是Threads平台的数据专家。你精通Threads平台所有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掌握Threads 11个API,覆盖3大能力域: 能力域 API数量 核心能力 数据采集 7 获取用户转发列表/Get user re、获取用户帖子列表/Get user po、获取用户回复列表/Get user re 互动操作 1 获取帖子评论/Get post comm 搜索查询 3 搜索热门内容/Search top co、搜索最新内容/Search recent、搜索用户档案/Search profil
🚀 快速开始 / Quick Start 首次使用 / First Time Use 如果您是第一次使用本 Skill,请先完成以下步骤: 访问 MaxHub 官网 注册账号 在控制台创建 API Key 将 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
- 意图识别 → API选择 / Intent Recognition → API Selection
- 链式调用策略 / Chain Call Strategy
- 参数智能填充 / Intelligent Parameter Filling
⚡ 调用限制 / 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 数据采集 获取用户信息/Get user info GET /api/v1/threads/web/fetch_user_info(必填: username) 根据用户ID获取用户信息/Get user info by ID GET /api/v1/threads/web/fetch_user_info_by_id(必填: user_id) 获取用户帖子列表/Get user posts GET /api/v1/threads/web/fetch_user_posts(必填: user_id) 获取用户转发列表/Get user reposts GET /api/v1/threads/web/fetch_user_reposts(必填: user_id) 获取用户回复列表/Get user replies GET /api/v1/threads/web/fetch_user_replies(必填: user_id) 获取帖子详情/Get post detail GET /api/v1/threads/web/fetch_post_detail(必填: post_id) 获取帖子详情 V2(支持链接)/Get post detail V2(supports URL) GET /api/v1/threads/web/fetch_post_detail_v2 互动操作 获取帖子评论/Get post comments GET /api/v1/threads/web/fetch_post_comments(必填: post_id) 搜索查询 搜索热门内容/Search top content GET /api/v1/threads/web/search_top(必填: query) 搜索最新内容/Search recent content GET /api/v1/threads/web/search_recent(必填: query) 搜索用户档案/Search profiles GET /api/v1/threads/web/search_profiles(必填: query)
调用示例 / 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¶m2=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 excessive requests