Install
openclaw skills install linkfox-xiyou-dongcha西柚找词(西柚洞察)亚马逊 ASIN 与关键词分析,经 LinkFox 网关转发西柚 OpenAPI。覆盖 ASIN 流量得分、反查关键词、词排名/流量趋势、BSR、ABA 周趋势、关键词竞争度与建议竞价等 17 个接口,支持 US/UK/DE 等 13 个站点。当用户提到西柚找词、西柚洞察、Xiyou、ASIN 反查关键词、关键词分析、ABA 周搜索量、流量得分、词排名趋势、xiyou keyword research, ASIN traffic score, reverse ASIN lookup, search term analysis 时触发。即使用户未写「西柚」,只要需求是通过西柚找词查亚马逊 ASIN/关键词流量与排名数据,也应触发。使用前须配置 LINKFOXAGENT_API_KEY 以及环境变量 XIYOU_CLIENT_ID、XIYOU_CLIENT_SECRET。
openclaw skills install linkfox-xiyou-dongchaThis 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).
本 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 位字符) |
LINKFOXAGENT_API_KEYXIYOU_CLIENT_ID 与 XIYOU_CLIENT_SECRETmacOS / 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。
西柚找词提供亚马逊 ASIN 维度 与 关键词维度 的流量、排名、ABA、竞争度等数据,典型用途:
country 常用 2 位大写代码:US、CA、MX、BR、UK、DE、ES、IT、FR、JP、AU、SA、AE。默认 US。
例外:asinSearchTermRankTrendHourly 仅支持 US、UK、DE。
references/api.mdpython 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/<apiName>
--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 |
asinResearchPeriod / asinResearchMonthly;查词下竞品 → searchTermAnalysisPeriod;词属性 → searchTermInfo / searchTermAbaWeeklyTrendcountry: "US";未指定默认 USB06XZTZ7GB;批量接口用 entities: [{"country":"US","asin":"..."}]startDate/endDate(YYYY-MM-DD);月趋势用 startMonth/endMonth(YYYY-MM)page、pageSize(最大 10000)sortField + sortOrder(asc/desc),可选值见 references/api.md 各接口说明反查 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"}]}
error / 网关响应说明原因;常见:环境变量未配置、ASIN 格式错误、日期区间无效、站点不支持asinSearchTermRankTrendHourly 仅 US/UK/DEentities 最多 100 个;searchTerms 逗号分隔最多 100 个词| 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:
Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.
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 <DIR> '{"api":"asinResearchPeriod","country":"US","asin":"B06XZTZ7GB","page":1,"pageSize":50}'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"
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.:
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.
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.