Xiyou Keyword Research
/install linkfox-xiyou-dongcha
Xiyou (西柚找词) — Amazon ASIN & Keyword Analytics
This skill queries Xiyou Insights (西柚洞察 / 西柚找词) data for Amazon ASINs and search terms via the LinkFox tool gateway. The gateway forwards requests to Xiyou OpenAPI (https://openapi.xiyouzhaoci.com).
Environment Variables (Required)
本 skill 需要 三组凭证,缺一不可:
| Variable | Required | Description |
|---|---|---|
LINKFOXAGENT_API_KEY |
Yes | LinkFox Agent API Key(与其它 LinkFox skill 相同) |
XIYOU_CLIENT_ID |
Yes | 西柚 OpenAPI Client ID(16 位字符) |
XIYOU_CLIENT_SECRET |
Yes | 西柚 OpenAPI Client Secret(24 位字符) |
1. LinkFox API Key
- 前往 LinkFox API Key 申请文档 获取 Key
- 写入环境变量
LINKFOXAGENT_API_KEY
2. 西柚找词 Client ID / Client Secret
- 打开 西柚洞察 OpenAPI 控制台
- 登录后在控制台创建或查看应用,复制 Client ID(16 位)与 Client Secret(24 位)
- 写入环境变量
XIYOU_CLIENT_ID与XIYOU_CLIENT_SECRET - 请勿将 Secret 提交到 Git、写入 SKILL 参数或聊天记录;仅通过环境变量供本地脚本读取
3. 配置示例
macOS / Linux(当前终端会话)
export LINKFOXAGENT_API_KEY="your-linkfox-api-key"
export XIYOU_CLIENT_ID="your-16-char-id"
export XIYOU_CLIENT_SECRET="your-24-char-secret"
macOS / Linux(持久化,写入 ~/.zshrc 或 ~/.bashrc)
echo 'export LINKFOXAGENT_API_KEY="your-linkfox-api-key"' >> ~/.zshrc
echo 'export XIYOU_CLIENT_ID="your-16-char-id"' >> ~/.zshrc
echo 'export XIYOU_CLIENT_SECRET="your-24-char-secret"' >> ~/.zshrc
source ~/.zshrc
Windows PowerShell(当前会话)
$env:LINKFOXAGENT_API_KEY = "your-linkfox-api-key"
$env:XIYOU_CLIENT_ID = "your-16-char-id"
$env:XIYOU_CLIENT_SECRET = "your-24-char-secret"
Windows(系统环境变量):设置 → 系统 → 关于 → 高级系统设置 → 环境变量 → 新建上述三个用户变量。
Cursor / Agent 运行环境:在 IDE 或 Agent 所在环境的 env 配置中添加上述三个变量,否则脚本会报错并提示缺少哪一项。
脚本
scripts/xiyou.py与scripts/_xiyou_common.py会自动把XIYOU_CLIENT_ID/XIYOU_CLIENT_SECRET注入请求 Body;调用时 不要 在--params里重复传clientId/clientSecret。
Core Concepts
西柚找词提供亚马逊 ASIN 维度 与 关键词维度 的流量、排名、ABA、竞争度等数据,典型用途:
- ASIN 反查关键词:看某 ASIN 近 7 天或指定月份带来流量的搜索词
- 关键词分析:看某词下哪些 ASIN 占流量、排名与获得率
- 趋势分析:ASIN 流量得分、BSR、广告变动、词排名/流量随时间变化
- 选词辅助:关键词 ABA 周搜索量、竞争难度、建议 CPC
Supported Marketplaces
country 常用 2 位大写代码:US、CA、MX、BR、UK、DE、ES、IT、FR、JP、AU、SA、AE。默认 US。
例外:asinSearchTermRankTrendHourly 仅支持 US、UK、DE。
API Usage
- 完整参数与响应结构:
references/api.md - 命令行(在本 skill 根目录执行):
python scripts/xiyou.py --list-apis
python scripts/xiyou.py --api asinResearchPeriod --params '{"country":"US","asin":"B06XZTZ7GB","page":1,"pageSize":50}'
python scripts/xiyou.py --api searchTermInfo --params '{"country":"US","searchTerms":"yoga mat,fitness mat"}'
网关路径:POST https://tool-gateway.linkfox.com/xiyou/\x3CapiName>
API Quick Index
--api |
用途 |
|---|---|
asinTraffic |
批量 ASIN 近 7 天流量得分 |
asinInfo |
批量 ASIN 商品信息 |
asinResearchPeriod |
ASIN 反查关键词(最近天) |
asinResearchMonthly |
ASIN 反查关键词(月) |
searchTermAnalysisPeriod |
关键词下 ASIN 分析列表 |
searchTermInfo |
关键词信息(ABA、竞争度、CPC) |
searchTermAbaWeeklyTrend |
关键词 ABA 周趋势 |
asinSearchTermTrafficTrend |
ASIN+词 流量趋势(天) |
asinSearchTermRankTrendDaily |
ASIN+词 排名趋势(天) |
asinSearchTermRankTrendHourly |
ASIN+词 排名趋势(小时) |
asinTrafficScoreTrend |
ASIN 流量得分趋势(天) |
asinBsrTrend |
ASIN BSR 趋势(天) |
asinOrdersTrend |
ASIN 订单量趋势(月) |
asinVariations |
ASIN 变体关系 |
| 其它 | 见 --list-apis 与 references/api.md |
How to Build Queries
- 选接口:反查词 →
asinResearchPeriod/asinResearchMonthly;查词下竞品 →searchTermAnalysisPeriod;词属性 →searchTermInfo/searchTermAbaWeeklyTrend - 站点:用户说「美国站」→
country: "US";未指定默认US - ASIN:10 位,如
B06XZTZ7GB;批量接口用entities: [{"country":"US","asin":"..."}] - 日期:天趋势用
startDate/endDate(YYYY-MM-DD);月趋势用startMonth/endMonth(YYYY-MM) - 分页:列表类接口用
page、pageSize(最大 10000) - 排序:
sortField+sortOrder(asc/desc),可选值见references/api.md各接口说明
Example Scenarios
反查 ASIN 近 7 天流量词(按流量降序)
{"country": "US", "asin": "B06XZTZ7GB", "page": 1, "pageSize": 100, "sortField": "traffic", "sortOrder": "desc"}
查关键词下 Top ASIN
{"searchTerm": "yoga mat", "country": "US", "page": 1, "pageSize": 50}
批量查 ASIN 流量得分
{"entities": [{"country": "US", "asin": "B06XZTZ7GB"}, {"country": "US", "asin": "B0XXXXXXXX"}]}
Display Rules
- 列表类结果优先表格展示:关键词/ASIN、流量、排名、占比等核心字段
- 趋势类结果建议时间序列展示,标注峰值与变化方向
- 失败时根据
error/ 网关响应说明原因;常见:环境变量未配置、ASIN 格式错误、日期区间无效、站点不支持
Important Limitations
- 须同时配置 LinkFox Key 与 西柚 Client 凭证
asinSearchTermRankTrendHourly仅 US/UK/DE- 批量 ASIN 接口
entities最多 100 个;searchTerms逗号分隔最多 100 个词 - 大结果集优先用下方 Large Response 模式落盘读取
User Expression & Scenario Quick Reference
| User Says | API / Scenario |
|---|---|
| 「这个 ASIN 有哪些流量词」 | asinResearchPeriod |
| 「这个词下哪些 ASIN 在抢流量」 | searchTermAnalysisPeriod |
| 「关键词搜索量/ABA 趋势」 | searchTermAbaWeeklyTrend / searchTermInfo |
| 「ASIN 流量得分多少」 | asinTraffic |
| 「某个词排名怎么变」 | asinSearchTermRankTrendDaily |
| 「BSR 历史」 | asinBsrTrend |
Not applicable: 非亚马逊平台、Jungle Scout/卖家精灵等其它数据源、SP-API 订单/库存、Temu/Shopee 选品。
Feedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
- The functionality or purpose described in this skill does not match actual behavior
- The skill's results do not match the user's intent
- The user expresses dissatisfaction or praise about this skill
- Anything you believe could be improved
Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.
\x3C!-- LF_LARGE_RESPONSE_BLOCK -->
Handling Large Responses
To avoid overflowing the agent context, persist the response to disk and extract only the fields you need:
python scripts/response_io.py run --script scripts/xiyou.py --out-dir \x3CDIR> '{"api":"asinResearchPeriod","country":"US","asin":"B06XZTZ7GB","page":1,"pageSize":50}'
python scripts/response_io.py read \x3Cfile> --fields "\x3Cpaths>" # or --path "\x3CJMESPath>"
Pick
--out-diroutside any git working tree (e.g./tmp/...on Unix,%TEMP%/...on Windows). Persisted responses may contain PII, pricing, or auth-sensitive data — do not commit them. Files are not auto-deleted; clean up when the task is done.
run writes the full response to a file and emits only a schema preview + file path. read projects specific fields, with --limit/--offset for slicing and --format json|jsonl|csv|table for output.
When to prefer this pattern — apply your judgment based on the response characteristics, e.g.:
- High field count per record, or fields you don't need
- Batch/paginated results (multiple items per call)
- Long-text fields (descriptions, reviews, HTML, time series)
- Output reused across later steps rather than consumed immediately
For small, single-use responses, calling the main script directly is fine.
⚠️ The preview is a truncated schema + sample, not the full data. Any field-level decision must read from the persisted file via read.
\x3C!-- /LF_LARGE_RESPONSE_BLOCK -->
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install linkfox-xiyou-dongcha - After installation, invoke the skill by name or use
/linkfox-xiyou-dongcha - Provide required inputs per the skill's parameter spec and get structured output
What is Xiyou Keyword Research?
西柚找词(西柚洞察)亚马逊 ASIN 与关键词分析,经 LinkFox 网关转发西柚 OpenAPI。覆盖 ASIN 流量得分、反查关键词、词排名/流量趋势、BSR、ABA 周趋势、关键词竞争度与建议竞价等 17 个接口,支持 US/UK/DE 等 13 个站点。当用户提到西柚找词、西柚洞察、Xiyou、ASIN... It is an AI Agent Skill for Claude Code / OpenClaw, with 26 downloads so far.
How do I install Xiyou Keyword Research?
Run "/install linkfox-xiyou-dongcha" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Xiyou Keyword Research free?
Yes, Xiyou Keyword Research is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Xiyou Keyword Research support?
Xiyou Keyword Research is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Xiyou Keyword Research?
It is built and maintained by linkfox-ai (@linkfox-ai); the current version is v0.0.1.