linkfox-ai/linkfox-skills

linkfox-keepa-product-request

通过ASIN获取亚马逊商品详情,包括价格、标题、Item Highlights(商品亮点)、主图、上架日期、材质、重量、变体月销量及近12个月的月销数据。当用户查询亚马逊商品详情、ASIN查询、Item Highlights、itemHighlights、标题补充信息、商品定价、销售排名历史、月销量趋势、商品尺寸、FBA费用、产品规格、批量ASIN查询、Keepa product details, ASIN detail lookup, monthly sales data, pricing info, pr…

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/linkfox-ai/linkfox-skills --skill linkfox-keepa-product-request

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Keepa Product Data Request

This skill guides you on how to retrieve Amazon product details via the Keepa product request API, helping Amazon sellers and analysts obtain structured product data for one or more ASINs across multiple Amazon marketplaces.

Core Concepts

The Keepa Product Request API returns detailed product listing data from Amazon, sourced through Keepa. Given one or more ASINs and a marketplace, it returns comprehensive product information: pricing, title, Item Highlights (itemHighlights, when available), main image, listing date, material, weight, dimensions, sales rank, monthly sales units (current and up to 12 months of history), FBA fees, ratings, review counts, category tree, and more.

Key points:

  • You can query up to 5 ASINs in a single request by separating them with commas.
  • The domain parameter is a numeric marketplace ID (e.g., 1 = Amazon.com US), not a country code.
  • Setting history to 1 includes historical sales data (monthly sales for up to 12 prior months, average sales rank over 30/90/180 days). Setting it to 0 returns only current product information.
  • products[].itemHighlights is a single string of short product information separate from title; it may be null, blank, or absent. It requires no extra request parameter and can be returned with history=0.
  • The response does not include full product descriptions or review content. Item Highlights is not the same as bullet points (features) or a full description.

Parameter Guide

domain (Required)

Numeric Amazon marketplace ID. The mapping is:

Domain IDMarketplace
1Amazon.com (US)
2Amazon.co.uk (UK)
3Amazon.de (Germany)
4Amazon.fr (France)
5Amazon.co.jp (Japan)
6Amazon.ca (Canada)
8Amazon.it (Italy)
9Amazon.es (Spain)
10Amazon.in (India)
11Amazon.com.mx (Mexico)
12Amazon.com.br (Brazil)

Default to 1 (US) when the user does not specify a marketplace.

asin (Required)

One or more Amazon Standard Identification Numbers. For multiple ASINs, separate with commas. Maximum 5 ASINs per request, with a total string length limit of 300 characters.

history (Optional)

Whether to include historical data such as monthly sales for the past 12 months and average sales rank over 30/90/180 days. Set to 1 to include history, 0 (default) for basic info only.

Usage Examples

1. Single ASIN lookup (US marketplace, basic info)

json
{"asin": "B0088PUEPK", "domain": "1"}

2. Single ASIN with historical sales data

json
{"asin": "B0088PUEPK", "domain": "1", "history": 1}

3. Batch lookup of multiple ASINs (Germany)

json
{"asin": "B0088PUEPK,B00U26V4VQ,B07M68S376", "domain": "3", "history": 1}

4. Product lookup on Amazon Japan

json
{"asin": "B09V3KXJPB", "domain": "5", "history": 0}

5. Competitor comparison across multiple ASINs (US, with sales history)

json
{"asin": "B0CXYZ1234,B0CXYZ5678,B0CXYZ9012,B0CXYZABCD", "domain": "1", "history": 1}

调用方式

  • API 端点:POST /keepa/productRequest(完整参数/响应/错误码见 references/api.md)
  • Python 脚本:python scripts/keepa_product_detail.py '<JSON 参数>' [--inline]
  • 成本约束:本工具会消耗算力;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。

输出策略(脚本默认行为):

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-keepa-product-request-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 total/costToken、最大列表字段的长度 + 前 3 条样本)
  • 加 --inline 强制全量打印到 stdout(同样落盘)

读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和算力问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

异常情况

  • 未配置API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。
  • 响应401或402状态码
  • 响应提示算力或余额不足:消息含"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

Display Rules

  1. Present data clearly: Show product details in well-structured tables. Group related fields (e.g., dimensions together, sales data together) for readability.
  2. Price and currency: Always display the price alongside its currency (e.g., "$29.99 USD"). The currency field in the response indicates the local currency.
  3. Sales trend: When historical data is included, present the 12-month sales trend in a table or describe the trajectory (growing, declining, stable) to help users quickly assess momentum.
  4. Dimensions and weight: Convert millimeter values to more intuitive units when appropriate (e.g., show both mm and inches, or mm and cm). Note that weight is in grams.
  5. Unavailable data: Fields with value 0 or -1 indicate data is unavailable. Do not display these as actual measurements; instead note "N/A" or omit them.
  6. Image display: If imageUrl is present, display the product image to help users visually identify the product.
  7. Error handling: When a query fails, explain the issue based on the response and suggest corrections (e.g., invalid ASIN format, unsupported marketplace).
  8. Large batch results: For batch queries with many ASINs, present a summary table first and offer to show individual product details on request.
  9. Item Highlights: Read products[].itemHighlights from the full response, not just the stdout summary or columns. Display the original value separately from title. If it is missing, null, or blank, label it "未返回/不可用"; do not infer that the Amazon listing lacks it or reconstruct it from title, bullets, or description.

