APIClaw — Commerce Data Infrastructure for AI Agents
Real-time access to 200M+ Amazon products. 6 endpoints, one API key.
Language rule: Respond in the user's language.
Quick Start
- 1. Get API key: apiclaw.io/api-keys
- Set env: INLINECODE0
- Base URL: INLINECODE1
- Auth: INLINECODE2
- All endpoints: POST with JSON body
New keys need 3-5 seconds to activate. If 403, wait and retry.
API Endpoints
| # | Endpoint | What It Does | Key Output |
|---|
| 1 | INLINECODE3 | Browse Amazon category tree | categoryName, categoryPath, productCount, hasChildren |
| 2 |
markets/search | Market-level aggregate metrics | sampleAvgMonthlySales, sampleAvgPrice, sampleBrandCount, topSalesRate, sampleFbaRate |
| 3 |
products/search | Product search with 14 preset strategies | asin, title, price, bsrRank, atLeastMonthlySales, rating, ratingCount |
| 4 |
products/competitor-lookup | Competitor analysis by keyword/ASIN | competitive products with sales, revenue, seller info |
| 5 |
realtime/product | Live single-ASIN detail | title, rating, features, variants, bestsellersRank, buyboxWinner |
| 6 |
reviews/analyze | AI-powered review insights | sentimentDistribution, consumerInsights (painPoints, buyingFactors, etc.) |
Endpoint Details
1. Categories
Browse or search Amazon's category hierarchy.
POST /openapi/v2/categories
{"categoryKeyword": "pet supplies"} # search by keyword
{"parentCategoryPath": ["Pet Supplies"]} # browse children
⚠️ Use
categoryKeyword (not
keyword) and
parentCategoryPath (not
parentCategoryName).
2. Markets
Category-level market metrics — answer "Is this market worth entering?"
POST /openapi/v2/markets/search
{"categoryPath": ["Pet Supplies", "Dogs", "Toys"], "topN": "10"}
⚠️
topN must be a
string (
"3",
"5",
"10",
"20"), NOT an integer.
Returns: sampleAvgMonthlySales, sampleAvgPrice, sampleBrandCount, sampleSellerCount, topSalesRate (concentration), sampleNewSkuRate, sampleFbaRate.
3. Products
Product search with filters or 14 built-in selection modes.
POST /openapi/v2/products/search
{"keyword": "yoga mat", "mode": "beginner"}
14 modes: beginner, fast-movers, emerging, long-tail, underserved, new-release, fbm-friendly, low-price, single-variant, high-demand-low-barrier, broad-catalog, selective-catalog, speculative, top-bsr.
Key fields: atLeastMonthlySales (lower-bound estimate), bsrRank (integer), ratingCount (not reviewCount), price, profitMargin, fbaFee.
4. Competitors
Competitor discovery by keyword, brand, or specific ASIN.
POST /openapi/v2/products/competitor-lookup
{"keyword": "wireless earbuds"}
{"asin": "B09V3KXJPB"}
Returns same product fields as
products/search.
5. Realtime Product
Live data for a single ASIN — current listing content and pricing.
CODEBLOCK4
Key response fields:
| Field | Type | Note |
|---|
| INLINECODE25 , INLINECODE26 | String | Basic info |
| INLINECODE27 , INLINECODE28 |
Float/Int | Rating data |
|
ratingBreakdown | Object |
{five_star: {percentage, count}, ...} |
|
features | List | Bullet points |
|
bestsellersRank | Array |
[{category, rank}, ...] — NOT a single integer |
|
buyboxWinner | Object |
{price, fulfillment, seller} — price is nested here |
|
topReviews | List | Top reviews with title, body, rating |
|
variants | List | All variants with dimensions |
⚠️ Does NOT return: atLeastMonthlySales, profitMargin, fbaFee, sellerCount. Use products/competitor-lookup for those.
⚠️ Price is nested: buyboxWinner.price, NOT top-level price.
6. Review Analysis
AI-powered consumer insights from customer reviews.
CODEBLOCK5
⚠️ mode is required ("asin" or "category").
⚠️ Use asins (plural, array), NOT asin (singular string).
11 insight dimensions (labelType): painPoints, improvements, buyingFactors, issues, positives, scenarios, keywords, userProfiles, usageTimes, usageLocations, behaviors.
Returns: totalReviews, avgRating, sentimentDistribution, ratingDistribution, consumerInsights, topKeywords, verifiedRatio.
⚠️ Field Differences Across Endpoints
The 4 endpoint types return different fields. Do NOT assume they share the same structure.
| Data | INLINECODE68 | INLINECODE69 / INLINECODE70 | INLINECODE71 | INLINECODE72 |
|---|
| Monthly Sales | sampleAvgMonthlySales | ✅ atLeastMonthlySales | ❌ | ❌ |
| Price |
sampleAvgPrice | price | buyboxWinner.price | ❌ |
| BSR | sampleAvgBsr | bsrRank (integer) | bestsellersRank (array) | ❌ |
| Rating | sampleAvgRating | rating | rating | avgRating |
| Review Count | sampleAvgReviewCount | ratingCount | ratingCount | totalReviews |
| Sentiment | ❌ | ❌ | ❌ | ✅ sentimentDistribution |
| Consumer Insights | ❌ | ❌ | ❌ | ✅ consumerInsights |
| Pain Points | ❌ | ❌ | ❌ (manual from topReviews) | ✅ AI-analyzed |
| Profit Margin | ❌ | profitMargin | ❌ | ❌ |
| FBA Fee | ❌ | fbaFee | ❌ | ❌ |
| Features/Bullets | ❌ | ❌ | ✅ features | ❌ |
| Variants | ❌ | variantCount (integer) | variants (full list) | ❌ |
What Each Endpoint Is Best For
| Need | Use This |
|---|
| Sales, pricing, competition data | INLINECODE73 or INLINECODE74 |
| Live pricing, reviews, listing content |
realtime/product |
| Category-level market sizing |
markets/search |
| Consumer pain points, sentiment, buying factors |
reviews/analyze |
| Category browsing / validation |
categories |
| Full product picture | Combine
products (quantitative) +
realtime (qualitative) +
reviews (insights) |
Known Quirks
- 1.
topN and newProductPeriod are strings — use "10" not INLINECODE85 - INLINECODE86 is a string — use
"180" not INLINECODE88 - All response
.data is an array — use .data[0] not INLINECODE91 - INLINECODE92 not
reviewCount — the field is called ratingCount everywhere - INLINECODE95 (integer) in products/competitors vs
bestsellersRank (array) in realtime - Rate limit: 100 req/min, 10 req/sec burst
Credits
- - Each API call consumes credits
- Response includes
meta.creditsConsumed and INLINECODE98 - Minimum 50 reviews required for
reviews/analyze (returns INSUFFICIENT_REVIEWS error otherwise) - Plans & rates: apiclaw.io/pricing
Data Notes
- - Monthly sales (
atLeastMonthlySales) is a lower-bound estimate — actual may be higher - Realtime vs database:
realtime/product is live; products/competitors have ~T+1 delay - Currently Amazon US only (amazon.com) — more marketplaces planned
- Sales estimation fallback: When
atLeastMonthlySales is null → Monthly sales ≈ 300,000 / BSR^0.65
Go Deeper
For advanced Amazon product research — 14 selection strategies, risk assessment, pricing analysis, listing optimization, and operational monitoring — install the dedicated skill:
CODEBLOCK6
Links
APIClaw — AI代理的电商数据基础设施
实时访问2亿+亚马逊产品。6个端点,一个API密钥。
语言规则:使用用户语言回复。
快速开始
- 1. 获取API密钥:apiclaw.io/api-keys
- 设置环境变量:export APICLAWAPIKEY=hmslivexxx
- 基础URL:https://api.apiclaw.io/openapi/v2
- 认证方式:Authorization: Bearer YOURAPI_KEY
- 所有端点:POST请求,JSON格式请求体
新密钥需要3-5秒激活。如果返回403,请等待后重试。
API端点
| # | 端点 | 功能说明 | 关键输出 |
|---|
| 1 | categories | 浏览亚马逊类目树 | categoryName, categoryPath, productCount, hasChildren |
| 2 |
markets/search | 市场级聚合指标 | sampleAvgMonthlySales, sampleAvgPrice, sampleBrandCount, topSalesRate, sampleFbaRate |
| 3 | products/search | 产品搜索,14种预设策略 | asin, title, price, bsrRank, atLeastMonthlySales, rating, ratingCount |
| 4 | products/competitor-lookup | 按关键词/ASIN进行竞品分析 | 竞品信息(含销量、收入、卖家信息) |
| 5 | realtime/product | 单个ASIN实时详情 | title, rating, features, variants, bestsellersRank, buyboxWinner |
| 6 | reviews/analyze | AI驱动的评论洞察 | sentimentDistribution, consumerInsights (painPoints, buyingFactors等) |
端点详情
1. 类目
浏览或搜索亚马逊类目层级。
POST /openapi/v2/categories
{categoryKeyword: pet supplies} # 按关键词搜索
{parentCategoryPath: [Pet Supplies]} # 浏览子类目
⚠️ 使用 categoryKeyword(而非 keyword)和 parentCategoryPath(而非 parentCategoryName)。
2. 市场
类目级市场指标——回答这个市场值得进入吗?
POST /openapi/v2/markets/search
{categoryPath: [Pet Supplies, Dogs, Toys], topN: 10}
⚠️ topN 必须是字符串(3、5、10、20),不能是整数。
返回:sampleAvgMonthlySales、sampleAvgPrice、sampleBrandCount、sampleSellerCount、topSalesRate(集中度)、sampleNewSkuRate、sampleFbaRate。
3. 产品
支持筛选或14种内置选择模式的产品搜索。
POST /openapi/v2/products/search
{keyword: yoga mat, mode: beginner}
14种模式:beginner、fast-movers、emerging、long-tail、underserved、new-release、fbm-friendly、low-price、single-variant、high-demand-low-barrier、broad-catalog、selective-catalog、speculative、top-bsr。
关键字段:atLeastMonthlySales(下限估算)、bsrRank(整数)、ratingCount(非reviewCount)、price、profitMargin、fbaFee。
4. 竞品
按关键词、品牌或特定ASIN发现竞品。
POST /openapi/v2/products/competitor-lookup
{keyword: wireless earbuds}
{asin: B09V3KXJPB}
返回与 products/search 相同的产品字段。
5. 实时产品
单个ASIN的实时数据——当前列表内容和定价。
POST /openapi/v2/realtime/product
{asin: B09V3KXJPB}
关键响应字段:
| 字段 | 类型 | 说明 |
|---|
| title、brand | String | 基本信息 |
| rating、ratingCount |
Float/Int | 评分数据 |
| ratingBreakdown | Object | {five_star: {percentage, count}, ...} |
| features | List | 要点描述 |
| bestsellersRank | Array | [{category, rank}, ...] — 非单个整数 |
| buyboxWinner | Object | {price, fulfillment, seller} — 价格在此嵌套 |
| topReviews | List | 带标题、正文、评分的顶级评论 |
| variants | List | 所有变体及尺寸 |
⚠️ 不返回:atLeastMonthlySales、profitMargin、fbaFee、sellerCount。如需这些字段,请使用 products/competitor-lookup。
⚠️ 价格嵌套在 buyboxWinner.price 中,非顶层 price。
6. 评论分析
基于AI的消费者评论洞察。
POST /openapi/v2/reviews/analyze
单个或多个ASIN(需要mode + asins)
{mode: asin, asins: [B09V3KXJPB]}
{mode: asin, asins: [B09V3KXJPB, B08YYYYY]}
类目级洞察
{mode: category, categoryPath: Pet Supplies,Dogs,Toys, period: 90d}
筛选特定维度
{mode: asin, asins: [B09V3KXJPB], labelType: painPoints}
⚠️ mode 是必填项(asin 或 category)。
⚠️ 使用 asins(复数,数组),而非 asin(单数,字符串)。
11个洞察维度(labelType):painPoints、improvements、buyingFactors、issues、positives、scenarios、keywords、userProfiles、usageTimes、usageLocations、behaviors。
返回:totalReviews、avgRating、sentimentDistribution、ratingDistribution、consumerInsights、topKeywords、verifiedRatio。
⚠️ 各端点字段差异
4种端点类型返回不同的字段。不要假设它们共享相同的结构。
| 数据 | markets | products/competitors | realtime/product | reviews/analyze |
|---|
| 月销量 | sampleAvgMonthlySales | ✅ atLeastMonthlySales | ❌ | ❌ |
| 价格 |
sampleAvgPrice | price | buyboxWinner.price | ❌ |
| BSR | sampleAvgBsr | bsrRank(整数) | bestsellersRank(数组) | ❌ |
| 评分 | sampleAvgRating | rating | rating | avgRating |
| 评论数 | sampleAvgReviewCount | ratingCount | ratingCount | totalReviews |
| 情感分析 | ❌ | ❌ | ❌ | ✅ sentimentDistribution |
| 消费者洞察 | ❌ | ❌ | ❌ | ✅ consumerInsights |
| 痛点 | ❌ | ❌ | ❌(从topReviews手动提取) | ✅ AI分析 |
| 利润率 | ❌ | profitMargin | ❌ | ❌ |
| FBA费用 | ❌ | fbaFee | ❌ | ❌ |
| 特性/要点 | ❌ | ❌ | ✅ features | ❌ |
| 变体 | ❌ | variantCount(整数) | variants(完整列表) | ❌ |
各端点最佳用途
| 需求 | 使用此端点 |
|---|
| 销量、定价、竞争数据 | products/search 或 products/competitor-lookup |
| 实时定价、评论、列表内容 |
realtime/product |
| 类目级市场规模 | markets/search |
| 消费者痛点、情感、购买因素 | reviews/analyze |
| 类目浏览/验证 | categories |
| 完整产品画像 | 组合使用 products(定量)+ realtime(定性)+ reviews(洞察) |
已知特性
- 1. topN 和 newProductPeriod 是字符串——使用 10 而非 10
- listingAge 是字符串——使用 180 而非 180
- 所有响应的 .data 是数组——使用 .data[0] 而非 .data.fieldName
- ratingCount 而非 reviewCount——所有地方字段名均为 ratingCount
- products/competitors中的 bsrRank(整数)vs real