{"openapi":"3.1.0","info":{"title":"Amazon Products Search and Best Sellers (x402 & MCP)","version":"0.1.0","description":"Amazon product search, ASIN details, offers, Best Sellers, New Releases and Movers across 23 marketplaces, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base, Polygon, Arbitrum, Monad, World Chain and Solana. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2) and 'exact' (EIP-3009) on EVM chains, and 'exact' (SPL USDC transfer, facilitator-paid fees) on Solana. 'upto' charges only for the rows delivered. 'exact' settles the full quoted amount (quoted rows x the row price) even when fewer rows than maxResults are delivered. Empty/0-row (404), invalid input (422), and upstream failures or timeouts (503, see error.code) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://agensi.opendata.best"}],"paths":{"/s/amazon-com/v1/search":{"post":{"operationId":"amazon_com_search","summary":"Amazon Products Search and Best Sellers: Search Amazon products or browse Best Sellers and Movers","description":"Product and ranking rows across 23 Amazon marketplaces by keywords, category or browse surface. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["amazon-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose the collection mode, or leave auto to infer it from detail URLs, keywords, category targets, or search seeds. Search-term mode returns suggestions rather than products.","default":"auto","enum":["auto","keyword","category","bestsellers","newreleases","movers","searchSeed"]},"keywords":{"type":"array","items":{"type":"string"},"description":"Amazon search keywords, one per line (up to 20). Fill this for keyword search. Optional for category mode (search within a category).","maxItems":20},"seedKeywords":{"type":"array","items":{"type":"string"},"description":"Optional starting terms for searchSeed mode, up to 20. When left empty the API returns built-in department terms (marked source=builtin, verified=false); each returned row is billed like any other result. When seeds are given but suggestions cannot be fetched, the run fails instead of substituting built-ins.","maxItems":20},"market":{"type":"string","description":"Amazon storefront to query.","default":"US","enum":["AE","AU","BE","BR","CA","DE","EG","ES","FR","GB","IE","IN","IT","JP","MX","NL","PL","SA","SE","SG","TR","US","ZA"]},"postalCode":{"type":"string","description":"Optional marketplace delivery postal or ZIP code (for example 10001 for US or 100-0001 for JP) used to anchor local currency, BuyBox price, and domestic shipping text.","maxLength":20},"category":{"type":"string","description":"Department key such as electronics, books, or kitchen. For category or ranking modes, provide this field or a compatible browse node or ranking slug.","enum":["all","amazon-devices","audible","automotive","baby","beauty","books","computers","electronics","fashion","garden","grocery","handmade","health","home","industrial","kindle-store","kitchen","luggage","movies-tv","music","office-products","pet-supplies","software","sports","tools","toys-and-games","video-games"]},"categoryNodeId":{"type":"string","description":"Optional browse node from the selected Amazon storefront. Overrides the department's mapped node."},"categorySlug":{"type":"string","description":"Optional ranking category path, such as electronics. Overrides the department's mapped ranking path."},"sort":{"type":"string","description":"Sort keyword or category search results. Ranking and detail modes ignore this setting.","default":"featured","enum":["featured","relevance","price-asc","price-desc","newest","avg-review","review-count"]},"condition":{"type":"string","description":"Item condition facet for keyword/category search. Not supported for bestsellers/newreleases/detail.","enum":["new","used","collectible","refurbished","renewed"]},"minPrice":{"type":"number","description":"Minimum price for keyword or category search in the selected storefront's currency. Ranking and detail modes ignore this setting.","minimum":0},"maxPrice":{"type":"number","description":"Maximum price for keyword or category search in the selected storefront's currency. Ranking and detail modes ignore this setting.","minimum":0},"pages":{"type":"integer","description":"Maximum result pages for each input, from 1 to 20. Collection may stop sooner at the row or cost limit.","default":1,"minimum":1,"maximum":20},"scrapeDetails":{"type":"boolean","description":"Enable product-detail enrichment of listing rows. On by default; seller enrichment also requires enrichDetails and a positive enrichMaxItems value.","default":true},"enrichDetails":{"type":"boolean","description":"Add available seller business information to product rows. On by default; enrichment does not create a separate seller row.","default":true},"enrichMaxItems":{"type":"integer","description":"Maximum number of search/list rows to enrich with extra product detail and offer fetches when enrichDetails is enabled. Default keeps runs fast; raise for deeper variation/offer coverage.","default":1,"minimum":0,"maximum":100},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 10 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"keywords":["usb hub"],"market":"US","scrapeDetails":false,"enrichDetails":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_amazon_com"},"example":{"jobId":"job_amazon-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"market":"example_market","mode":"example_mode","category":"example_category","keyword":"example_keyword","page":10,"rank":10}],"meta":{"site":"amazon-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/amazon-com/v1/products":{"post":{"operationId":"amazon_com_products","summary":"Amazon Products Search and Best Sellers: Product details by ASIN or URL","description":"Detailed Amazon product rows for given ASINs or detailUrls. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["amazon-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asins":{"type":"array","items":{"type":"string"},"description":"Optional list of 10-character Amazon ASINs (for example B07684BPLB). Each ASIN is resolved to a product detail URL on the selected marketplace.","maxItems":100},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Amazon product links (/dp/ASIN) or seller profile links (/sp?seller=ID) on the chosen market's site, e.g. https://www.amazon.com/dp/B0ABCD1234. Fill this to fetch those pages (detail mode).","maxItems":100},"market":{"type":"string","description":"Amazon storefront to query.","default":"US","enum":["AE","AU","BE","BR","CA","DE","EG","ES","FR","GB","IE","IN","IT","JP","MX","NL","PL","SA","SE","SG","TR","US","ZA"]},"postalCode":{"type":"string","description":"Optional marketplace delivery postal or ZIP code (for example 10001 for US or 100-0001 for JP) used to anchor local currency, BuyBox price, and domestic shipping text.","maxLength":20},"scrapeDetails":{"type":"boolean","description":"Enable product-detail enrichment of listing rows. On by default; seller enrichment also requires enrichDetails and a positive enrichMaxItems value.","default":true},"enrichDetails":{"type":"boolean","description":"Add available seller business information to product rows. On by default; enrichment does not create a separate seller row.","default":true},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 10 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"asins":["B07684BPLB"],"market":"US","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_amazon_com"},"example":{"jobId":"job_amazon-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"market":"example_market","mode":"example_mode","category":"example_category","keyword":"example_keyword","page":10,"rank":10}],"meta":{"site":"amazon-com","endpoint":"products","maxResults":5,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/amazon-com/v1/health":{"get":{"operationId":"amazon_com_health","summary":"Amazon Products Search and Best Sellers: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["amazon-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_amazon_com":{"type":"object","properties":{"market":{"type":["string","null"],"title":"Market"},"mode":{"type":["string","null"],"title":"Mode"},"category":{"type":["string","null"],"title":"Category"},"keyword":{"type":["string","null"],"title":"Keyword"},"page":{"type":["number","null"],"title":"Page"},"rank":{"type":["number","null"],"title":"Rank"},"asin":{"type":["string","null"],"title":"ASIN"},"sellerId":{"type":["string","null"],"title":"Seller ID"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["string","null"],"title":"Price"},"currencyCode":{"type":["string","null"],"title":"Currency"},"ratingScore":{"type":["number","null"],"title":"Rating"},"reviewCount":{"type":["number","null"],"title":"Reviews"},"isSponsored":{"type":["boolean","null"],"title":"Sponsored"},"productUrl":{"type":["string","null"],"format":"uri","title":"Product URL"},"image":{"type":["string","null"],"title":"Image"},"org":{"type":["string","null"],"title":"Seller org"},"address":{"type":["string","null"],"title":"Business address"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"}},"additionalProperties":true},"Response_amazon_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_amazon_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}}}