๐ Live API Reference: Field names and parameters may change. If you encounter field errors, check the latest OpenAPI spec at https://apiclaw.io/api/v1/openapi-spec for current field definitions.
APIClaw โ Commerce Data Infrastructure for AI Agents
200M+ Amazon products. 11 endpoints. One API key.
Quick Start
- Get key: apiclaw.io/api-keys (1,000 free credits)
export APICLAW_API_KEY='hms_live_xxx'- Base URL:
https://api.apiclaw.io/openapi/v2โ all POST with JSON body - Auth:
Authorization: Bearer YOUR_API_KEY - New keys need 3-5s to activate. If 403, wait and retry.
โ ๏ธ Critical API Pitfalls (ALL skills must follow)
- Keyword search is broad โ MUST lock
categoryPathfirst viacategoriesendpoint - Brand/price-band queries MUST include --category to avoid cross-category contamination
- Revenue =
sampleAvgMonthlyRevenuedirectly. NEVER calculate avgPrice ร totalSales (overestimates 30-70%) - Sales =
monthlySalesFloor(lower bound). Fallback: 300,000 / BSR^0.65, tag as ๐ - Use API fields directly:
sampleOpportunityIndex,sampleTop10BrandSalesRateโ never reinvent - reviews/analysis needs 50+ reviews; fallback to realtime ratingBreakdown
- Aggregation endpoints (price-band, brand) without categoryPath produce severely distorted data
- Price-band and brand endpoints only accept
keyword(not categoryPath) โ cross-validate returned products
11 Endpoints
| # | Endpoint | Purpose | Key Output |
|---|----------|---------|------------|
| 1 | categories | Browse/search category tree | categoryPath, productCount |
| 2 | markets/search | Market-level metrics | sampleAvgMonthlySales, sampleAvgPrice, topSalesRate, sampleNewSkuRate |
| 3 | products/search | Product search (14 modes) | asin, price, monthlySalesFloor, rating, ratingCount, fbaFee |
| 4 | products/competitors | Competitor discovery | same fields as products/search |
| 5 | realtime/product | Live ASIN detail | rating, features, bestsellersRank[], buyboxWinner.price, variants |
| 6 | reviews/analysis | AI review insights (11 dims) | sentimentDistribution, consumerInsights, topKeywords |
| 7 | products/price-band-overview | Price band summary | hottestBand, bestOpportunityBand, sampleOpportunityIndex |
| 8 | products/price-band-detail | Full 5-band distribution | priceBands[] with sales, brands, ratings per band |
| 9 | products/brand-overview | Brand concentration | sampleTop10BrandSalesRate (CR10), sampleBrandCount |
| 10 | products/brand-detail | Per-brand breakdown | brands[] with sales, revenue, sampleProducts |
| 11 | products/history | Time series (single ASIN per call) | timestamps[], price[], bsr[], monthlySalesFloor[], rating[], ratingCount[], sellerCount[], title/imageUrl/bestSeller/newRelease/aPlus/inventoryStatus changelogs |
Known Quirks
topN,listingAge,newProductPeriodare strings ("10"not10)- Response
.datais always an array โ use.data[0] ratingCountnotreviewCounteverywherebsr(int) in products vsbestsellersRank(array) in realtimebuyboxWinner.priceโ NOT top-levelpricein realtimerealtime/productdoes NOT return: monthlySalesFloor, fbaFee, sellerCountreviewCountMin/Maxfilters currently broken (API-56)reviews/analysismay 500 for certain ASINs (API-58) โ retry different ASIN- Rate limit: 100 req/min, 10 req/sec burst
categoriesusescategoryKeyword(notkeyword) andparentCategoryPath(notparentCategoryName)reviews/analysis:moderequired ("asin"/"category"), useasins(plural array) notasin
Field Differences Across Endpoints
| Data | markets | products/competitors | realtime | reviews | price-band | brand | history | |------|---------|---------------------|----------|---------|------------|-------|---------| | Sales | sampleAvgMonthlySales | monthlySalesFloor | โ | โ | sampleSalesRate | sampleGroupMonthlySales | monthlySalesFloor[] | | Price | sampleAvgPrice | price | buyboxWinner.price | โ | bandMin/MaxPrice | sampleAvgPrice | price[] | | BSR | sampleAvgBsr | bsr (int) | bestsellersRank[] | โ | โ | โ | bsr[] | | Rating | sampleAvgRating | rating | rating | avgRating | sampleAvgRating | sampleAvgRating | rating[] | | Reviews | sampleAvgReviewCount | ratingCount | ratingCount | reviewCount | โ | sampleAvgRatingCount | ratingCount[] | | Insights | โ | โ | โ | โ consumerInsights | โ | โ | โ | | Concentration | topSalesRate | โ | โ | โ | sampleTop3BrandSalesRate | CR10 | โ | | Opportunity | โ | โ | โ | โ | sampleOpportunityIndex | โ | โ |
Confidence Labels (all skills)
- ๐ Data-backed โ direct API data
- ๐ Inferred โ logical reasoning from data
- ๐ก Directional โ suggestions, predictions
Strategy recommendations and subjective conclusions are NEVER ๐. Extreme growth (>200%) = ๐ก only.
Data Notes
- Sales (
monthlySalesFloor) = lower-bound estimate - Realtime = live; products/competitors = ~T+1 delay
- Amazon US only (amazon.com) โ more marketplaces planned
- Each call consumes credits; check
meta.creditsConsumed
Links
- apiclaw.io ยท API Docs ยท GitHub ยท support@apiclaw.io
Scan to join WeChat group