# DHgate Scraper — Wholesale Lots, MOQ & Dropship Prices (`rbbscrap/dhgate-scraper`) Actor

Extract DHgate wholesale & dropshipping listings: USD tiered unit prices, small MOQ, free shipping flags, seller store names, and product links. Zero-browser 256MB RAM.

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

## Pricing

$0.20 / 1,000 dhgate record scrapeds

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 Scraper — Wholesale Lots, MOQ & Dropship Prices

<p align="left">
  <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/pOHcRufNNAkbsAh7O-actor-VyCky2xbasES9MJ5S-oUO9Y7HwTK-dhgate3.png" alt="DHgate Logo" width="72" height="72" />
</p>

Quick links: [aliexpress-scraper](https://apify.com/rbbscrap/aliexpress-scraper) · [made-in-china-scraper](https://apify.com/rbbscrap/made-in-china-scraper) · [yiwugo-scraper](https://apify.com/rbbscrap/yiwugo-scraper) · [temu-scraper](https://apify.com/rbbscrap/temu-scraper)

***

### What does DHgate Scraper do?

DHgate Scraper extracts structured marketplace, financial, or social intelligence directly from **DHgate** using an ultra-lightweight **Zero-Browser 256MB RAM** Node.js engine (`got-scraping` + `cheerio`). Designed for US e-commerce sourcers, Amazon/Shopify sellers, hedge funds, and cross-border analysts.

#### Beyond the Official API

- **1-Click Ready**: Pre-filled defaults let you test immediately without writing custom selectors or OAuth tokens.
- **5x Cheaper Than Competition**: Only **$0.0002/item** (**$0.20 per 1,000 items**) compared to piotrv1001/dhgate-listings-scraper ($1.00 / 1K), with your **1st execution 100% free**.
- **Clean Structured Exports**: Download JSON, CSV, Excel, or stream into Make, n8n, Zapier, and MCP AI workflows.

***

### What data can you scrape?

| Category | Extracted Data Points |
| :--- | :--- |
| **Core Identifiers** | Product / Listing / Filing / Video IDs & direct canonical URLs |
| **Pricing & Market Data** | Local currency & USD estimates, MOQs, stock prices, or market metrics |
| **Merchant / Creator Metadata** | Supplier names, hubs, storefronts, stock boards, and verification hints |
| **Structured Enrichments** | Descriptions, timestamps, PDF report links, ratings, and engagement counts |

***

### Why scrape DHgate? (Typical Use Cases)

1. **Cross-Border Sourcing & Arbitrage (China/Asia -> USA)**: Monitor factory-direct FOB prices, MOQs, and wholesale lots before importing.
2. **Product Trend Spotting**: Discover viral Asian consumer products months before they saturate US Amazon or TikTok Shop.
3. **Institutional China/HK Financial Research**: Track official SSE/SZSE/HKEX disclosures, live quotes, and investor sentiment.
4. **MAP & Competitive Intelligence**: Benchmark marketplace prices across Japan, Korea, and Southeast Asia automatically.

***

### How to scrape DHgate data

1. Click **Start** immediately with pre-filled parameters for a **1-Click Run** (first run is 100% free).
2. Customize **Search Query** and **Destination Country** for your target product, ticker, or region.
3. Adjust **Max Items**, optional **USD Price Filters**, or **Sort Order**.
4. Export structured JSON / CSV / Excel from the **Dataset** tab or integrate via Apify API.

***

### Input Configuration & Examples

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `searchQuery` | String | `smart watch` | Target search keywords, product, company, or ticker |
| `shipToCountry` | String | `US` | Shipping destination ISO code for US/EU dropshippers (US, UK, CA, DE). |
| `directUrls` | Array | `[]` | Optional direct DHgate URLs |
| `maxItems` | Integer | `25` | Maximum records to extract (1–5,000) |
| `category` | Select | `all` | Niche segment filter |
| `sortBy` | Select | `relevance` | Ordering (`relevance`, `price_low`, `price_high`, `rating`) |
| `minPriceUsd` | Number | `0` | Minimum estimated USD price filter |
| `maxPriceUsd` | Number | `0` | Maximum estimated USD price filter |
| `sessionCookie` | String (Secret) | `""` | Optional user cookie (BYOC) |
| `useProxy` | Boolean | `true` | Enable Apify Proxy on Cloud runs |

#### Example Input (1-Click Quick Start)

```json
{
  "searchQuery": "smart watch",
  "shipToCountry": "US",
  "maxItems": 25
}
```

#### Example Input (Filtered Research)

```json
{
  "searchQuery": "smart watch",
  "shipToCountry": "US",
  "category": "electronics",
  "sortBy": "price_low",
  "maxItems": 100
}
```

***

### Output Example

#### Table View Preview

| itemCode | title | wholesalePriceUsd | moq | freeShipping | rating | productUrl |
| --- | --- | --- | --- | --- | --- | --- |
| DHgate Sample 1 | DHgate Sample 2 | 36 | DHgate Sample 4 | DHgate Sample 5 | DHgate Sample 6 | https://www.dhgate.com/item/sample |

#### JSON Output Example

```json
{
  "itemCode": "DHgate Sample 1",
  "title": "DHgate Sample 2",
  "wholesalePriceUsd": 36,
  "moq": "DHgate Sample 4",
  "freeShipping": "DHgate Sample 5",
  "rating": "DHgate Sample 6",
  "productUrl": "https://www.dhgate.com/item/sample"
}
```

#### Output Fields Reference

- `itemCode`: Unique identifier extracted from the DHgate record.
- `title`: Primary product, filing, video, or listing title.
- `productUrl`: Direct canonical URL to the DHgate item or PDF filing.
- `scrapedAt`: UTC ISO-8601 extraction timestamp.

***

### Related & Dedicated Scrapers

| Actor | Focus | Pricing |
| :--- | :--- | :--- |
| [aliexpress-scraper](https://apify.com/rbbscrap/aliexpress-scraper) | Dedicated Zero-Browser Asia / B2B Scraper | Pay-Per-Event (÷ 5 + 1st Run Free) |
| [made-in-china-scraper](https://apify.com/rbbscrap/made-in-china-scraper) | Dedicated Zero-Browser Asia / B2B Scraper | Pay-Per-Event (÷ 5 + 1st Run Free) |
| [yiwugo-scraper](https://apify.com/rbbscrap/yiwugo-scraper) | Dedicated Zero-Browser Asia / B2B Scraper | Pay-Per-Event (÷ 5 + 1st Run Free) |
| [temu-scraper](https://apify.com/rbbscrap/temu-scraper) | Dedicated Zero-Browser Asia / B2B Scraper | Pay-Per-Event (÷ 5 + 1st Run Free) |

***

### Error Items & Resilience Reference

- **Geo-Fence / Rate-Limit Protection**: On Cloud runs, built-in timeouts (max 95s) and multi-engine public fallbacks guarantee clean exits without hanging containers.
- **No Unsolicited PII**: Only publicly indexed catalog, corporate disclosure, or product data is retrieved.

***

### FAQ

1. **How much does DHgate Scraper cost?**\
   Only **$0.0002 per item** (**$0.20 per 1,000 items**) via Pay-Per-Event — **5x cheaper** than leading competitors (piotrv1001/dhgate-listings-scraper ($1.00 / 1K)). Your **1st run is 100% free** automatically.
2. **Can I automate this with Make, n8n, or Zapier?**\
   Yes — trigger runs via the native Apify integration in Make, n8n, or Zapier webhooks and stream datasets straight into Google Sheets or Slack.
3. **How do I run it from Python or Node.js?**\
   Use `apify-client` (`ApifyClient`) calling `rbbscrap/dhgate-scraper` and read `client.dataset(run.defaultDatasetId).listItems()`.
4. **Does it work with Claude / Cursor MCP Servers?**\
   Yes, any Apify MCP client can invoke `rbbscrap/dhgate-scraper` directly as a tool using your Apify API token.
5. **Do I need residential proxies or login cookies?**\
   Most public endpoints work out of the box on Apify Proxy; `sessionCookie` is strictly optional (BYOC) if you want personalized session context.
6. **Is scraping public business/catalog data compliant?**\
   This actor extracts strictly public non-personal product, market, and corporate disclosure data in accordance with GDPR (EU Regulation 2016/679) and applicable fair-access principles.
7. **Found a bug or need a custom field?**\
   Open a ticket anytime at <https://apify.com/rbbscrap/dhgate-scraper/issues/open>.

# Actor input Schema

## `searchQuery` (type: `string`):

Primary search keywords, product, company code, or topic to extract from DHgate.

## `shipToCountry` (type: `string`):

Shipping destination ISO code for US/EU dropshippers (US, UK, CA, DE).

## `directUrls` (type: `array`):

Optional direct DHgate URLs to parse in addition to keyword search.

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

Maximum number of structured records to push to the dataset.

## `category` (type: `string`):

Filter or tag extraction by target niche segment.

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

Ordering applied to extracted records.

## `minPriceUsd` (type: `number`):

Optional minimum estimated USD price filter (0 = disabled).

## `maxPriceUsd` (type: `number`):

Optional maximum estimated USD price filter (0 = unlimited).

## `sessionCookie` (type: `string`):

Optional personal session cookie if you want to pass authenticated preferences directly.

## `useProxy` (type: `boolean`):

Automatically use Apify Proxy on Cloud runs for higher reliability on geo-fenced Asian targets.

## Actor input object example

```json
{
  "searchQuery": "smart watch",
  "shipToCountry": "US",
  "directUrls": [],
  "maxItems": 25,
  "category": "all",
  "sortBy": "relevance",
  "minPriceUsd": 0,
  "maxPriceUsd": 0,
  "useProxy": true
}
```

# 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 = {
    "searchQuery": "smart watch",
    "shipToCountry": "US",
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("rbbscrap/dhgate-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 = {
    "searchQuery": "smart watch",
    "shipToCountry": "US",
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("rbbscrap/dhgate-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 '{
  "searchQuery": "smart watch",
  "shipToCountry": "US",
  "maxItems": 25
}' |
apify call rbbscrap/dhgate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rbbscrap/dhgate-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/6NaRYAXOF2vzcsChE/builds/tGtiZOjvcyuRMhu6g/openapi.json
