sorftime-cli

通过 sorftime-cli 调用 Sorftime 跨境电商全量数据接口(Amazon 43 + Shopee 5 + Walmart 13 = 61 个 endpoint)。 当用户或智能体需要:写脚本批量查询 ASIN/类目/关键词/Best Seller/跟卖/子体销量/产品评论, 自定义编排多个接口完成灵活工作流(如批量采集 → 交叉分析 → 定时监控), **必须**使用本技能。 触发词:sorftime api、sorftime cli、调用 sorftime、批量查 ASIN、批量类目数据、 sorftime endpoint、自定义 sorftime 工作流、写 sorftime 脚本、sorftime 接口手册、 amazon 接口、shopee 接口、walmart 接口、sorftime 批量获取、监控注册、跟卖预警脚本、 子体销量、关键词监控部署、Best Seller 榜单抓取、类目趋势分析脚本、 跨平台对比(Amazon+Shopee+Walmart)。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sorftime-cli" with this command: npx skills add zhangfaguo/sorftime

Sorftime CLI Skill

Sorftime 提供 Amazon、Shopee、Walmart 三大电商平台的数据分析 API,通过 sorftime-cli 命令行工具调用。

前置配置

安装与认证

# 安装 CLI
npm install -g sorftime-cli

# 添加账户 (profile-name 可以任意命名, api-key 在 Sorftime 官网获取)
sorftime add <profile-name> <api-key>
# 激活账号
sorftime use <profile-name>

账户管理

# 列出所有账户
sorftime list / sorftime ls

# 切换当前活跃账户
sorftime use <profile-name>

# 查看当前活跃账户
sorftime whoami

# 删除账户
sorftime remove <profile-name>

通用命令格式

sorftime api <接口名称> '{"参数JSON"}' --domain <站点数字ID>

通用返回结构

所有接口返回统一结构:

{
  "Code": 0,
  "Message": null,
  "Data": {},
  "RequestLeft": 9999,
  "RequestConsumed": 1,
  "RequestCount": 1
}
  • Code=0 成功,非0失败
  • RequestLeft 当月剩余请求次数
  • RequestConsumed 本次消耗次数

常见错误码

错误码说明处理方式
0成功-
4积分余额不足引导用户充值或等待下月重置
97ASIN/产品不存在提醒用户检查参数
98采集失败稍后重试
99正在实时抓取等待5分钟后重试
401认证失败引导用户重新执行 sorftime add
403权限不足检查套餐权限
429频率超限降低请求速度,等待1分钟后重试

Resources 目录索引(按需加载)

所有 resources 文件头部均指向 _common.md 获取 CLI 模板、Domain 表、错误码。本索引只列接口清单与跳转。

公共参考

文件内容
_common.mdAmazon/Shopee/Walmart Domain 表、完整错误码(0/4/97/98/99/-999 + HTTP 401/403/429/500)、通用返回结构、CLI 调用模板

Amazon(43 个 endpoint)

文件接口数接口清单
amazon-category.md4CategoryTree、CategoryRequest、CategoryProducts、CategoryTrend
amazon-product.md8ProductRequest、ProductSearch、AsinSalesVolume、ProductVariationHistory、ProductTrend、ProductReviewsCollection、ProductReviewsCollectionStatusQuery、ProductReviewsQuery
amazon-product-realtime.md5ProductRealtimeRequest、ProductRealtimeRequestStatusQuery、SimilarProductRealtimeRequest、SimilarProductRealtimeRequestStatusQuery、SimilarProductRealtimeRequestCollection
amazon-keyword.md12KeywordQuery、KeywordRequest、KeywordSearchResults、KeywordSearchResultTrend、KeywordExtends、CategoryRequestKeyword、ASINRequestKeywordv2、KeywordProductRanking、ASINKeywordRanking、FavoriteKeyword、ChangeFavoriteKeyword、GetFavoriteKeyword
amazon-monitoring.md监控通用规则:period 表达式、积分消耗、站点矩阵、任务状态流转。接口详情跳转到 3 个子文件。
amazon-monitoring-keyword.md5KeywordBatchSubscription、KeywordTasks、KeywordBatchTaskUpdate、KeywordBatchScheduleList、KeywordBatchScheduleDetail
amazon-monitoring-bestseller.md4BestSellerListSubscription、BestSellerListTask、BestSellerListDelete、BestSellerListDataCollect
amazon-monitoring-seller.md5ProductSellerSubscription、ProductSellerTasks、ProductSellerTaskUpdate、ProductSellerTaskScheduleList、ProductSellerTaskScheduleDetail
amazon-recipes.md多接口编排配方:选品流程、竞品深挖、监控部署、趋势追踪、跨平台对比。展示 CLI 比 MCP 灵活的核心场景。

