# DHgate Product Scraper (`mrdoe/dhgate-product-scraper`) Actor

DHgate product scraper: search wholesale products and get price range, discount, minimum order, recent sales, rating, seller store, coupon and shipping for many searches in one run. Export to JSON, CSV or Excel. No login.

- **URL**: https://apify.com/mrdoe/dhgate-product-scraper.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![DHgate Product Scraper - DHgate product prices, discounts, sales and seller data](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/dhgate-product-scraper--hero.png)

### What does DHgate Product Scraper do?

DHgate Product Scraper searches DHgate, the wholesale marketplace, for any product and collects the matching listings. Each row has the product name, price range in US dollars, original price and discount percentage, minimum order and unit, units sold recently, rating and review count, positive-feedback percentage, free-shipping flag, seller coupon, seller store and image. Search several products at once and filter by price, rating, recent sales or free shipping.

### Why use DHgate Product Scraper?

- Compare wholesale prices and minimum orders across many suppliers in one export.
- Spot best sellers with the recently-sold count and rating on every row.
- See the seller store and coupon so you can go straight to the supplier.
- Clean rows for dropshipping research, sourcing sheets and price comparison tools.
- Runs on a schedule if you want to keep an eye on a market: export each run and compare.

### What makes this different

It turns DHgate search pages into structured rows with price range, original price, minimum order, recent sales and seller store, and searches several products at once. Results follow DHgate's own ranking, which changes between requests, so each run is a fresh snapshot.

### How it works

![DHgate Product Scraper workflow: your input, collection, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/dhgate-product-scraper--how-it-works.png)

1. **Your input** — type one or more product searches and optional price, rating or sales filters.
2. **The Actor collects it** — the Actor searches DHgate for each term and applies your filters.
3. **Your output** — you get one clean row per product.

### What data can you extract?

The dataset has 22 fields per row:

| Field                     | Type    | Description                                 |
| ------------------------- | ------- | ------------------------------------------- |
| `id`                      | string  | DHgate item code.                           |
| `name`                    | string  | Product name.                               |
| `url`                     | string  | DHgate product page.                        |
| `priceMin`                | number  | Lowest price of the range in USD.           |
| `priceMax`                | number  | Highest price of the range in USD.          |
| `priceOriginalMin`        | number  | Lowest price before discount in USD.        |
| `currency`                | string  | ISO currency code.                          |
| `discountPercent`         | integer | Percent off the price before discount.      |
| `onSale`                  | boolean | True when a before-discount price is shown. |
| `unit`                    | string  | Selling unit, such as Piece.                |
| `minOrder`                | string  | Minimum order quantity.                     |
| `recentlySold`            | integer | Units sold recently.                        |
| `rating`                  | number  | Average review score out of 5.              |
| `reviewCount`             | integer | Number of reviews.                          |
| `positiveFeedbackPercent` | number  | Positive feedback percentage.               |
| `freeShipping`            | boolean | True when the listing has free shipping.    |
| `sellerCoupon`            | string  | Seller coupon text.                         |
| `sellerStoreUrl`          | string  | Seller store page.                          |
| `sellerStoreId`           | string  | Seller store ID.                            |
| `isAd`                    | boolean | True for sponsored placements.              |
| `imageUrl`                | string  | Main image URL.                             |
| `searchTerm`              | string  | The search that found the product.          |

### How to use DHgate Product Scraper

![DHgate Product Scraper input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/dhgate-product-scraper--input.png)

1. Open the Actor and go to the **Input** tab.
2. Enter one or more **Product searches**, for example `drone`.
3. Optionally set filters and a **Max results** limit.
4. Click **Start**. A default run finishes in under a minute.
5. Open the **Output** tab, then download the dataset or connect it to your tools.

### Input Parameters

| Parameter            | Type    | Required | Default                   | Description                                                                                                                  |
| -------------------- | ------- | -------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `searchTerms`        | array   | No       | `["drone"]`               | One or more DHgate product searches, e.g. "drone", "led strip", "phone case". Max results applies to each search separately. |
| `minPrice`           | number  | No       | —                         | Only return products whose lowest price is at or above this amount in USD.                                                   |
| `maxPrice`           | number  | No       | —                         | Only return products whose lowest price is at or below this amount in USD.                                                   |
| `minRating`          | number  | No       | —                         | Only return products with at least this average review score.                                                                |
| `minSold`            | integer | No       | —                         | Only return products that sold at least this many units recently.                                                            |
| `freeShippingOnly`   | boolean | No       | `false`                   | Only return products marked with free shipping.                                                                              |
| `sortBy`             | string  | No       | `"best_match"`            | Order of each search's results. Price and sales sorting apply to the pages read for that search.                             |
| `maxItems`           | integer | No       | `20`                      | Stop once this many products have been written to the dataset for each search.                                               |
| `proxyConfiguration` | object  | No       | `{"useApifyProxy":false}` | Optional. DHgate may limit repeated requests from one address; use a proxy for large or frequent runs.                       |

### Output Data

![DHgate Product Scraper dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/dhgate-product-scraper--output.png)

Prices are numbers in US dollars. `priceMin` and `priceMax` are the lowest and highest price of the listing's range; `priceMax` is null when there is a single price. `priceOriginalMin` and `discountPercent` are filled when DHgate shows a before-discount price. Fields that do not apply are `null`.

