Discover/DHgate API
live

DHgate APIdhgate.com

Access DHgate product search, category browsing, bulk pricing tiers, customer reviews, and flash deals via 5 structured API endpoints.

Endpoint health
verified 6d ago
search_products
get_product_details
get_product_reviews
get_flash_deals
get_category_products
5/5 passing latest checkself-healing
Endpoints
5
Updated
13d ago

What is the DHgate API?

The DHgate API covers 5 endpoints that expose product search, category browsing, full product detail pages, customer reviews, and active flash deals from DHgate.com. The get_product_details endpoint returns price tiers for bulk purchasing, color and size variants, shipping options, seller ratings, and product specifications — all in a single call identified by an item code obtained from search_products or get_category_products.

Try it
Page number for pagination.
Sort order for results.
Search keyword.
Maximum price filter in USD (numeric string, e.g. '100').
Minimum price filter in USD (numeric string, e.g. '10').
api.parse.bot/scraper/024e9def-2f3c-46b2-820b-7badc7341d2a/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/024e9def-2f3c-46b2-820b-7badc7341d2a/search_products?page=1&sort=price_asc&query=laptop+bag&max_price=100&min_price=10' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace dhgate-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: DHgate SDK — search products, drill into details, check reviews and deals."""
from parse_apis.dhgate_api import DHgate, Sort, ProductNotFound

client = DHgate()

# Search for products with sort and price filter — limit caps total items fetched.
for product in client.productsummaries.search(query="wireless earbuds", sort=Sort.PRICE_ASC, limit=3):
    print(product.name, product.price, product.seller)

# Drill down: take one item, then fetch full details.
summary = client.productsummaries.by_category(category_id="110", limit=1).first()
if summary:
    detail = summary.details()
    print(detail.name, detail.item_code)
    for ship in detail.shipping[:2]:
        print(ship.expressType, ship.deliveryTime, ship.shipcost)

# Sub-resource: reviews for a product.
if summary:
    for review in summary.reviews.list(limit=3):
        print(review.score, review.content[:60], review.country)

# Typed error handling on a bad item code.
try:
    client.products.get(item_code="0000000000")
except ProductNotFound as exc:
    print(f"Product not found: {exc.item_code}")

# Flash deals — single-page listing of current promotions.
for deal in client.flashdeals.list(limit=5):
    print(deal.price, deal.original_price, deal.discount_percent, deal.save_price)

print("exercised: productsummaries.search / productsummaries.by_category / details / reviews.list / products.get / flashdeals.list")
All endpoints · 5 totalmissing one? ·

Full-text search over DHgate product listings. Returns paginated results matching the query keyword, with optional price range filtering and sort control. Each result includes item code, name, price, URL, image, and seller info. Paginates via integer page number.

Input
ParamTypeDescription
pageintegerPage number for pagination.
sortstringSort order for results.
queryrequiredstringSearch keyword.
max_pricestringMaximum price filter in USD (numeric string, e.g. '100').
min_pricestringMinimum price filter in USD (numeric string, e.g. '10').
Response
{
  "type": "object",
  "fields": {
    "total": "integer total number of results",
    "products": "array of product summary objects with item_code, name, price, url, image, seller, supplier_id"
  },
  "sample": {
    "data": {
      "total": 50,
      "products": [
        {
          "url": "https://www.dhgate.com/product/vintage-style-laptop-sleeve-bag-envelope/1104927294.html",
          "name": "Vintage Style Laptop Sleeve Bag Envelope Clutch with Metal Lock Document Organizer for Daily Use Fits 13-14 Inch Notebook",
          "image": "",
          "price": "$64.67",
          "seller": "yxbggs",
          "item_code": "1104927294",
          "supplier_id": ""
        }
      ]
    },
    "status": "success"
  }
}

About the DHgate API

Searching and Browsing Products

The search_products endpoint accepts a required query keyword and optional min_price, max_price (both USD numeric strings), sort, and page parameters. Results are paginated and each item in the products array includes item_code, name, price, url, image, seller, and supplier_id. The total field tells you how many matching products exist across all pages. The get_category_products endpoint works similarly but accepts a numeric category_id string — for example, '110' for Shoes & Accessories — and returns the same product summary shape without supplier_id.

Product Details and Variants

get_product_details takes a single item_code and returns the full detail record: a name string, an images array, an attributes array of color and size variant objects (each with attrName and itemAttrvalList), price_tiers for bulk quantity pricing, a shipping array with cost and delivery time per method, a seller_rating object summarizing the seller's review history, and a specifications object mapping spec names to values. Item codes flow directly from the search or category endpoints.

