{"openapi":"3.1.0","info":{"title":"1688 Global Wholesale and Suppliers (x402 & MCP)","version":"0.1.0","description":"1688 Global wholesale product search, rankings, offer details and supplier profiles in English with USD pricing, 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/alibaba-1688-com/v1/search":{"post":{"operationId":"alibaba_1688_com_search","summary":"1688 Global Wholesale and Suppliers: Search wholesale products or browse rankings","description":"Wholesale offer rows from keyword search or category rankings. Leave mode on auto or select ranking with categoryId. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["alibaba-1688-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":"Auto selects detail for product URLs or offer IDs, supplier for member IDs or supplier shop URLs, and search for keyword or keywords. Select ranking, facets, or markets explicitly for ranking tabs, dynamic search filter facets, or the supported markets directory.","default":"auto","enum":["auto","search","ranking"]},"keyword":{"type":"string","description":"Enter a search phrase in any language or Unicode script (for example English, Chinese, Japanese, Korean, Spanish, or Arabic). Leaving all target fields empty starts the three-row phone case example, with normal charges."},"startUrls":{"type":"array","items":{"type":"string","pattern":"^https?://([A-Za-z0-9-]+\\.)*1688\\.com/.*$"},"description":"Enter 1688 product URLs (/offer/<number>.html or ?offerId=<number>) or supplier shop URLs (https://<shop>.1688.com/page/..., ?memberId=<id>, or /winport/<id>.html)."},"sortBy":{"type":"string","description":"Sort order for keyword search results.","default":"default","enum":["default","sales","price_asc","price_desc"]},"minPrice":{"type":"number","description":"Optional lower price bound for keyword search in the active search currency (USD by default for US).","minimum":0},"maxPrice":{"type":"number","description":"Optional upper price bound for keyword search in the active search currency (USD by default for US).","minimum":0},"minOrderQuantity":{"type":"integer","description":"Optional minimum order quantity filter for keyword search.","minimum":1,"maximum":1000000},"supplierFilter":{"type":"string","description":"Filter keyword search results by verified 1688 supplier tier.","default":"all","enum":["all","super_factory","certified_merchant","global_verified"]},"certifications":{"type":"array","items":{"type":"string"},"description":"Optional certification filters for keyword search. Supported codes: CE, ROHS, FCC, MSDS, UL, CPC, TUV, UKCA, CB, KC, FSC, PSE."},"rankingName":{"type":"string","description":"Choose the ranking tab to read when mode is ranking. Trending is the older name of TRENDING; Most orders in the last 30 days was merged into Most_Popular. Rows keep the name you chose in rankingName and the tab read in rankingCode.","default":"Most_Popular","enum":["Most_Popular","New_Arrivals","TRENDING","Trending","Ranked_by_L30_Days_Total_Orders"]},"categoryId":{"type":"string","description":"Enter the numeric category ID used by rankings (default 54) or an explicit category filter in keyword search (for example 10166).","default":"54","pattern":"^[0-9]+$"},"categoryLevel":{"type":"integer","description":"Category depth for the ranking filter, from 1 to 3.","default":1,"minimum":1,"maximum":3},"countryCode":{"type":"string","description":"Two-letter country filter for rankings, such as CN or US. Use market to switch the search catalog.","default":"CN","pattern":"^[A-Za-z]{2}$"},"maxPages":{"type":"integer","description":"Number of search pages to check per keyword, from 1 to 5. Collection can stop sooner when the requested row limit is reached.","default":1,"minimum":1,"maximum":5},"includeDetails":{"type":"boolean","description":"Add available product specifications, SKU prices, images, shipping and ratings to search or ranking rows. Enabled by default; CNY details do not overwrite localized search prices.","default":true},"maxDetailItems":{"type":"integer","description":"Maximum search or ranking rows to enrich with details, up to 20 and no more than maxResults. Use at least 1 when includeDetails is enabled; direct detail mode attempts all selected products.","default":1,"minimum":0,"maximum":20},"includeLeads":{"type":"boolean","description":"Add available supplier contacts and company fields to product rows; defaults to includeDetails. Supplier mode always attempts supplier information."},"maxLeadItems":{"type":"integer","description":"Maximum search or ranking rows to enrich with supplier information, up to 100 and no more than maxResults. Defaults to maxDetailItems; supplier mode attempts all selected suppliers.","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":{"keyword":"phone case","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_alibaba_1688_com"},"example":{"jobId":"job_alibaba-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"offerId":"example_offerId","title":"example_title","sellerName":"example_sellerName","priceText":10,"salesText":"example_salesText","detailStatus":"example_detailStatus"}],"meta":{"site":"alibaba-1688-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/alibaba-1688-com/v1/products":{"post":{"operationId":"alibaba_1688_com_products","summary":"1688 Global Wholesale and Suppliers: Wholesale offer details by offer ID or URL","description":"Detailed offer rows (with optional SKU, contact, DSR, similar and review rows) for given 1688 offerIds or URLs. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["alibaba-1688-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":{"offerIds":{"type":"array","items":{"type":"string"},"description":"Enter numeric 1688 product IDs, such as the digits in detail.1688.com/offer/123456789.html. Direct details retain their source language and CNY prices unless translation is enabled."},"startUrls":{"type":"array","items":{"type":"string","pattern":"^https?://([A-Za-z0-9-]+\\.)*1688\\.com/.*$"},"description":"Enter 1688 product URLs (/offer/<number>.html or ?offerId=<number>) or supplier shop URLs (https://<shop>.1688.com/page/..., ?memberId=<id>, or /winport/<id>.html)."},"includeDescription":{"type":"boolean","description":"Include available product description text and images when collecting product details.","default":true},"includeContactInfo":{"type":"boolean","description":"Attempt additional published landline and fax details. Requires includeLeads; unavailable contacts remain empty.","default":false},"includeSku":{"type":"boolean","description":"Fetch the standalone SKU selector surface for enriched product rows when available.","default":false},"includeReviews":{"type":"boolean","description":"Add buyer reviews of each enriched product as rows of their own (recordType review). Review rows share each input's maxResults with the product rows and are charged like any row: one offer ID with maxResults 3 gives the product and up to two reviews.","default":false},"includeDsr":{"type":"boolean","description":"Fetch detailed store rating tags and fulfillment scores for enriched product rows.","default":false},"includeSimilar":{"type":"boolean","description":"Fetch comparable similarOffers cards on enriched product rows when available.","default":false},"includeRecommend":{"type":"boolean","description":"Fetch store recommendedOffers cards on enriched product rows when available.","default":false},"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":{"offerIds":["744658711502"],"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_alibaba_1688_com"},"example":{"jobId":"job_alibaba-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"offerId":"example_offerId","title":"example_title","sellerName":"example_sellerName","priceText":10,"salesText":"example_salesText","detailStatus":"example_detailStatus"}],"meta":{"site":"alibaba-1688-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/alibaba-1688-com/v1/suppliers":{"post":{"operationId":"alibaba_1688_com_suppliers","summary":"1688 Global Wholesale and Suppliers: Supplier company profiles by member ID or URL","description":"Supplier rows for given 1688 memberIds or company profile URLs. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["alibaba-1688-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":{"memberIds":{"type":"array","items":{"type":"string"},"description":"Enter supplier member IDs, including b2b- IDs or older alphanumeric login IDs. For supplier shop URLs, paste them in startUrls."},"startUrls":{"type":"array","items":{"type":"string","pattern":"^https?://([A-Za-z0-9-]+\\.)*1688\\.com/.*$"},"description":"Enter 1688 product URLs (/offer/<number>.html or ?offerId=<number>) or supplier shop URLs (https://<shop>.1688.com/page/..., ?memberId=<id>, or /winport/<id>.html)."},"includeContactInfo":{"type":"boolean","description":"Attempt additional published landline and fax details. Requires includeLeads; unavailable contacts remain empty.","default":false},"includeDsr":{"type":"boolean","description":"Fetch detailed store rating tags and fulfillment scores for enriched product rows.","default":false},"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":{"memberIds":["b2b-221723143599341d6d"],"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_alibaba_1688_com"},"example":{"jobId":"job_alibaba-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"offerId":"example_offerId","title":"example_title","sellerName":"example_sellerName","priceText":10,"salesText":"example_salesText","detailStatus":"example_detailStatus"}],"meta":{"site":"alibaba-1688-com","endpoint":"suppliers","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/alibaba-1688-com/v1/health":{"get":{"operationId":"alibaba_1688_com_health","summary":"1688 Global Wholesale and Suppliers: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["alibaba-1688-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_alibaba_1688_com":{"type":"object","properties":{"offerId":{"type":["string","number","boolean","object","array","null"]},"title":{"type":["string","number","boolean","object","array","null"]},"sellerName":{"type":["string","number","boolean","object","array","null"]},"priceText":{"type":["number","string","null"]},"salesText":{"type":["string","number","boolean","object","array","null"]},"detailStatus":{"type":["string","number","boolean","object","array","null"]},"leadSource":{"type":["string","number","boolean","object","array","null"]},"leadReveal":{"type":["string","number","boolean","object","array","null"]}},"additionalProperties":true},"Response_alibaba_1688_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_alibaba_1688_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"]}}}}