Important Limitations

  • No full product descriptions or reviews: The API can return short Item Highlights, but not full product description text or review content.
  • Item Highlights availability: Requires a backend deployment that passes through itemHighlights and available upstream data. Do not promise a value for every ASIN.
  • Maximum 5 ASINs per request: Batch queries are capped at 5 ASINs.
  • ASIN string length limit: The asin parameter has a maximum length of 300 characters.
  • Historical data is optional: Monthly sales history is only returned when history is set to 1.
  • Data freshness: The lastUpdate field indicates when the product data was last refreshed.

User Expression & Scenario Quick Reference

Applicable -- Product data retrieval by ASIN:

User SaysScenario
"Look up this ASIN", "Get product details for B0XXXXXXXX"Single ASIN lookup
"查这个 ASIN 的 Item Highlights", "标题之外的商品亮点/补充信息"Retrieve existing itemHighlights separately from title
"What's the price of this product on Amazon"Price query
"How many units does this product sell per month"Monthly sales check
"Compare these ASINs", "batch lookup these products"Multi-ASIN comparison
"Show me the sales trend for this ASIN"Historical sales analysis
"What category is this product in"Category / classification lookup
"Product dimensions", "how much does it weigh"Physical specs query
"FBA fees for this product"Fee estimation
"When was this product listed", "listing date"Listing age / launch date
"Is this product FBA or FBM"Fulfillment method check

Not applicable -- Needs beyond ASIN-level product data:

  • Search term / keyword analysis (use ABA data tools instead)
  • Full product descriptions, review text, or generating new listing copy (retrieving existing title and itemHighlights is supported)
  • Advertising / PPC campaign data
  • Seller account or store-level analytics
  • Product research without specific ASINs (e.g., "find trending products in kitchen category")
  • Price history charts or Buy Box history over time (only current and average rank data are available)

Boundary judgment: When users say "product research" or "competitor analysis", if they have specific ASINs and want structured product data (price, sales, dimensions, category), this skill applies. If they want keyword-level analysis, market-wide trends without specific ASINs, or advertising metrics, this skill does not apply.

算力消耗规则

按动态规则计费:消耗算力 = 0.045 × 本次商品详情查询消耗的 Keepa token。

重要:本技能的服务按倍数动态计算,可能一次性消耗大量算力,必须提醒用户,由用户决定是否继续。

Feedback:

Auto-detect and report feedback via the Feedback API when any of the following apply:

  1. The functionality or purpose described in this skill does not match actual behavior
  2. The skill's results do not match the user's intent
  3. The user expresses dissatisfaction or praise about this skill
  4. Anything you believe could be improved

Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.


For more high-quality, professional cross-border e-commerce skills, set [LinkFox Skills](https://skill.linkfox.com/).

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
linkfox-ai
커뮤니티

linkfox-aigc-imagegen

AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA2/BANANAPRO/GPT2IMAGE/AIDRAWEDIT/WAN27/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate image"、"画一张图"、"做张图"、"图生图"时触发。

설치 수
1
GitHub Stars
105
업데이트
9월 14일
linkfox-ai
커뮤니티

linkfox-aigc-imagegen-cloth

服饰图生成(模特/服装类)。支持单张或套图:白底图(隐形模特)、模特图、种草图、卖点图、A+图、尺码图。单张单类型直接出图;多张多类型自动编排规划。用户上传模特图或服饰图(上装/下装/连衣裙/外套/鞋帽等)并说"做套图""做模特图""做种草图""做卖点图""做A+图""做尺码图""做服饰白底图"时触发。纯图片编辑操作走 linkfox-aigc-imagegen。

설치 수
1
GitHub Stars
105
업데이트
9월 14일
linkfox-ai
커뮤니티

linkfox-aigc-videogen

AI生视频工具(首尾帧/单图模式),根据原图和提示词生成视频,支持可选尾帧图控制结束画面。支持模型KLING可灵/WAN万相/SEED豆包/SEEDFAST/HAILUO海螺。用户说"生成视频"、"AI视频"、"图生视频"、"做个视频"、"video generation"、"generate video"、"图片转视频"、"动态视频"时触发。

설치 수
1
GitHub Stars
105
업데이트
9월 14일
linkfox-ai
커뮤니티

linkfox-amazon-ads-auth

亚马逊广告(Amazon Ads)店铺授权与管理技能,提供完整的授权流程、已绑定账号与站点的查询、令牌刷新与读取、当前用户广告授权连接解绑等能力。发起授权链接时需要先向用户确认一个账号名称;一次授权即可自动发现并绑定同账号下所有可用站点的广告 profile(每个站点对应一个 profileId)。当用户提到亚马逊广告授权、Amazon Ads 授权、绑定广告账户、解绑广告账户、断开广告连接、取消广告授权、刷新广告令牌、查询 profile 列表、管理已授权广告账户、Amazon Advertising authorization, Ads token refresh, list profiles, ad account management时触发此技能。即使未明确提及"Amazon Ads"或"授权",只要涉及亚马逊广告账号绑定、访问令牌管理或广告 profile 列表查询,也应触发。

설치 수
1
GitHub Stars
105
업데이트
9월 14일