linkfox-amazon-store-pricing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmazon 店铺 Product Pricing
Amazon店铺Product Pricing
本 skill 与 、、 同属 Amazon Store 系列:先 取 ,再 转发上游 GET 或 POST(与 listings 的 PUT/PATCH 代理方式一致)。
linkfox-amazon-store-authlinkfox-amazon-store-reportlinkfox-amazon-store-listingsPOST /spApi/storeTokensaccessTokenPOST /spApi/developerProxy本skill与**、、同属Amazon Store系列:先通过获取,再通过转发上游的GET或POST**请求(与listings的PUT/PATCH代理方式一致)。
linkfox-amazon-store-authlinkfox-amazon-store-reportlinkfox-amazon-store-listingsPOST /spApi/storeTokensaccessTokenPOST /spApi/developerProxy官方参考索引
官方参考索引
| 能力 | 文档 |
|---|---|
| getPricing | getPricing |
| getCompetitivePricing | getCompetitivePricing |
| getListingOffers | getListingOffers |
| getItemOffers | getItemOffers |
| getItemOffersBatch | getItemOffersBatch |
| getListingOffersBatch | getListingOffersBatch |
| getFeaturedOfferExpectedPriceBatch | getFeaturedOfferExpectedPriceBatch |
| getCompetitiveSummary | getCompetitiveSummary |
| 能力 | 文档 |
|---|---|
| getPricing | getPricing |
| getCompetitivePricing | getCompetitivePricing |
| getListingOffers | getListingOffers |
| getItemOffers | getItemOffers |
| getItemOffersBatch | getItemOffersBatch |
| getListingOffersBatch | getListingOffersBatch |
| getFeaturedOfferExpectedPriceBatch | getFeaturedOfferExpectedPriceBatch |
| getCompetitiveSummary | getCompetitiveSummary |
Prerequisites(必须先读)
前置要求(必须先读)
本 skill 依赖 。
linkfox-amazon-store-auth- 运行 ;若 exit code 42 且 stderr 含
python scripts/check_auth_dependency.py,请先安装DEPENDENCY_MISSING:。linkfox-amazon-store-auth - 不要在本 skill 内绕过依赖实现授权或令牌逻辑。
本skill依赖。
linkfox-amazon-store-auth- 运行;若退出码为42且标准错误输出包含
python scripts/check_auth_dependency.py,请先安装DEPENDENCY_MISSING:。linkfox-amazon-store-auth - 请勿在本skill内绕过依赖实现授权或令牌逻辑。
Current Capabilities(脚本一览)
当前功能(脚本一览)
| 能力 | developerProxy | 脚本 |
|---|---|---|
| getPricing | | |
| getCompetitivePricing | | |
| getListingOffers | | |
| getItemOffers | | |
| getItemOffersBatch | | |
| getListingOffersBatch | | |
| getFeaturedOfferExpectedPriceBatch | | |
| getCompetitiveSummary | | |
批量脚本()在默认模式下会按 Amazon 要求组装子请求;高级用法可设 : true,直接传 为官方原始数组(仍受条数上限约束)。共享逻辑见 (仅供同目录脚本 import,非独立 CLI)。
post_*_batch.pyuseAmazonRequestShaperequestsscripts/_spapi_pricing_common.py| 能力 | developerProxy | 脚本 |
|---|---|---|
| getPricing | | |
| getCompetitivePricing | | |
| getListingOffers | | |
| getItemOffers | | |
| getItemOffersBatch | | |
| getListingOffersBatch | | |
| getFeaturedOfferExpectedPriceBatch | | |
| getCompetitiveSummary | | |
批量脚本()在默认模式下会按Amazon要求组装子请求;高级用法可设置**: true**,直接传入**为官方原始数组(仍受条数上限约束)。共享逻辑见**(仅供同目录脚本导入,非独立CLI工具)。
post_*_batch.pyuseAmazonRequestShaperequestsscripts/_spapi_pricing_common.pyQuick Parameters(摘要)
快速参数说明(摘要)
- getPricing / getCompetitivePricing:、
sellerId、region(或marketplaceId取首)、marketplaceIds、itemType或asins(≤20);getPricing 另有skus、itemCondition;getCompetitivePricing 另有offerType。customerType - getListingOffers / getItemOffers:+path 或
sku+path;asin必填;可选itemCondition。customerType - Item / Listing Offers Batch:数组,默认每项为简化对象(见
requests);1~20 条(FOEP 批量脚本为 最多 40 条)。references/api.md - getCompetitiveSummary 批量:每项需 、
asin、marketplaceId(非空字符串数组);可选includedData。lowestPricedOffersInputs - getFeaturedOfferExpectedPriceBatch:每项需 、
marketplaceId、sku(对象,结构以官方为准)。segment
- getPricing / getCompetitivePricing:、
sellerId、region(或marketplaceId取第一个值)、marketplaceIds、itemType或asins(≤20条);getPricing另有skus、itemCondition参数;getCompetitivePricing另有offerType参数。customerType - getListingOffers / getItemOffers:路径中需包含或**
sku;asin为必填项**;可选参数itemCondition。customerType - Item / Listing Offers Batch:数组,默认每项为简化对象(详见
requests);支持1~20条(FOEP批量脚本最多支持40条)。references/api.md - getCompetitiveSummary批量:每项需包含**、
asin、marketplaceId(非空字符串数组);可选参数includedData**。lowestPricedOffersInputs - getFeaturedOfferExpectedPriceBatch:每项需包含**、
marketplaceId、sku**(对象,结构以官方为准)。segment
Scripts
脚本列表
- ·
get_pricing.py·get_competitive_pricing.py·get_listing_offers.pyget_item_offers.py - ·
post_item_offers_batch.py·post_listing_offers_batch.py·post_featured_offer_expected_price_batch.pypost_competitive_summary_batch.py - ·
check_auth_dependency.py(内部模块)_spapi_pricing_common.py
bash
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"}]}'- ·
get_pricing.py·get_competitive_pricing.py·get_listing_offers.pyget_item_offers.py - ·
post_item_offers_batch.py·post_listing_offers_batch.py·post_featured_offer_expected_price_batch.pypost_competitive_summary_batch.py - ·
check_auth_dependency.py(内部模块)_spapi_pricing_common.py
bash
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
显示规则
- (单数)与 Listings 的
MarketplaceId勿混用。marketplaceIds - 先看网关 /
errcode,再解析各脚本对应的解析字段(如httpStatus、itemOffers、itemOffersBatch等)。competitiveSummary - POST 类接口:中含
stdout(脚本组装的 Amazon 请求体),便于排查。requestBody - 白名单:除 外,批量路径以
products/pricing/...开头;1005 时需后端放行对应前缀。batches/products/pricing/... - 各接口 Usage plan 不同(尤其 2022-05-01 批量约 0.033 req/s),注意 429。
- (单数)与Listings的
MarketplaceId请勿混用。marketplaceIds - 先查看网关的**/
errcode,再解析各脚本对应的字段(如httpStatus、itemOffers、itemOffersBatch**等)。competitiveSummary - POST类接口:标准输出中包含****(脚本组装的Amazon请求体),便于排查问题。
requestBody - 白名单:除外,批量接口路径以**
products/pricing/...开头;出现1005**错误时需后端放行对应前缀。batches/products/pricing/... - 各接口的Usage plan不同(尤其是2022-05-01版本的批量接口约为0.033 req/s),注意处理429限流错误。
Important Limitations
重要限制
- 权限:Product Pricing 及相关角色;部分 2022-05-01 能力可能另有应用内配置要求,以 Amazon 为准。
- FOEP 批量:须符合官方模型;条数上限脚本按 40 校验(与文档「up to 40」一致)。
segment - 返回结构以 Amazon schema 为准;详见 。
references/api.md
Feedback: 见 ,:。
references/api.mdskillNamelinkfox-amazon-store-pricing更多跨境 skill:LinkFox Skills
<!-- LF_LARGE_RESPONSE_BLOCK -->- 权限:需拥有Product Pricing及相关角色权限;部分2022-05-01版本的功能可能另有应用内配置要求,以Amazon官方说明为准。
- FOEP批量:必须符合官方模型;脚本按40条校验条数上限(与文档“up to 40”一致)。
segment - 返回结构以Amazon schema为准;详见****。
references/api.md
反馈: 详见,:。
references/api.mdskillNamelinkfox-amazon-store-pricing更多跨境skill:LinkFox Skills
<!-- 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/check_auth_dependency.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"Pickoutside any git working tree (e.g.--out-diron Unix,/tmp/...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.%TEMP%/...
This skill exposes multiple entry scripts:,check_auth_dependency.py,get_competitive_pricing.py,get_item_offers.py,get_listing_offers.py,get_pricing.py,post_competitive_summary_batch.py,post_featured_offer_expected_price_batch.py,post_item_offers_batch.py. Passpost_listing_offers_batch.pyto choose the one you need.--script scripts/<name>.py
runread--limit/--offset--format json|jsonl|csv|tableWhen 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 .
<!-- /LF_LARGE_RESPONSE_BLOCK -->read为避免超出Agent上下文限制,可将响应数据持久化到磁盘,仅提取所需字段:
python scripts/response_io.py run --script scripts/check_auth_dependency.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # 或使用 --path "<JMESPath>"请选择Git工作区外的(例如Unix系统的--out-dir,Windows系统的/tmp/...)。持久化的响应数据可能包含个人身份信息(PII)、定价数据或敏感授权信息——请勿提交到代码仓库。文件不会自动删除;任务完成后请自行清理。%TEMP%/...
本skill提供多个入口脚本:、check_auth_dependency.py、get_competitive_pricing.py、get_item_offers.py、get_listing_offers.py、get_pricing.py、post_competitive_summary_batch.py、post_featured_offer_expected_price_batch.py、post_item_offers_batch.py。通过post_listing_offers_batch.py参数选择所需脚本。--script scripts/<name>.py
runread--limit/--offset--format json|jsonl|csv|table何时优先使用此模式——根据响应数据特征判断,例如:
- 每条记录字段数量多,或包含不需要的字段
- 批量/分页结果(单次调用返回多条数据)
- 长文本字段(描述、评论、HTML、时间序列等)
- 输出结果需在后续步骤中重复使用,而非立即消耗
对于小型、单次使用的响应,直接调用主脚本即可。
⚠️ 预览内容是截断的模式+示例,并非完整数据。任何字段相关的决策必须通过命令从持久化文件中读取。
<!-- /LF_LARGE_RESPONSE_BLOCK -->read