# /dhgate/products

`POST /api/dhgate/products`

Price: 20 credits

Get a single DHgate product by id or product URL. Returns title, images and product video, the price range and per-quantity wholesale price tiers, minimum order and measure unit, category, weight and package dimensions, units sold, review count, rating with its star breakdown and review highlight tags, product features, the specification list, the variant axes (colour, compatible model and more, each with its values and images), the shipping option for the requested country (free flag, cost, delivery window, express type, stock country) and the seller store (id, name, positive feedback, transactions, item count, location, opening date, level).

## How to use it

Fetch one DHgate product by its numeric id (or a product page URL). Returns id, product_url, product_title, image+images, video_url and video_duration, price and max_price, currency, price_tiers (min_quantity/max_quantity/price), measure, min_order/max_order, category and category_id, weight and length/width/height, units_sold, review_count, rating, rating_breakdown (five..one star counts), review_with_pic_count, review_tags, features, specifications (name/value), variants (name + values with images), shipping and the seller store.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `currency` (string) — Currency the prices are returned in (default: "USD"; one of: "USD", "EUR", "GBP", "CAD", "AUD", "JPY", "RUB", "BRL", "INR", "MXN", "KRW", "TRY", "SEK", "NOK", "DKK", "PLN", "CHF", "NZD", "SGD", "HKD", "THB", "ILS", "AED", "SAR", "ZAR", "CZK")
- `ship_to_country` (string) — Ship-to country — drives shipping cost and delivery estimates (default: "US"; one of: "US", "GB", "CA", "AU", "DE", "FR", "IT", "ES", "NL", "BE", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CH", "AT", "CZ", "GR", "RU", "BR", "MX", "CL", "AR", "JP", "KR", "CN", "HK", "TW", "SG", "MY", "TH", "ID", "PH", "VN", "IN", "AE", "SA", "IL", "TR", "ZA", "NZ")
- `product` (string, required) — Product id or product page URL (examples: "1114830208", "https://www.dhgate.com/product/x/1114830208.html"; minLength: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "DhgateProduct")
- `id` (string, required)
- `product_url` (string, nullable)
- `product_title` (string, nullable)
- `image` (string, nullable)
- `images` (array) (default: [])
- `video_url` (string, nullable)
- `video_duration` (integer, nullable)
- `price` (number, nullable)
- `max_price` (number, nullable)
- `currency` (string, nullable)
- `price_tiers` (array) (default: [])
  - `@type` (string) (default: "DhgateProductPriceTier")
  - `min_quantity` (integer, nullable)
  - `max_quantity` (integer, nullable)
  - `price` (number, nullable)
- `measure` (string, nullable)
- `min_order` (integer, nullable)
- `max_order` (integer, nullable)
- `category` (string, nullable)
- `category_id` (string, nullable)
- `weight` (number, nullable)
- `length` (number, nullable)
- `width` (number, nullable)
- `height` (number, nullable)
- `units_sold` (integer, nullable)
- `review_count` (integer, nullable)
- `rating` (number, nullable)
- `rating_breakdown` (object, nullable)
  - `@type` (string) (default: "DhgateProductRatingBreakdown")
  - `five_star` (integer, nullable)
  - `four_star` (integer, nullable)
  - `three_star` (integer, nullable)
  - `two_star` (integer, nullable)
  - `one_star` (integer, nullable)
- `review_with_pic_count` (integer, nullable)
- `review_tags` (array) (default: [])
  - `@type` (string) (default: "DhgateProductReviewTag")
  - `name` (string, required)
  - `count` (integer, nullable)
- `features` (array) (default: [])
- `specifications` (array) (default: [])
  - `@type` (string) (default: "DhgateProductSpecification")
  - `name` (string, required)
  - `value` (string, nullable)
- `description_url` (string, nullable)
- `variants` (array) (default: [])
  - `@type` (string) (default: "DhgateProductVariant")
  - `name` (string, required)
  - `values` (array) (default: [])
    - `@type` (string) (default: "DhgateProductVariantValue")
    - `id` (string, nullable)
    - `name` (string, required)
    - `image` (string, nullable)
- `shipping` (object, nullable)
  - `@type` (string) (default: "DhgateProductShipping")
  - `is_free` (boolean) (default: false)
  - `cost` (number, nullable)
  - `currency` (string, nullable)
  - `country` (string, nullable)
  - `stock_country` (string, nullable)
  - `delivery_time` (string, nullable)
  - `delivery_min_days` (integer, nullable)
  - `delivery_max_days` (integer, nullable)
  - `express_type` (string, nullable)
- `store` (object, nullable)
  - `@type` (string) (default: "DhgateProductStore")
  - `id` (string, nullable)
  - `seller_id` (string, nullable)
  - `name` (string, nullable)
  - `url` (string, nullable)
  - `country` (string, nullable)
  - `positive_feedback_percent` (number, nullable)
  - `transaction_count` (integer, nullable)
  - `item_count` (integer, nullable)
  - `favorite_count` (integer, nullable)
  - `opened_at` (string, nullable)
  - `business_type` (string, nullable)
  - `level` (string, nullable)
  - `tier` (string, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

Product not found or no longer listed on DHgate

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

