亚马逊-店铺定价
亚马逊店铺商品定价(与 linkfox-amazon-store-auth / linkfox-amazon-store-report / linkfox-amazon-store-listings 同系列),经 /spApi/developerProxy 调用 SP-API Product Pricing:v0 的 getPricing、getCompet…
linkfox-ai
@linkfox-ai
What This Skill Does
通过亚马逊 SP-API Product Pricing 接口查询商品定价、竞争定价、Listing/Item Offers、Featured Offer Expected Price (FOEP) 及竞争摘要,支持单条和批量查询。
Replaces manually scraping Amazon product pages or building custom SP-API pricing integrations by providing a unified CLI and proxy endpoint for all pricing-related APIs.
When to Use It
- 查询指定 ASIN 或 SKU 的当前售价和最低报价
- 批量获取多个 ASIN 的竞争定价和 Featured Offer 预期价格
- 分析 Listing 或商品的 Offers 分布以辅助定价决策
- 获取竞争摘要(Competitive Summary)了解市场定价趋势
- 在自动化定价策略中集成 FOEP(Featured Offer Expected Price)数据
Install
$ openclaw skills install @linkfox-ai/linkfox-amazon-store-pricingAmazon 店铺 Product Pricing
本 skill 与 linkfox-amazon-store-auth、linkfox-amazon-store-report、linkfox-amazon-store-listings 同属 Amazon Store 系列:依赖 linkfox-amazon-store-auth 选店(sellerId+region);直接 POST /spApi/developerProxy 传入 sellerId+region,由服务端解析 token(勿传 amzAccessToken,除非兼容旧调用)。转发上游 GET 或 POST。
调用方式
- API 端点:
POST /spApi/developerProxy(不同操作通过请求体区分;完整参数/响应/错误码见references/api.md) - Python 脚本:
python scripts/<脚本名>.py '<JSON 参数>' [--inline](可用脚本见上文脚本一览) - 成本约束:本工具会消耗积分;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json(<cwd>为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session>取自环境变量SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错) - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如
total/costToken、最大列表字段的长度 + 前 3 条样本) - 加
--inline强制全量打印到 stdout(同样落盘)
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
解决认证和积分问题
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
异常情况
- 未配置API Key:环境变量未配置
LINKFOX_AGENT_API_KEY,也未配置LINKFOXAGENT_API_KEY。 - 响应401或402状态码
- 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
官方参考索引
| 能力 | 文档 |
|---|---|
| getPricing | getPricing |
| getCompetitivePricing | getCompetitivePricing |
| getListingOffers | getListingOffers |
| getItemOffers | getItemOffers |
| getItemOffersBatch | getItemOffersBatch |
| getListingOffersBatch | getListingOffersBatch |
| getFeaturedOfferExpectedPriceBatch | getFeaturedOfferExpectedPriceBatch |
| getCompetitiveSummary | getCompetitiveSummary |
Prerequisites(必须先读)
本 skill 依赖 linkfox-amazon-store-auth。
- 运行
python scripts/check_auth_dependency.py;若 exit code 42 且 stderr 含DEPENDENCY_MISSING:,请先安装linkfox-amazon-store-auth。 - 不要在本 skill 内绕过依赖实现授权或令牌逻辑。
Current Capabilities(脚本一览)
| 能力 | developerProxy path(要点) | 脚本 |
|---|---|---|
| getPricing | products/pricing/v0/price + Query | get_pricing.py |
| getCompetitivePricing | products/pricing/v0/competitivePrice + Query | get_competitive_pricing.py |
| getListingOffers | products/pricing/v0/listings/{sku}/offers + Query | get_listing_offers.py |
| getItemOffers | products/pricing/v0/items/{asin}/offers + Query | get_item_offers.py |
| getItemOffersBatch | batches/products/pricing/v0/itemOffers,POST JSON body | post_item_offers_batch.py |
| getListingOffersBatch | batches/products/pricing/v0/listingOffers,POST JSON body | post_listing_offers_batch.py |
| getFeaturedOfferExpectedPriceBatch | batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice,POST | post_featured_offer_expected_price_batch.py |
| getCompetitiveSummary | batches/products/pricing/2022-05-01/items/competitiveSummary,POST | post_competitive_summary_batch.py |
批量脚本(post_*_batch.py)在默认模式下会按 Amazon 要求组装子请求;高级用法可设 useAmazonRequestShape: true,直接传 requests 为官方原始数组(仍受条数上限约束)。共享逻辑见 scripts/_spapi_pricing_common.py(仅供同目录脚本 import,非独立 CLI)。
Quick Parameters(摘要)
- getPricing / getCompetitivePricing:
sellerId、region、marketplaceId(或marketplaceIds取首)、itemType、asins或skus(≤20);getPricing 另有itemCondition、offerType;getCompetitivePricing 另有customerType。 - getListingOffers / getItemOffers:
sku+path 或asin+path;itemCondition必填;可选customerType。 - Item / Listing Offers Batch:
requests数组,默认每项为简化对象(见references/api.md);1~20 条(FOEP 批量脚本为 最多 40 条)。 - getCompetitiveSummary 批量:每项需
asin、marketplaceId、includedData(非空字符串数组);可选lowestPricedOffersInputs。 - getFeaturedOfferExpectedPriceBatch:每项需
marketplaceId、sku、segment(对象,结构以官方为准)。
Scripts
get_pricing.py·get_competitive_pricing.py·get_listing_offers.py·get_item_offers.pypost_item_offers_batch.py·post_listing_offers_batch.py·post_featured_offer_expected_price_batch.py·post_competitive_summary_batch.pycheck_auth_dependency.py·_spapi_pricing_common.py(内部模块)
export LINKFOXAGENT_API_KEY="<your-key>"
python scripts/get_item_offers.py '{"sellerId":"A1...","region":"NA","asin":"B0...","marketplaceId":"ATVPDKIKX0DER","itemCondition":"New"}'
python scripts/post_item_offers_batch.py '{"sellerId":"A1...","region":"NA","requests":[{"asin":"B0...","marketplaceId":"ATVPDKIKX0DER","itemCondition":"New"}]}'
Display Rules
MarketplaceId(单数)与 Listings 的marketplaceIds勿混用。- 先看网关
errcode/httpStatus,再解析各脚本对应的解析字段(如itemOffers、itemOffersBatch、competitiveSummary等)。 - POST 类接口:
stdout中含requestBody(脚本组装的 Amazon 请求体),便于排查。 - 白名单:除
products/pricing/...外,批量路径以batches/products/pricing/...开头;1005 时需后端放行对应前缀。 - 各接口 Usage plan 不同(尤其 2022-05-01 批量约 0.033 req/s),注意 429。
Important Limitations
- 权限:Product Pricing 及相关角色;部分 2022-05-01 能力可能另有应用内配置要求,以 Amazon 为准。
- FOEP 批量:
segment须符合官方模型;条数上限脚本按 40 校验(与文档「up to 40」一致)。 - 返回结构以 Amazon schema 为准;详见
references/api.md。
积分消耗规则
不消耗积分。
Feedback: 见 references/api.md,skillName:linkfox-amazon-store-pricing。
更多跨境 skill:LinkFox Skills
Top skills in this category
Claude Connect
@tunaissacodingConnect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
Polymarket Auto-Trader
@srikanthbellaryAutonomous Polymarket prediction market trading agent. Scans markets, evaluates probabilities with LLM, sizes positions with Kelly criterion, and executes trades via CLOB API. Use when user wants to trade on Polymarket, set up automated prediction market trading, or build a trading bot. Supports cron-based autonomous operation, P&L tracking, and budget management.
Macro Monitor
@hmzo每日宏观数据监控和推送。自动浏览免费数据源(Trading Economics、FRED、国家统计局、央行官网、财联社等),整理整合过去24小时发布的宏观数据和政策信息,并推送给用户。通过 cron 每天晚上10点自动触发。
LaTeX
@ivangdavilaWrite LaTeX documents with correct syntax, packages, and compilation workflow.
Competitor Watch
@audsmith28Know what your competitors ship before their customers do. Automated monitoring of competitor websites, product pages, pricing, content, and social presence. Detects changes, extracts new features, tracks pricing updates, and alerts you with digestible summaries. Your agent watches the competition 24/7 so you can focus on building. Configure competitor tiers (fierce rivals get deep monitoring, adjacents get high-level), set check frequency, define alert thresholds, and receive smart diffs highlighting what actually matters. Use when setting up competitive intelligence, tracking product launches, monitoring pricing changes, or staying ahead of market moves.