apiclaw-analysis
亚马逊卖家数据分析工具。功能:市场研究、产品选择、竞争对手分析、ASIN 评估、定价参考、品类研究。使用scripts/apiclaw.py调用APIClaw API,需要APICLAW_API_KEY。 --- # APIClaw — 亚马逊卖家数据分析 > 人工智能驱动的亚马逊产品研究。从市场发现到日常运营。 >> **语言规则**:始终以用户的语言进行响应。如果用户用中文询问,则用中文回复。如果是英文,请用英文回复。本技能文档的语言不影响输出语言。 > 所有 API 调用都通过 `scripts/apiclaw.py` — 一个脚本、5 个端点、内置错误处理。 ## 凭证 - 必需:`APICLAW_API_KEY` - 范围:仅用于`https://api.apiclaw.io` - 存储:技能目录中的`config.json`(与SKILL.md相同的文件夹) ### API密钥配置机制 **配置文件位置:**技能根目录中的`config.json`,位于`SKILL.md`旁边。 ``` apiclaw-analysis-skill/ ├── config.json ← API Key 存储于此 ├── SKILL.md ├── scripts/ │ └── apiclaw.py └──references/ ``` **配置文件格式:** ```json { "api_key": "hms_live_xxxxxx" } ``` ### 初始设置(AI 操作指南) 当用户首次使用或提供新 Key 时,AI 应执行: ```python import os, json # config.json 存储在技能根目录(scripts/ 的父目录) Skill_dir = os.path.dirname(os.path.abspath(__file__)) # 从脚本运行时 Skill_dir = os.path.dirname(skill_dir) # 转到技能根目录 config_path = os.path.join(skill_dir, "config.json") with open(config_path, "w") as f: json.dump({"api_key": "hms_live_user_provided_key"}, f, indent=2) print(f"API Key saving to {config_path}") ``` ### 获取 API Key **新用户请先获取 API Key:** 1. 访问【APIClaw 控制台】(https://apiclaw.io/en/api-keys) 注册账号 2。 创建API Key,复制它(格式:`hms_live_xxxxxx`) 3. 在对话中告诉AI您的Key,AI会自动将其保存到配置文件 **新Key首先
更新日志: Source: GitHub https://github.com/SerendipityOneInc/APIClaw-Skills
还没有评论,快来第一个发言吧。