![DHgate Product Scraper field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/dhgate-product-scraper--fields.png)

A real dataset item:

```json
{
    "id": "1101457246",
    "name": "H21 New FPV Drone 8K GPS Professional Beginner Drones Aerial Photography Remote Control Aircrafts HD Dual Cameras Brushless Motor Quadcopte…",
    "url": "https://www.dhgate.com/product/h21-new-fpv-drone-8k-gps-professional-beginner/1101457246.html",
    "priceMin": 39.31,
    "priceMax": 52.05,
    "priceOriginalMin": 47.94,
    "currency": "USD",
    "discountPercent": 18,
    "onSale": true,
    "unit": "Piece",
    "minOrder": "1 Piece",
    "recentlySold": null,
    "rating": null,
    "reviewCount": null,
    "positiveFeedbackPercent": 100,
    "freeShipping": true,
    "sellerCoupon": "$1 off $100+",
    "sellerStoreUrl": "https://www.dhgate.com/store/top-selling/21389615.html",
    "sellerStoreId": "21389615",
    "isAd": false,
    "imageUrl": "https://img4.dhresource.com/300x300/f3/albu/ys/g/30/78ce38f8-57b5-4006-9fb8-f3f054bedc36.jpg",
    "searchTerm": "drone"
}
```

### Usage Examples

#### Drones with free shipping

```json
{
    "searchTerms": ["drone"],
    "freeShippingOnly": true
}
```

#### Best-selling LED strips under 10 USD

```json
{
    "searchTerms": ["led strip"],
    "maxPrice": 10,
    "sortBy": "most_sold"
}
```

### Tips for Best Results

- Sort by Most recently sold to find proven products fast.
- Use Minimum rating to skip listings with poor reviews.
- For large or frequent runs, use a proxy so requests are spread out.
- Export each run and compare files to follow a market over time.

### Known Limitations

- Each search reads up to about 1,000 listings.
- Price and sales sorting apply to the pages read for each search, not to all of DHgate.
- Prices are the listed range in US dollars; volume-based price tiers on the product page are not included.
- Rating and sales counts are missing for listings that have none.
- DHgate may limit repeated requests from one address; very large runs can need a proxy.
- DHgate changes its result ranking between requests, so repeated runs show different products; the Actor has no monitor mode for that reason.

### Integrations

Run it from the Apify API, on a schedule, or from a webhook. Send results straight to Google Sheets, Make, Zapier, Slack or your own database with Apify's built-in integrations.

### Export Formats

Download the dataset as JSON, CSV, Excel, XML, HTML table or RSS from the **Output** tab or the API.

### Frequently Asked Questions

#### How do I scrape DHgate products?

Enter a product search and run the Actor. Each listing comes back with its price range, discount, minimum order, recent sales and seller store.

#### Can I filter for free shipping?

Yes. Turn on Free shipping only.

#### Does it include seller information?

Yes. Each row has the seller store link and ID, plus any seller coupon.

#### How many results can I get?

The default is 20 per search. Raise Max results to collect more; a search reads up to about 1,000 listings.

#### How fresh is the data?

It is read live from DHgate on every run.

#### Does it remove duplicates?

Yes. Each product appears once per run.

#### Do I need an account or login?

No. The Actor collects public DHgate search results and needs no account, cookies or API key.

#### Am I charged for failed runs or empty results?

You are only charged for results that are actually written to the dataset.

#### Can I run it on a schedule?

Yes. Create a Task with your input and add a schedule in Apify Console. With monitor mode on, each scheduled run returns only what changed since the previous one.

### Support

Questions or a missing field? Open an issue from the **Issues** tab on this Actor's page and it will be looked at.

### Legal / Responsible Use

You are responsible for using the collected data in line with DHgate's terms and applicable law. The Actor collects public product data; seller store names are business names, but you remain responsible for privacy law such as GDPR for anything you store about individuals. It is not affiliated with DHgate.

# Actor input Schema

## `searchTerms` (type: `array`):

One or more DHgate product searches, e.g. "drone", "led strip", "phone case". Max results applies to each search separately.

## `minPrice` (type: `number`):

Only return products whose lowest price is at or above this amount in USD.

## `maxPrice` (type: `number`):

Only return products whose lowest price is at or below this amount in USD.

## `minRating` (type: `number`):

Only return products with at least this average review score.

## `minSold` (type: `integer`):

Only return products that sold at least this many units recently.

## `freeShippingOnly` (type: `boolean`):

Only return products marked with free shipping.

## `sortBy` (type: `string`):

Order of each search's results. Price and sales sorting apply to the pages read for that search.

## `maxItems` (type: `integer`):

Stop once this many products have been written to the dataset for each search.

## `proxyConfiguration` (type: `object`):

Optional. DHgate may limit repeated requests from one address; use a proxy for large or frequent runs.

## Actor input object example

```json
{
  "searchTerms": [
    "drone"
  ],
  "freeShippingOnly": false,
  "sortBy": "best_match",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "drone"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/dhgate-product-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": ["drone"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/dhgate-product-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "drone"
  ],
  "maxItems": 20
}' |
apify call mrdoe/dhgate-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/dhgate-product-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5z78jWMRYYZqCaj4r/builds/FD1zEdunFHTYNTy4l/openapi.json
