{"openapi":"3.0.0","info":{"title":"DHgate Wholesale Products and Sellers","version":"1.0.0","description":"DHgate wholesale products, MOQs, prices, categories and seller store profiles, one row per entity."},"servers":[{"url":"https://ah-dhgate-com.opendata.best/s/dhgate-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search DHgate wholesale products and categories","description":"Wholesale product, category or hot-keyword rows by keyword, catalogId, categoryUrl or feed.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","search","category","categories","discover","hotkeywords"],"description":"Mode. 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","example":"auto"},"keyword":{"type":"string","description":"Search keyword. Product terms for keyword search. The input form uses usb cable as an example; other modes ignore the keyword.","example":"usb cable"},"searchQueries":{"type":"array","items":{"type":"string"},"description":"Search queries (batch). 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":"Catalog / category ID. 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":"Catalog IDs (batch). A list of DHgate category IDs. maxResults applies to each category within the whole-run cost and row limits."},"categoryUrl":{"type":"string","description":"Category URL. A DHgate category link, such as https://www.dhgate.com/wholesale/electronics/c103.html."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. 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 request limits."},"feed":{"type":"string","description":"Feed. 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","minimum":0,"description":"Start page number. Starting page for listings, counting from 0. Use this field rather than inventing category page URLs.","default":0,"example":0},"sort":{"type":"string","description":"Sort order. Listing order: bestmatch, price, reviews, orders or newest. Support depends on the selected listing.","default":"bestmatch","example":"bestmatch"},"shipCountry":{"type":"string","description":"Ship-to country. 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","example":"us"},"currency":{"type":"string","description":"Currency. Requested currency for product price and shipping details, such as USD. Availability depends on the source.","default":"USD","example":"USD"},"freeShipping":{"type":"boolean","description":"Free shipping filter. Request listings marked as offering free shipping. Verify the returned flag for the chosen destination."},"minOrder":{"type":"string","description":"Minimum order filter. Optional DHgate minimum-order filter value. Support depends on the listing."},"wholesaleOnly":{"type":"boolean","description":"Wholesale only. Request wholesale listings where the selected listing supports this filter."},"brandId":{"type":"string","description":"Brand ID. Optional DHgate brand identifier to narrow supported listings."},"reviewScore":{"type":"string","description":"Review score filter. 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":"Enrich product details. 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,"example":false},"enrichLimit":{"type":"integer","minimum":0,"maximum":50,"description":"Enrich limit. 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,"example":0},"includeFacets":{"type":"boolean","description":"Include facets. Add available search/category filter information or a seller category list as a separate billed row. These rows share maxResults with products.","default":false,"example":false},"taxonomyDepth":{"type":"integer","minimum":1,"maximum":3,"description":"Taxonomy depth. Category tree depth: 1 for top-level categories, 2 to include children, or 3 to include grandchildren. Collection stops at maxResults.","default":1,"example":1},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"keyword":"usb cable","shipCountry":"us","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products":{"post":{"operationId":"products","summary":"Product details and SKUs by itemcode or URL","description":"Product (and optional SKU/review) rows for a given DHgate itemcode, skuId or productUrl. Fixed for this endpoint: mode=\"product\".","tags":["products"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"itemcode":{"type":"string","description":"Item code. DHgate product identifier for product details. Enter the numeric item code from the product link."},"skuId":{"type":"string","description":"SKU ID. 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":"Product URL. A DHgate product link shaped like https://www.dhgate.com/product/<slug>/<itemcode>.html."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. 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 request limits."},"shipCountry":{"type":"string","description":"Ship-to country. 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","example":"us"},"currency":{"type":"string","description":"Currency. Requested currency for product price and shipping details, such as USD. Availability depends on the source.","default":"USD","example":"USD"},"enrichAjax":{"type":"boolean","description":"Extra variant, price and shipping details. Request available variant, price and shipping details for product lookups or enriched list products. Missing details remain absent.","default":false,"example":false},"expandSkus":{"type":"boolean","description":"One row per SKU. 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,"example":false},"includeReviews":{"type":"boolean","description":"Include reviews. 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,"example":false},"productFilters":{"type":"object","description":"Product filters. 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","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"itemcode":"1085512206","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/stores":{"post":{"operationId":"stores","summary":"Seller store profiles by seller ID or store URL","description":"Seller store and catalog rows for a given supplierSeq or storeUrl. Fixed for this endpoint: mode=\"store\".","tags":["stores"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"supplierSeq":{"type":"string","description":"Seller ID. Seller identifier for store products, found in a DHgate store link after /store/."},"storeUrl":{"type":"string","description":"Store URL. A DHgate store link, such as https://www.dhgate.com/store/21290366 or https://www.dhgate.com/store/products/21290366.html."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. 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 request limits."},"shipCountry":{"type":"string","description":"Ship-to country. 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","example":"us"},"currency":{"type":"string","description":"Currency. Requested currency for product price and shipping details, such as USD. Availability depends on the source.","default":"USD","example":"USD"},"includeLegalName":{"type":"boolean","description":"Include legal name. 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,"example":false},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"supplierSeq":"21793321","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"source":{"nullable":true,"type":"string"},"recordType":{"type":"string","enum":["product","sku","review","facets","storeAbout","storeCategories","category","taxonomy","discover","hotKeyword"]},"itemcode":{"nullable":true,"type":"string"},"itemCode":{"nullable":true,"type":"string"},"sku":{"nullable":true,"type":"string"},"skuId":{"nullable":true,"type":"string"},"productId":{"nullable":true},"parentItemcode":{"nullable":true,"type":"string"},"variantName":{"nullable":true,"type":"string"},"attributes":{"nullable":true},"skuMd5":{"nullable":true,"type":"string"},"skuAttrVals":{"nullable":true},"inventoryNum":{"nullable":true,"type":"number"},"inStock":{"nullable":true,"type":"boolean"},"inventoryLocation":{"nullable":true,"type":"string"},"skuSaleStatus":{"nullable":true},"parentPrice":{"nullable":true},"originalPrice":{"nullable":true},"discountRate":{"nullable":true},"promoId":{"nullable":true},"promoEndDate":{"nullable":true},"promoMobileOnly":{"nullable":true},"skuCount":{"nullable":true,"type":"number"},"title":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"price":{"nullable":true},"priceText":{"nullable":true,"type":"string"},"lowPrice":{"nullable":true},"highPrice":{"nullable":true},"internationPrice":{"nullable":true},"internationPriceText":{"nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string"},"currencySign":{"nullable":true,"type":"string"},"minOrder":{"nullable":true},"minOrderNum":{"nullable":true},"measure":{"nullable":true,"type":"string"},"freeShipping":{"nullable":true},"localWarehouse":{"nullable":true},"feedbackPercent":{"nullable":true},"reviewsScore":{"nullable":true},"reviewCount":{"nullable":true},"quantitySold":{"nullable":true},"supplierSeq":{"nullable":true,"type":"string"},"supplierId":{"nullable":true},"sellerName":{"nullable":true,"type":"string"},"domainName":{"nullable":true,"type":"string"},"domainname":{"nullable":true,"type":"string"},"sellerStoreUrl":{"nullable":true,"type":"string"},"productLabels":{"nullable":true},"sellingLabels":{"nullable":true},"coupons":{"nullable":true},"shipCountry":{"nullable":true,"type":"string"},"searchKeyword":{"nullable":true,"type":"string"},"keyword":{"nullable":true,"type":"string"},"catalogId":{"nullable":true,"type":"string"},"catalogName":{"nullable":true,"type":"string"},"adFlag":{"nullable":true},"adId":{"nullable":true},"isAd":{"nullable":true},"rank":{"nullable":true},"shortVideo":{"nullable":true},"url":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"images":{"nullable":true,"type":"array","items":{}},"description":{"nullable":true},"specification":{"nullable":true},"specifications":{"nullable":true},"enriched":{"nullable":true,"type":"boolean"},"scrapedAt":{"nullable":true,"type":"string"},"reviewid":{"nullable":true},"buyerNickname":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"score":{"nullable":true},"content":{"nullable":true,"type":"string"},"imgList":{"nullable":true,"type":"array","items":{}},"responseDTO":{"nullable":true},"brands":{"nullable":true},"attrResult":{"nullable":true},"availableFlagFilters":{"nullable":true},"extractionSource":{"nullable":true,"type":"string"},"priceList":{"nullable":true},"categoryList":{"nullable":true},"nickname":{"nullable":true,"type":"string"},"yearEstablished":{"nullable":true},"mainProducts":{"nullable":true},"businessInformationUrl":{"nullable":true,"type":"string"},"reputation":{"nullable":true},"reviewStats":{"nullable":true},"catalogid":{"nullable":true},"catalogname":{"nullable":true,"type":"string"},"count":{"nullable":true},"level":{"nullable":true},"parentCatalogId":{"nullable":true},"slug":{"nullable":true,"type":"string"},"companyName":{"nullable":true,"type":"string"},"storeAboutUrl":{"nullable":true,"type":"string"},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"nullable":true,"type":"string"},"e164":{"nullable":true,"type":"string"}}}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"nullable":true,"type":"string"}}}},"address":{"nullable":true,"type":"object","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string"}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"type":"object","properties":{"platform":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"handle":{"nullable":true,"type":"string"}}}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"type":"object"},"priceRanges":{"nullable":true,"type":"array","items":{}},"minInventoryNumFlag":{"nullable":true},"priceSource":{"nullable":true,"type":"string"},"catePubId":{"nullable":true,"type":"string"},"catelist":{"nullable":true,"type":"array","items":{}},"lastModifyDate":{"nullable":true,"type":"string"},"aiSummary":{"nullable":true,"type":"string"},"reviewSummary":{"nullable":true,"type":"object"},"reviewTags":{"nullable":true,"type":"array","items":{}},"feedSource":{"nullable":true,"type":"string"},"sellerMetrics":{"nullable":true,"type":"object"},"serviceRatings":{"nullable":true,"type":"object"},"sellerReviewCount":{"nullable":true},"sellerReviewSummary":{"nullable":true,"type":"object"},"sellerReviewTags":{"nullable":true,"type":"array","items":{}},"positiveFeedbackCount":{"nullable":true,"type":"number"},"neutralFeedbackCount":{"nullable":true,"type":"number"},"negativeFeedbackCount":{"nullable":true,"type":"number"},"fulfilmentRate":{"nullable":true},"disputeRate":{"nullable":true}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: entityId; rowType=product: entityId, title, url, price."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"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"}}}}}}