Shopee(5 个 endpoint)

文件接口数接口清单
shopee-api.md5CategoryTree、CategoryRequest、ProductRequest、ProductTrend、ShopRequest

Walmart(13 个 endpoint)

文件接口数接口清单
walmart-api.md5CategoryTree、CategoryRequest、ProductRequest、ProductTrendRequest、ProductSalesVolume
walmart-keyword.md8KeywordQuery、KeywordSearchResults、KeywordRequest、ProductRequestKeywordv2、KeywordExtends、FavoriteKeyword、ChangeFavoriteKeyword、GetFavoriteKeyword

目录结构

sorftime-cli/
├── SKILL.md                              # 本文件:主索引 + 触发器 + 分流声明
└── resources/
    ├── _common.md                        # 公共:Domain 表 / 错误码 / 返回结构 / CLI 模板
    ├── amazon-category.md                # Amazon 类目 4 接口
    ├── amazon-product.md                 # Amazon 产品核心 8 接口
    ├── amazon-product-realtime.md        # Amazon 产品实时采集 5 接口
    ├── amazon-keyword.md                 # Amazon 关键词 12 接口
    ├── amazon-monitoring.md              # Amazon 监控通用规则(索引)
    ├── amazon-monitoring-keyword.md      # Amazon 关键词监控 5 接口
    ├── amazon-monitoring-bestseller.md   # Amazon Best Seller 监控 4 接口
    ├── amazon-monitoring-seller.md       # Amazon 跟卖监控 5 接口
    ├── amazon-recipes.md                 # 多接口编排配方(CLI 差异化场景)
    ├── shopee-api.md                     # Shopee 5 接口
    ├── walmart-api.md                    # Walmart 类目+产品 5 接口
    └── walmart-keyword.md                # Walmart 关键词+词库 8 接口

重要规则

  1. 不要猜测 domain 值 — 始终使用上述站点速查表中的准确值
  2. JSON 参数用单引号包裹sorftime api XXX '{"key": "value"}'
  3. 大响应设置超时 — CategoryTree 返回约10MB+数据,建议设置较长超时时间

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Python Mutable Default Args

A Python function uses a mutable object (list, dict, set) as a default argument, sharing state across calls in a way that produces silent bugs.

Registry SourceRecently Updated
Coding

Biome

Lint and format frontend code with Biome 2.4. Covers type-aware linting, GritQL custom rules, domains, import organizer, and migration from ESLint/Prettier....

Registry SourceRecently Updated
Coding

Python Development Setup

Opinionated Python development setup with uv + ty + ruff + pytest + just. Use when creating new Python projects, setting up pyproject.toml, configuring linti...

Registry SourceRecently Updated
Coding

deep-java-review

Java项目代码review工具。分析Git变更+完整调用链路上下文,推断业务需求,进行多维度评分和分类汇总,生成完整PRD文档。包含细粒度Java代码审查清单(Null安全、异常处理、Streams、并发、equals/hashCode、资源管理、API设计、性能、MyBatis/ORM、事务边界、SQL/DD...

Registry SourceRecently Updated