# DHGate Products Scraper (`devcake/dhgate-products-scraper`) Actor

Find profitable, low-MOQ products from DHGate.com, identify winning products for dropshipping and e-commerce resale.

- **URL**: https://apify.com/devcake/dhgate-products-scraper.md
- **Developed by:** [devcake](https://apify.com/devcake) (community)
- **Categories:** E-commerce
- **Stats:** 22 total users, 4 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.85 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## DHGate Product Scraper for Dropshippers & E-commerce Sellers

Find profitable, low-MOQ products from DHGate.com suppliers. Extract pricing, seller ratings, reviews, and shipping data to identify winning products for dropshipping and e-commerce resale.

### ⚡ What is DHGate Product Scraper?

Stop wasting hours on manual product research on DHGate.com! Our high-speed scraper extracts product listings in minutes - delivering filtered results with seller ratings, pricing, order history, and shipping options perfect for dropshippers and e-commerce sellers sourcing products from China.

**[DHGate.com](https://www.dhgate.com)** is one of the leading Chinese wholesale marketplaces connecting buyers with suppliers, similar to Alibaba but focused on smaller order quantities and consumer goods.

### 🎯 Why Use DHGate Product Scraper?

Our tool extracts the **EXACT data points** you need to evaluate products for your e-commerce business:

| Your Need | What We Extract | Why It Matters |
| --- | --- | --- |
| 📦 __Low MOQ__ | `minOrder` field | Find suppliers with MOQ as low as 1 piece (perfect for testing products) |
| 💰 __Profit Calculations__ | `price` ranges | Get accurate product pricing with volume discounts to calculate margins |
| ⭐ __Seller Quality__ | `feedbackPercent`, `reviewsCore` | Identify reliable suppliers with high ratings and positive reviews |
| 📊 __Product Validation__ | `recentlySold` | See what's actually selling (hot products vs duds) |
| 🚚 __Shipping Options__ | `freeShipping`, `usLocalWarehouse` | Find products with fast shipping options for your customers |
| 💵 **Cost Savings** | `coupons` | Extract available seller coupons to maximize your profit |

### 🔍 Three Scraping Options

Choose the method that fits your workflow - all in a single input field:

#### Option 1: Keyword Search (22 Fields - Complete Data)

Search by any keyword - returns **complete product data** including seller ratings, reviews, coupons, and all seller metrics.

````

Input: "wireless earbuds"
Output: 22 data fields per product (+ 2 metadata fields)
✓ Seller ratings & reviews
✓ Coupons & discounts
✓ Complete seller info

```

#### Option 2: Keyword URL (22 Fields - Complete Data)

Paste any DHGate search URL - extracts the **same rich data** as keyword search.

```

Input: https://www.dhgate.com/w/cell-phone-cases.html
Output: 22 data fields per product (+ 2 metadata fields)
✓ Seller ratings & reviews
✓ Coupons & discounts
✓ Complete seller info

```

#### Option 3: Category URL (22 Fields - Limited Data Availability)

Browse DHGate categories - the same schema applies but many fields will be **null/empty** due to DHGate's category page limitations.

```

Input: https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html
Output: 22 fields per product (+ 2 metadata fields)
⚠️ Limited data availability

- Seller ratings may be missing
- Review counts often unavailable
- Coupon data usually empty

````

**Recommendation**: Use Keyword Search or Keyword URL for **complete product research**. Use Category URL only for **fast browsing** when you don't need comprehensive seller data.

**See "What Data Can DHGate Product Scraper Extract?" for a complete field comparison.**

---

### 💡 Perfect For These E-commerce Scenarios

- 🚀 **New Dropshippers** testing products with MOQ ≤ 10 before committing to bulk orders
- 📦 **eBay/Amazon Sellers** sourcing products to resell at healthy margins
- 🔍 **Product Researchers** validating product demand before listing items
- 💰 **Profit Hunters** comparing prices across multiple suppliers
- 🌐 **Shopify/WooCommerce Store Owners** building inventory from Chinese suppliers
- 📱 **Social Media Sellers** finding trending products to promote on TikTok/Instagram

---

### ⚙️ How to Scrape DHGate Products?

#### Single Query (Auto-Paginates)

```json
{
  "queries": ["wireless earbuds"],
  "maxProducts": 60
}
````

#### Multiple Queries (URLs + Keywords)

```json
{
  "queries": [
    "https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html",
    "https://www.dhgate.com/w/cell-phone-cases.html",
    "phone cases"
  ],
  "maxProducts": 50
}
```

The scraper will:

1. Auto-detect each query type (keyword, keyword URL, or category URL)
2. Auto-paginate until `maxProducts` is reached for each query
3. Add `queryType` and `queryValue` fields to identify the source

***

### 📋 Input Parameters

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `queries` | array | \["category url", "keyword url", "keyword"] | DHGate URLs or search keywords (one per line) |
| `maxProducts` | integer | 60 | **Maximum products per query** (10-500) |

**How it works:**

- Enter any mix of URLs and keywords - the scraper auto-detects the type
- For each query, the scraper keeps fetching pages until `maxProducts` is collected
- Each product in the output includes `queryType` and `queryValue` to identify the source

**Query Types:**

- **keyword**: Plain text like "wireless earbuds" → Keyword search (22 fields + 2 metadata)
- **url**: URLs like `https://www.dhgate.com/w/cell-phone-cases.html` → Keyword URL (22 fields + 2 metadata)
- **category**: URLs like `https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html` → Category URL (same 24 fields, but many null)

***

### 📊 What Data Can DHGate Product Scraper Extract?

#### ⚠️ Important: Same Schema, Different Data Availability

All query types use the **same output schema** (24 fields total: 22 product + 2 metadata). The difference is **data availability**:

| Query Type | Data Completeness | Best For |
|---------------|------------------|----------|
| **keyword** or **url** (keyword URL) | **Most fields populated** | Full product research, supplier evaluation |
| **category** (category URL) | **Many fields null/empty** | Fast browsing, basic product info |

**Every product includes these metadata fields:**
| Field | Description |
| ------- | ------------- |
| `queryType` | Type of query: `"keyword"`, `"url"`, or `"category"` |
| `queryValue` | The keyword or URL that produced this result |

***

#### Complete Field List (22 Product Fields)

##### Core Product Fields (11)

| Field | Description | Keyword/URL | Category |
| ------- | ------------- |:-----------:|:--------:|
| `itemCode` | DHGate item identifier | ✅ | ✅ |
| `productId` | Unique product UUID | ✅ | ✅ |
| `productName` | Full product title | ✅ | ✅ |
| `alt` | Alt text for image | ✅ | ✅ |
| `productDetailUrl` | Link to product page | ✅ | ✅ |
| `imageUrl` | Product image URL | ✅ | ✅ |
| `price` | Price range (e.g., "US $2.90 - 3.60") | ✅ | ✅ |
| `minOrder` | Minimum order quantity | ✅ | ✅ |
| `recentlySold` | Items recently sold | ✅ | ✅ |
| `afterSale` | After-sale service info | ✅ | ❌ |
| `sevenReturn` | 7-day return (1=yes, 0=no) | ✅ | ⚠️ |

##### Seller & Quality Fields (6)

| Field | Description | Keyword/URL | Category |
| ------- | ------------- |:-----------:|:--------:|
| `domainName` | Seller username/store name | ✅ | ✅ |
| `sellerStoreUrl` | Link to seller's DHGate store | ✅ | ✅ |
| `sellerTieringLevel` | Seller tier/ranking | ✅ | ⚠️ |
| `feedbackPercent` | Seller feedback percentage | ✅ | ❌ |
| `reviewCount` | Number of customer reviews | ✅ | ❌ |
| `reviewsCore` | Average review score | ✅ | ❌ |

##### Shipping & Cost Fields (5)

| Field | Description | Keyword/URL | Category |
| ------- | ------------- |:-----------:|:--------:|
| `freeShipping` | Free shipping available | ✅ | ✅ |
| `usLocalWarehouse` | US warehouse availability | ✅ | ⚠️ |
| `xDayArrive` | Estimated delivery days | ✅ | ❌ |
| `coupons` | Available seller coupons | ✅ | ⚠️ |

**Legend:**

- ✅ = Usually available/populated
- ⚠️ = May be available depending on page content (often null/empty)
- ❌ = Not available on category pages (will be null/empty)

***

#### Field Comparison Table

| Field | Keyword/Keyword URL | Category URL |
|-------|---------------------|--------------|
| **Core Product** | | |
| `itemCode` | ✅ | ✅ |
| `productId` | ✅ | ✅ |
| `productName` | ✅ | ✅ |
| `alt` | ✅ | ✅ |
| `productDetailUrl` | ✅ | ✅ |
| `imageUrl` | ✅ | ✅ |
| `price` | ✅ | ✅ |
| `minOrder` | ✅ | ✅ |
| `recentlySold` | ✅ | ✅ |
| `afterSale` | ✅ | ❌ |
| `sevenReturn` | ✅ | ⚠️ |
| **Seller & Quality** | | |
| `domainName` | ✅ | ✅ |
| `sellerStoreUrl` | ✅ | ✅ |
| `sellerTieringLevel` | ✅ | ⚠️ |
| `feedbackPercent` | ✅ | ❌ |
| `reviewCount` | ✅ | ❌ |
| `reviewsCore` | ✅ | ❌ |
| **Shipping & Cost** | | |
| `freeShipping` | ✅ | ✅ |
| `usLocalWarehouse` | ✅ | ⚠️ |
| `xDayArrive` | ✅ | ❌ |
| `coupons` | ✅ | ⚠️ |
| **Metadata** | | |
| `queryType` | ✅ | ✅ |
| `queryValue` | ✅ | ✅ |

**Recommendation**: Use **keyword** or **keyword URL** queries when you need seller ratings, reviews, and complete product data. Use **category URL** queries only for fast browsing when you only need basic product information.

***

### 💰 Pricing

This Actor uses **pay-per-event** pricing for maximum cost efficiency:

| Event | Price |
| --- | --- |
| **Actor Start** | $0.01 |
| **Per Product** | $0.001 |

#### Cost Examples

| Scenario | Est. Cost |
| --- | --- |
| Extract 100 products | ~$0.11 |
| Extract 500 products | ~$0.51 |
| Extract 1,000 products | ~$1.01 |

***

### 📖 Example Output

#### Output Type 1: Keyword / Keyword URL (Complete Data)

```json
{
  "queryType": "keyword",
  "queryValue": "wireless earbuds",
  "itemCode": "1092896036",
  "productId": "8aaa05d49b2ae805019b9c875c6f4e32",
  "productName": "Wireless Bluetooth Earbuds with Charging Case",
  "alt": "Wireless Bluetooth Earbuds with Charging Case",
  "price": "US $3.70 - 5.20",
  "minOrder": "1 Piece",
  "recentlySold": "1,245",
  "imageUrl": "https://img4.dhresource.com/260x260/...",
  "productDetailUrl": "https://www.dhgate.com/product/...",
  "sellerStoreUrl": "https://www.dhgate.com/store/...",
  "domainName": "techstore2024",
  "feedbackPercent": "98.5%",
  "reviewCount": "127",
  "reviewsCore": "4.8",
  "sellerTieringLevel": "3",
  "freeShipping": true,
  "coupons": ["$2 off $50+"],
  "usLocalWarehouse": "1",
  "xDayArrive": "7-15",
  "sevenReturn": 1,
  "afterSale": "Quality warranty"
}
```

#### Output Type 2: Category URL (Limited Data)

```json
{
  "queryType": "category",
  "queryValue": "https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html",
  "itemCode": "877944393",
  "productId": "8aaaa6ab88be5dcb0188d803eea41db6",
  "productName": "Men Clutch Bag Wallet Mens Designer Clutch Handbags",
  "alt": "Men Clutch Bag Wallet Mens Designer Clutch Handbags",
  "price": "￡16.76 - 21.57/ Piece",
  "minOrder": "1 Piece",
  "recentlySold": "1",
  "imageUrl": "https://img4.dhresource.com/300x300/...",
  "productDetailUrl": "https://www.dhgate.com/product/...",
  "sellerStoreUrl": "https://www.dhgate.com/store/...",
  "domainName": "liuhongtai1",
  "sellerTieringLevel": "3",
  "freeShipping": true,
  "coupons": [],
  "feedbackPercent": null,
  "reviewCount": null,
  "reviewsCore": null,
  "usLocalWarehouse": null,
  "xDayArrive": null,
  "afterSale": null,
  "sevenReturn": 0
}
```

***

### 🚀 Pro Tips for Finding Winning Products

#### 1. Start Low-MOQ for Testing

```json
{
  "queries": ["phone accessories"],
  "maxProducts": 60
}
```

Look for products with `minOrder: "1 Piece"` or `"2 Pieces"` to test before committing.

#### 2. Check Seller Reliability

Filter for high-quality sellers by checking:

- `feedbackPercent` above 95%
- `reviewCount` showing substantial sales history
- `sellerTieringLevel` of 3+ (established sellers)

#### 3. Validate Demand with Sales Data

Products with high `recentlySold` numbers indicate proven demand. Prioritize items with:

- 100+ recent sales
- Recent reviews
- Multiple suppliers offering similar products

#### 4. Calculate Real Margins

Use the `price` field plus `coupons` to calculate landed costs:

- Product price
- Shipping (check `freeShipping`)
- DHGate fees (~5%)
- Your target margin

#### 5. Compare Multiple Sources

```json
{
  "queries": [
    "wireless earbuds",
    "https://www.dhgate.com/w/earbuds.html",
    "https://www.dhgate.com/wholesale/electronics/c105005.html"
  ],
  "maxProducts": 100
}
```

Run multiple queries in one go to compare prices across keywords, search URLs, and categories.

***

### 📤 Export Options

Your scraped DHGate product data is available in multiple formats:

- 🗃️ **JSON** — Complete structured data for API integration
- 📊 **CSV** — Spreadsheet compatible for Excel/Google Sheets
- 📑 **Excel** — Pre-formatted for analysis and presentations
- 🌐 **HTML** — Quick browser preview

***

### 🌍 Expand Your Product Sourcing

Don't limit yourself to one marketplace! Diversify your supplier base across multiple platforms:

| Platform | Purpose | Link |
| --- | --- | --- |
| **Alibaba Products** | Source wholesale products with verified suppliers | [View Actor](https://apify.com/devcake/alibaba-products-scraper) |
| **Global Sources Products** | Find products from 10M+ verified manufacturers | [View Actor](https://apify.com/devcake/globalsources-products-scraper) |

#### Why Source from Multiple Marketplaces?

- 📊 **Compare Pricing** — Same products often have different prices across platforms
- 🛡️ **Reduce Risk** — Don't rely on a single supplier or platform
- 🏭 **Find Exclusive Suppliers** — Some manufacturers only list on specific platforms
- ⚡ **Better Lead Times** — Compare production and shipping times
- 💰 **Maximize Margins** — Find the best deals across all marketplaces

***

### ❓ Frequently Asked Questions

#### Is DHGate better than Alibaba for dropshipping?

**DHGate excels for** smaller order quantities (MOQ as low as 1) and consumer goods like electronics, fashion, and accessories. **Alibaba is better** for bulk orders and manufacturing customization. Many sellers use both!

#### What's the difference between the three scraping modes?

**Data Extraction Differences:**

- **keyword** & **keyword URL** queries: Returns **22 product fields** with most fields populated including seller ratings, reviews, coupons, and shipping details
- **category URL** queries: Returns the **same 22 product fields** but many fields are null/empty because DHGate category pages don't include seller ratings, reviews, or coupon data

**When to Use Each:**

- Use **keyword** queries when searching for specific products with complete data
- Use **keyword URL** queries when you have a DHGate search URL and want complete data
- Use **category URL** queries for fast browsing when you only need basic product info (price, image, seller name, MOQ)

**See the "What Data Can DHGate Product Scraper Extract?" section above for a complete field comparison.**

#### Can I scrape DHGate without proxies?

While technically possible, **residential proxies are strongly recommended** for DHGate. The platform has anti-bot measures that may block requests without proper IP rotation. Residential proxies are enabled by default.

#### What's the minimum order quantity on DHGate?

Many DHGate suppliers offer **MOQ as low as 1 piece**, making it ideal for product testing. This is significantly lower than Alibaba's typical MOQ of 10-100+ units.

#### Why are some fields empty when scraping category URLs?

Category pages on DHGate don't include seller ratings, reviews, or coupon data in the HTML. When you use **category URL** queries, these fields will be `null` or empty:

- `feedbackPercent` - ❌ Not available
- `reviewCount` - ❌ Not available
- `reviewsCore` - ❌ Not available
- `xDayArrive` - ❌ Not available
- `afterSale` - ❌ Not available
- `coupons` - ⚠️ Often empty
- `usLocalWarehouse` - ⚠️ Often empty
- `sellerTieringLevel` - ⚠️ May be available

**Solution**: Use **keyword** or **keyword URL** queries to get complete data with all fields populated.

#### Is it legal to scrape DHGate?

This scraper extracts publicly available product data for research purposes. Please:

- Respect DHGate's Terms of Service
- Use reasonable request rates
- Don't overload their servers
- Use data responsibly for legitimate business purposes

***

### ⚠️ Limitations

- Maximum **500 products per query**
- Auto-paginates until maxProducts reached (no manual page control)
- **Category URLs have limited data** - seller ratings, reviews, and several other fields will be null/empty

***

### 🎉 Ready to Find Your Next Winning Product?

Run your first DHGate scrape now and discover profitable products in minutes! 🚀

***

# Actor input Schema

## `queries` (type: `array`):

Enter DHGate URLs or search keywords (one per line). Examples can be edited or removed.

## `maxProducts` (type: `integer`):

Maximum number of products to scrape for each query.

## `proxy` (type: `object`):

Apify Proxy configuration (residential proxies recommended for DHGate)

## Actor input object example

```json
{
  "queries": [
    "https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html",
    "https://www.dhgate.com/w/cell-phone-cases.html",
    "https://www.dhgate.com/wholesale/search.do?act=search&dspm=pcen.hp.searclick.1.q5Hq9JOHIfFFftitFM9I%26resource_id%3D&catalog=&sus=&searchkey=cell+phone+cases&finfo=3,15&ftype=price",
    "cell phone cases"
  ],
  "maxProducts": 60,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `products` (type: `string`):

Scraped DHGate products with pricing, seller ratings, reviews, and shipping options

# 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 = {
    "queries": [
        "https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html",
        "https://www.dhgate.com/w/cell-phone-cases.html",
        "https://www.dhgate.com/wholesale/search.do?act=search&dspm=pcen.hp.searclick.1.q5Hq9JOHIfFFftitFM9I%26resource_id%3D&catalog=&sus=&searchkey=cell+phone+cases&finfo=3,15&ftype=price",
        "cell phone cases"
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devcake/dhgate-products-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 = {
    "queries": [
        "https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html",
        "https://www.dhgate.com/w/cell-phone-cases.html",
        "https://www.dhgate.com/wholesale/search.do?act=search&dspm=pcen.hp.searclick.1.q5Hq9JOHIfFFftitFM9I%26resource_id%3D&catalog=&sus=&searchkey=cell+phone+cases&finfo=3,15&ftype=price",
        "cell phone cases",
    ],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

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

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

```

## CLI example

```bash
echo '{
  "queries": [
    "https://www.dhgate.com/wholesale/cell-phone-cases/c105005002.html",
    "https://www.dhgate.com/w/cell-phone-cases.html",
    "https://www.dhgate.com/wholesale/search.do?act=search&dspm=pcen.hp.searclick.1.q5Hq9JOHIfFFftitFM9I%26resource_id%3D&catalog=&sus=&searchkey=cell+phone+cases&finfo=3,15&ftype=price",
    "cell phone cases"
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call devcake/dhgate-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=devcake/dhgate-products-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "DHGate Products Scraper",
        "description": "Find profitable, low-MOQ products from DHGate.com, identify winning products for dropshipping and e-commerce resale.",
        "version": "0.0",
        "x-build-id": "lBHhjoF1eZpMXLEXR"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/devcake~dhgate-products-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-devcake-dhgate-products-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/devcake~dhgate-products-scraper/runs": {
            "post": {
                "operationId": "runs-sync-devcake-dhgate-products-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/devcake~dhgate-products-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-devcake-dhgate-products-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "queries"
                ],
                "properties": {
                    "queries": {
                        "title": "Search Queries",
                        "type": "array",
                        "description": "Enter DHGate URLs or search keywords (one per line). Examples can be edited or removed.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxProducts": {
                        "title": "Maximum Products per Query",
                        "minimum": 10,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of products to scrape for each query.",
                        "default": 60
                    },
                    "proxy": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify Proxy configuration (residential proxies recommended for DHGate)",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
