{"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 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/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, discovery feed, hot keywords and markets modes need 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 API 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, lines or jfy2024 (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 across 192 DHgate countries, such as us, uk, au, de, fr or br (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 across 53 DHgate display currencies (such as USD, EUR, GBP, BRL, CAD, AUD, JPY, KRW, PLN, SEK or TRY), or auto to use the market currency.","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 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":"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: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/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 across 192 DHgate countries, such as us, uk, au, de, fr or br (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 across 53 DHgate display currencies (such as USD, EUR, GBP, BRL, CAD, AUD, JPY, KRW, PLN, SEK or TRY), or auto to use the market currency.","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 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":{"itemcode":"762261164","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: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/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 across 192 DHgate countries, such as us, uk, au, de, fr or br (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 across 53 DHgate display currencies (such as USD, EUR, GBP, BRL, CAD, AUD, JPY, KRW, PLN, SEK or TRY), or auto to use the market currency.","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 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":{"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: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/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"]}}}}