Reviews and Flash Deals

get_product_reviews paginates 10 reviews per page for a given item_code. Each object in reviewList includes reviewid, score, content, buyerNickname, country, createdDateText, and prodAttrs — the product attributes the buyer selected. The totalCount field indicates the full review volume. The get_flash_deals endpoint takes no inputs and returns all currently active deals, each with item_code, image, price, original_price, discount_percent, url, and save_price.

Reliability & maintenanceVerified

The DHgate API is a managed, monitored endpoint for dhgate.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when dhgate.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official dhgate.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
6d ago
Latest check
5/5 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a bulk-sourcing tool that reads price_tiers from get_product_details to calculate per-unit costs at different order quantities.
  • Aggregate competitor pricing by running search_products with min_price and max_price filters across product categories.
  • Monitor flash deal availability using get_flash_deals to track discount_percent and save_price changes over time.
  • Populate a product catalog by combining get_category_products for listing pages with get_product_details for full spec pages.
  • Analyze seller quality by collecting seller_rating objects across multiple item codes from the same supplier_id.
  • Display localized review sentiment by filtering reviewList entries by country from get_product_reviews.
  • Automate price-drop alerts by comparing original_price vs price fields returned by get_flash_deals.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does DHgate have an official developer API?+
DHgate offers an official API program for registered merchants and partners through their DHgate Open Platform at open.dhgate.com, but access is gated to approved sellers and requires a formal application. This Parse API provides structured access to product, review, and deal data without that approval process.
How does bulk pricing work in the `get_product_details` response?+
The price_tiers field is an array of objects, each specifying a minimum quantity threshold and the corresponding per-unit price. For example, a product might return three tiers covering 1–9 units, 10–49 units, and 50+ units at progressively lower prices. This data maps directly to DHgate's quantity discount display on the product page.
Does the API return seller store pages or seller-level product catalogs?+
Not currently. The API returns supplier_id and seller_rating on product records, but there is no dedicated endpoint for browsing a seller's full storefront or retrieving all listings by a specific supplier_id. You can fork the API on Parse and revise it to add a seller-catalog endpoint using the supplier_id values already exposed.
Are product variant stock levels returned by `get_product_details`?+
The attributes array returns color and size variant definitions via attrName and itemAttrvalList, but per-variant inventory counts are not included in the response. The API covers pricing tiers, variant names, shipping options, and specifications. You can fork it on Parse and revise to add inventory availability if that data becomes a requirement.
What is the page size for `get_product_reviews` and can it be changed?+
The endpoint returns 10 reviews per page and does not expose a page-size parameter. Pagination is controlled by the integer page input. Use totalCount in the response to determine how many pages are available for a given item_code.
Page content last updated . Spec covers 5 endpoints from dhgate.com.
Related APIs in MarketplaceSee all →
aliexpress.com API
Search for products across AliExpress and instantly access detailed information including product specs, customer reviews, and pricing to make informed purchasing decisions. Browse through product categories and retrieve complete product data directly from URLs to compare options and find exactly what you're looking for.
banggood.com API
Search Banggood products and retrieve detailed information including prices, specifications, and customer reviews to help you discover items and make informed purchasing decisions. Perfect for monitoring inventory, comparing products, and staying updated on what's available across Banggood's catalog.
lightinthebox.com API
Browse and discover products across categories on LightInTheBox, search for items, view detailed product information and customer reviews, and check out current flash sale deals. Find exactly what you're looking for with comprehensive product catalogs and real-time pricing updates.
s.1688.com API
Search for wholesale products on 1688.com and retrieve detailed information including pricing, specifications, and customer reviews. Access comprehensive product data to compare suppliers and make informed purchasing decisions on China's leading B2B marketplace.
dsw.com API
Search and browse DSW shoe products by category, view detailed product information, and read customer reviews to find the perfect pair. Access live product listings and comprehensive feedback to make informed shopping decisions.
hm.com API
Search H&M's US product catalog by keyword and instantly retrieve detailed information like prices, product images, available sizes, and real-time stock availability. Perfect for comparing items, tracking product details, or building shopping applications powered by H&M's current inventory data.
homedepot.com API
Search and browse Home Depot's product catalog to compare pricing, check real-time availability, and review detailed product specifications. Find products across all categories, look up store locations and hours, and check fulfillment options including in-store pickup and delivery.
walmart.com API
Retrieve product data from Walmart.com including pricing, descriptions, availability, reviews, and category listings. Access real-time product information to search by keyword, look up items by ID or URL, and browse department categories.