{"openapi":"3.1.0","info":{"title":"DHgate Wholesale Products and Sellers (x402 & MCP)","version":"0.1.0","description":"DHgate wholesale products, MOQs, prices, categories and seller store profiles, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/dhgate-com/v1/search":{"post":{"operationId":"dhgate_com_search","summary":"DHgate Wholesale Products and Sellers: Search DHgate wholesale products and categories","description":"Wholesale product, category or hot-keyword rows by keyword, catalogId, categoryUrl or feed. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["dhgate-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 what to collect, or leave auto to select a mode from the target field you fill. Category tree mode needs no target.","default":"auto","enum":["auto","search","category","categories","discover","hotkeywords"]},"keyword":{"type":"string","description":"Product terms for keyword search. The input form uses usb cable as an example; other modes ignore the keyword."},"searchQueries":{"type":"array","items":{"type":"string"},"description":"A list of keywords to search in one run, replacing keyword. maxResults applies to each keyword within the whole-run cost and row limits."},"catalogId":{"type":"string","description":"DHgate category ID, for example 105. Use it alone for category products, or with a keyword to narrow a search."},"catalogIds":{"type":"array","items":{"type":"string"},"description":"A list of DHgate category IDs. maxResults applies to each category within the whole-run cost and row limits."},"categoryUrl":{"type":"string","description":"A DHgate category link, such as https://www.dhgate.com/wholesale/electronics/c103.html. The Actor reads the category ID from the link.","pattern":"^\\s*(https?://)?([A-Za-z0-9-]+\\.)*dhgate\\.com(/.*)?\\s*$"},"startUrls":{"type":"array","items":{"type":"string"},"description":"DHgate search, category, product or store links, replacing other targets. The first link selects the mode; links of another kind are skipped, and maxResults applies per accepted link within the run limits."},"feed":{"type":"string","description":"Discovery feed mode only: channel, youviewed, referlist, aiad, premiumselect, index2024, jfyviewed or lines (comma list allowed). Leave empty or all to read every feed."},"pageNum":{"type":"integer","description":"Starting page for listings, counting from 0. Use this field rather than inventing category page URLs.","default":0,"minimum":0},"sort":{"type":"string","description":"Listing order: bestmatch, price, reviews, orders or newest. Support depends on the selected listing.","default":"bestmatch"},"shipCountry":{"type":"string","description":"Ship-to destination code, such as us, uk, au or de (ISO gb is normalized to uk). Shipping availability still depends on the product and seller.","default":"us"},"currency":{"type":"string","description":"Requested currency for product price and shipping details, such as USD. Availability depends on the source.","default":"USD"},"freeShipping":{"type":"boolean","description":"Request listings marked as offering free shipping. Verify the returned flag for the chosen destination."},"minOrder":{"type":"string","description":"Optional DHgate minimum-order filter value. Support depends on the listing."},"wholesaleOnly":{"type":"boolean","description":"Request wholesale listings where the selected listing supports this filter."},"brandId":{"type":"string","description":"Optional DHgate brand identifier to narrow supported listings."},"reviewScore":{"type":"string","description":"Optional DHgate review-score filter value; it is not applied in every collection case. Use productFilters.minReviewsScore when you need a minimum search-row score, and verify the returned rows."},"enrichDetails":{"type":"boolean","description":"Add available product and seller details to list rows, using enrichLimit for product details. In store mode, this can also add a billed storeAbout row within maxResults.","default":false},"enrichLimit":{"type":"integer","description":"Maximum list products to enrich, from 0 to 50. Set above 0 with enrichDetails to add product details to search or category rows.","default":0,"minimum":0,"maximum":50},"includeFacets":{"type":"boolean","description":"Add available search/category filter information or a seller category list as a separate billed row. These rows share maxResults with products.","default":false},"taxonomyDepth":{"type":"integer","description":"Category tree depth: 1 for top-level categories, 2 to include children, or 3 to include grandchildren. Collection stops at maxResults.","default":1,"minimum":1,"maximum":3},"maxResults":{"type":"integer","description":"Most rows per keyword, category or URL: default 70, maximum 500, with larger requests collected in parts of 70. All row types count together; the run also respects your maximum cost and the Free plan limits of 200 rows per run and 10 runs of this Actor.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"keyword":"usb cable","shipCountry":"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_dhgate_com"},"example":{"jobId":"job_dhgate-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","itemcode":"example_itemcode","skuId":"example_skuId","variantName":"example_variantName","title":"example_title","price":10}],"meta":{"site":"dhgate-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","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"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/dhgate-com/v1/products":{"post":{"operationId":"dhgate_com_products","summary":"DHgate Wholesale Products and Sellers: Product details and SKUs by itemcode or URL","description":"Product (and optional SKU/review) rows for a given DHgate itemcode, skuId or productUrl. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["dhgate-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":{"itemcode":{"type":"string","description":"DHgate product identifier for product details. Enter the numeric item code from the product link."},"skuId":{"type":"string","description":"Optional variant ID for product details. It does not guarantee a single-variant response or make the parent price the variant price."},"productUrl":{"type":"string","description":"A DHgate product link shaped like https://www.dhgate.com/product/<slug>/<itemcode>.html.","pattern":"^\\s*(https?://)?([A-Za-z0-9-]+\\.)*dhgate\\.com(/.*)?\\s*$"},"startUrls":{"type":"array","items":{"type":"string"},"description":"DHgate search, category, product or store links, replacing other targets. The first link selects the mode; links of another kind are skipped, and maxResults applies per accepted link within the run limits."},"shipCountry":{"type":"string","description":"Ship-to destination code, such as us, uk, au or de (ISO gb is normalized to uk). Shipping availability still depends on the product and seller.","default":"us"},"currency":{"type":"string","description":"Requested currency for product price and shipping details, such as USD. Availability depends on the source.","default":"USD"},"enrichAjax":{"type":"boolean","description":"Request available variant, price and shipping details for product lookups or enriched list products. Missing details remain absent.","default":false},"expandSkus":{"type":"boolean","description":"Add one billed row per available SKU, sharing maxResults with products; this also enables enrichAjax. For search or category listings, enable enrichDetails and set enrichLimit above 0; half the row allowance is then reserved for SKU rows.","default":false},"includeReviews":{"type":"boolean","description":"Add available buyer reviews as separate billed rows in product or store mode. Reviews share maxResults with other rows and may be unavailable for some products or sellers.","default":false},"productFilters":{"type":"object","description":"Search-row conditions: freeShipping, localWarehouse, minReviewsScore, minSold, brand text or catalogId; unknown keys are ignored. Matching rows must satisfy every supplied condition, but these filters are not applied in every collection case."},"maxResults":{"type":"integer","description":"Most rows per keyword, category or URL: default 70, maximum 500, with larger requests collected in parts of 70. All row types count together; the run also respects your maximum cost and the Free plan limits of 200 rows per run and 10 runs of this Actor.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"itemcode":"1085512206","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_dhgate_com"},"example":{"jobId":"job_dhgate-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","itemcode":"example_itemcode","skuId":"example_skuId","variantName":"example_variantName","title":"example_title","price":10}],"meta":{"site":"dhgate-com","endpoint":"products","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","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"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/dhgate-com/v1/stores":{"post":{"operationId":"dhgate_com_stores","summary":"DHgate Wholesale Products and Sellers: Seller store profiles by seller ID or store URL","description":"Seller store and catalog rows for a given supplierSeq or storeUrl. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["dhgate-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":{"supplierSeq":{"type":"string","description":"Seller identifier for store products, found in a DHgate store link after /store/."},"storeUrl":{"type":"string","description":"A DHgate store link, such as https://www.dhgate.com/store/21290366 or https://www.dhgate.com/store/products/21290366.html.","pattern":"^\\s*(https?://)?([A-Za-z0-9-]+\\.)*dhgate\\.com(/.*)?\\s*$"},"startUrls":{"type":"array","items":{"type":"string"},"description":"DHgate search, category, product or store links, replacing other targets. The first link selects the mode; links of another kind are skipped, and maxResults applies per accepted link within the run limits."},"shipCountry":{"type":"string","description":"Ship-to destination code, such as us, uk, au or de (ISO gb is normalized to uk). Shipping availability still depends on the product and seller.","default":"us"},"currency":{"type":"string","description":"Requested currency for product price and shipping details, such as USD. Availability depends on the source.","default":"USD"},"includeLegalName":{"type":"boolean","description":"Requests the seller's legal company name from the store page when it is available. The legal name is not guaranteed for every seller.","default":false},"maxResults":{"type":"integer","description":"Most rows per keyword, category or URL: default 70, maximum 500, with larger requests collected in parts of 70. All row types count together; the run also respects your maximum cost and the Free plan limits of 200 rows per run and 10 runs of this Actor.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"supplierSeq":"21793321","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_dhgate_com"},"example":{"jobId":"job_dhgate-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","itemcode":"example_itemcode","skuId":"example_skuId","variantName":"example_variantName","title":"example_title","price":10}],"meta":{"site":"dhgate-com","endpoint":"stores","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","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"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/dhgate-com/v1/health":{"get":{"operationId":"dhgate_com_health","summary":"DHgate Wholesale Products and Sellers: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["dhgate-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_dhgate_com":{"type":"object","properties":{"recordType":{"type":["string","null"],"title":"Type"},"itemcode":{"type":["string","null"],"title":"Item code"},"skuId":{"type":["string","null"],"title":"SKU id"},"variantName":{"type":["string","null"],"title":"Variant"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["number","null"],"title":"Price"},"minOrder":{"type":["string","null"],"title":"MOQ"},"supplierSeq":{"type":["string","null"],"title":"Supplier"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"scrapedAt":{"type":["string","null"],"title":"Scraped"},"org":{"type":["string","null"],"title":"Org"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"person":{"type":["string","null"],"title":"Person"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"}},"additionalProperties":true},"Response_dhgate_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_dhgate_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"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}