# China Global B2B Wholesale & Factory Price Comparator (`lonwabo/global-b2b-wholesale-comparator`) Actor

Live multi-platform B2B wholesale and factory supplier price comparator across Made-in-China, YiwuGo (Yiwu Trade City), and DHgate. Compares OEM/ODM manufacturing, bulk MOQs, audited suppliers, and direct RFQ links.

- **URL**: https://apify.com/lonwabo/global-b2b-wholesale-comparator.md
- **Developed by:** [Lonwabo Mfundisi](https://apify.com/lonwabo) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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

## Global B2B Wholesale & Factory Price Comparator 🏭🇨🇳

Search, compare, and source directly from certified factory manufacturers and wholesale hubs across **Made-in-China.com** (#1 Alibaba international rival), **YiwuGo** (the official digital marketplace of Yiwu International Trade City), and **DHgate B2B Wholesale**.

Whether you are an e-commerce brand owner sourcing custom OEM/ODM manufacturing, an Amazon FBA / Shopify merchant comparing factory direct unit costs against domestic wholesale, an importer calculating landed product margins, or a procurement manager seeking audited suppliers (SGS, TÜV Rheinland) with verified factory MOQs, this actor pulls live factory prices, minimum order quantities, supplier locations, and direct RFQ (Request for Quote) links.

***

### 🌟 Product & Price First Philosophy

This actor is built **product-first and deal-first**:

1. **Core Product & Deal Metrics First:** The primary columns you see are **Product Image**, **Matched Product Title**, **Lowest Unit Price ($)**, **Highest Unit Price ($)**, **Price Spread ($ / %)**, **Cheapest Platform**, **MOQ**, **Sourcing Verdict**, **Platforms Compared**, and **Direct RFQ URL**.
2. **Contact & Factory Intelligence Follows:** Deep supplier contact details—**Primary Factory**, **Audit Badges**, **Direct Standalone Website**, **Direct Inquiry URL**, **Direct Email**, **Phone / WhatsApp / WeChat**, and **Contact Person**—are placed right after the product pricing data for fast follow-up once a winning deal is identified.

***

### 🏭 3 Supported True B2B Platforms

| Platform | Website | Sourcing Specialty |
|---|---|---|
| **Made-in-China** | `made-in-china.com` | #1 Alibaba international competitor; audited OEM/ODM factories, custom manufacturing, precision parts & industrial materials |
| **YiwuGo** | `en.yiwugo.com` | Official marketplace of Yiwu International Trade City (the physical wholesale hub behind China's export trade); direct stall prices & MOQs |
| **DHgate B2B** | `dhgate.com` | Tiered wholesale lot exporter for bulk consumer products, electronics, and fast-moving merchandise |

***

### 📊 Dual Dataset Views

#### 1. 📋 B2B Factory Sourcing Overview (`overview`)

Presents product finding, price benchmarking, and wholesale arbitrage upfront:

- **Product Thumbnail (`productImage`):** High-resolution manufacturing catalog image.
- **Matched Product Title (`matchedProductTitle`):** Standardized B2B product/component description.
- **Lowest Unit Price (`bestPrice`):** The lowest factory direct unit price available across surveyed platforms.
- **Highest Unit Price (`highestPrice`):** The highest factory direct unit price found.
- **Price Spread (`priceSpread` & `priceSpreadPercent`):** Absolute dollar and percentage arbitrage spread across manufacturers.
- **Cheapest Platform (`cheapestPlatform`):** The winning platform offering the lowest unit price.
- **Minimum Order Quantity (`moq`):** The bulk order threshold (e.g., `100 Pieces`, `10 Sets`).
- **Sourcing Verdict (`dealVerdict`):** Dynamic algorithmic evaluation (e.g., *MASSIVE FACTORY DIRECT SAVINGS (50% LOWER)*, *COMPETITIVE FACTORY PRICING*).
- **Platforms Compared (`platformsCompared`):** Number of B2B marketplaces with matching offers.
- **Direct RFQ Link (`bestDealUrl`):** Instant link to request quotes or order samples.
- **Factory & Contact Columns:** `primarySupplier`, `verificationBadge`, `directWebsite`, `directInquiryUrl`, `directEmail`, `directPhone`, `contactPerson`, `contactWarning`, and `officeAddress`.

#### 2. 🏪 Side-by-Side B2B Platform Matrix (`supplierMatrix`)

A dense horizontal pricing matrix comparing factory unit prices, MOQs, and platforms:

- **`matchedProductTitle`:** Standardized product name.
- **`bestPrice` & `cheapestPlatform`:** Winning price and platform.
- **`dealVerdict` & `priceSpread`:** Deal rating and dollar gap.
- **`bestDealUrl`:** Winning product URL.
- **`madeInChinaPrice` & `madeInChinaMoq`:** Live Made-in-China OEM unit price and MOQ.
- **`yiwuGoPrice` & `yiwuGoMoq`:** Direct Yiwu Trade City stall wholesale price and MOQ.
- **`dhgatePrice` & `dhgateMoq`:** Live DHgate export lot price and MOQ.
- **Factory Contacts:** `primarySupplier`, `directWebsite`, `directInquiryUrl`, `directEmail`, `directPhone`, `contactWarning`.

***

### 🖥️ Interactive HTML Comparison Report (`report.html`)

In addition to exporting the structured Dataset in **JSON, CSV, Excel, or built-in HTML table (`format=html`)**, every run generates a standalone, self-contained **Interactive HTML Comparison Report (`report.html`)** directly inside the Apify Console **Output** tab (and via a shareable Key-Value Store link):

- **Horizontal View & Store Tabs** — Switch seamlessly between **Best Deals Cards**, **Side-by-Side Matrix**, and **3 dedicated individual store tabs** (**Made-in-China**, **YiwuGo Wholesale**, **DHgate B2B**), each displaying live matched item counts.
- **Deep-Linkable Tabs (`#tab=...`)** — Every tab updates the URL hash (e.g. `#tab=matrix`) so you can bookmark or share a specific merchant view directly.
- **Aligned Deal Cards & Specs** — Product thumbnails, uniform spec & brand badges, green cheapest-store highlights, spread savings pills, and clickable **View Best Deal** buttons.
- **Live Controls, Full Screen & Instant Exports** — Keyword search, multi-column sort (`Biggest Savings ($)`, `Lowest Price ($)`, `Highest Spread %`, `Most Stores Matched`), `2+ Stores Only` toggle, plus one-click **Download CSV**, **Download JSON**, **Print / PDF Quote**, and **Full Screen (`⛶`)** buttons.

![Global B2B Wholesale & Factory Price Comparison Report — Interactive HTML View](https://api.apify.com/v2/key-value-stores/44gjIna4ipGc3tD78/records/global-b2b-wholesale-comparator-v1.png?signature=1plFwVITaIjAKXyrCDK7t)

#### ⏰ Automated Schedules & Email / Slack Alerts (Apify Integrations)

Want daily or weekly price updates delivered automatically? Instead of storing credentials inside the Actor, use Apify's built-in **Schedules** and **Integrations**:

1. Save your preferred search terms and store toggles as a **Task**, then set a recurring **Schedule** (e.g., daily at 8:00 AM or every Monday morning).
2. Open the Actor/Task **Integrations** tab in Apify Console and connect **Send Email (`apify/send-mail`)**, **Slack (`apify/slack-alert`)**, **Google Sheets**, **Make**, **Zapier**, or a **Webhook** triggered on `Run succeeded`.
3. Include `{{links.apiDefaultKeyValueStoreUrl}}/records/report.html` or `{{links.apiDefaultDatasetUrl}}/items?format=csv` in your alert payload to receive the live HTML report or spreadsheet automatically after every scheduled run.

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | Array | `["CNC Machining Aluminum Parts", "Silicone Kitchen Cooking Utensils Set", "Stainless Steel Insulated Water Bottle", "Custom Magnetic Phone Case"]` | List of wholesale products, components, or manufacturing items. |
| `platforms` | Array | `["madeInChina", "yiwuGo", "dhgate"]` | Select which of the B2B platforms to query. |
| `maxItemsPerPlatform` | Number | `5` | Maximum factory candidates to inspect per platform per query. |
| `minPrice` | Number | `0.01` | Minimum unit price filter in USD. |
| `maxPrice` | Number | `10000` | Maximum unit price filter in USD. |
| `onlyMultiPlatformMatches` | Boolean | `false` | When enabled, only outputs products found on 2+ platforms for direct comparison. |
| `includeFields` | Array | `["productImage", "supplier", "platformColumns", "dealVerdict"]` | Selectively toggle optional columns. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Apify proxy configuration for automated querying. |

***

### 🎛️ Platform ON/OFF Toggles, Filters & Per-Platform Tabs

#### Individual Platform Toggles

- `includeMadeInChina` — Turn Made-in-China (`made-in-china.com`) ON or OFF.
- `includeYiwuGo` — Turn YiwuGo Wholesale (`en.yiwugo.com`) ON or OFF.
- `includeDHgate` — Turn DHgate B2B (`dhgate.com`) ON or OFF.

#### Smart Filters, Sort & Views (6 Dataset Tabs)

- **`excludeAccessories`** — Optional filter to skip minor spare cables, sleeves, and covers when sourcing primary products.
- **`onlyMultiPlatformMatches`** — Toggle ON to compare products matched on 2+ B2B platforms side-by-side.
- **`sortBy`** — Sort by **Biggest Savings ($)**, **Lowest Unit Price ($)**, **Most Platforms Matched**, or **Highest Savings %**.
- **Dedicated Platform Tabs:** **B2B Factory Sourcing Overview**, **Side-by-Side B2B Platform Matrix**, **Made-in-China**, **YiwuGo Wholesale**, **DHgate B2B**, and **All fields**.

***

### 🔗 Related Actors

- **[China Freight Forwarders & Shipping Directory Scraper](https://apify.com/lonwabo/china-freight-forwarders-scraper)** — Find verified freight forwarders across Shenzhen, Ningbo & Yiwu for air/ocean cargo and DDP delivery.
- **[South Africa Retail Price Comparator (Takealot, Makro, Amazon ZA, Bob Shop, Game)](https://apify.com/lonwabo/south-africa-retail-price-comparator)** — Compare final retail prices in ZAR across South Africa's top 5 online stores.

# Actor input Schema

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

List of wholesale products, components, or manufacturing categories to compare across global factory platforms (e.g. 'CNC Machining Aluminum Parts', 'Silicone Kitchen Cooking Utensils Set', 'Stainless Steel Insulated Water Bottle', 'Custom Magnetic Phone Case', 'Solar Panel 400W Monocrystalline', 'Biodegradable Packaging Kraft Box').

## `includeMadeInChina` (type: `boolean`):

Include Made-in-China — #1 Alibaba rival for SGS/TÜV audited OEM/ODM factories.

## `includeYiwuGo` (type: `boolean`):

Include YiwuGo — official digital marketplace of Yiwu International Trade City stalls.

## `includeDHgate` (type: `boolean`):

Include DHgate B2B — tiered wholesale lot exporter for bulk consumer & tech goods.

## `maxItemsPerPlatform` (type: `integer`):

Maximum factory candidates to inspect per B2B platform for each query.

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

Ignore items with unit prices lower than this amount.

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

Ignore items with unit prices higher than this amount.

## `excludeAccessories` (type: `boolean`):

Filters out minor spare cables, sleeves, covers, and stickers when sourcing main equipment or products.

## `onlyMultiPlatformMatches` (type: `boolean`):

When enabled, only outputs products found on 2 or more B2B platforms for direct factory price comparison.

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

Choose how the wholesale comparison dataset is ordered.

## `includeFields` (type: `array`):

Selectively customize columns in the output dataset.

## `minSimilarityScore` (type: `number`):

Similarity score (0.2 to 0.9) required to group products across B2B platforms. Default 0.40 balances recall and accuracy.

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

Select proxy mode. Residential proxy groups recommended for heavy automated multi-region querying.

## Actor input object example

```json
{
  "searchTerms": [
    "CNC Machining Aluminum Parts",
    "Silicone Kitchen Cooking Utensils Set",
    "Stainless Steel Insulated Water Bottle",
    "Custom Magnetic Phone Case"
  ],
  "includeMadeInChina": true,
  "includeYiwuGo": true,
  "includeDHgate": true,
  "maxItemsPerPlatform": 5,
  "minPrice": 0.01,
  "maxPrice": 10000,
  "excludeAccessories": false,
  "onlyMultiPlatformMatches": false,
  "sortBy": "priceSpreadDesc",
  "includeFields": [
    "productImage",
    "supplier",
    "platformColumns",
    "dealVerdict"
  ],
  "minSimilarityScore": 0.4
}
```

# Actor output Schema

## `htmlReport` (type: `string`):

Interactive side-by-side comparison cards, store tabs, matrix view, search/sort controls, Full Screen toggle, and CSV/JSON/Print export.

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

Structured dataset containing matched multi-store prices, spreads, store columns, stock status, and direct buy links.

# 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": [
        "CNC Machining Aluminum Parts",
        "Silicone Kitchen Cooking Utensils Set",
        "Stainless Steel Insulated Water Bottle",
        "Custom Magnetic Phone Case"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lonwabo/global-b2b-wholesale-comparator").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": [
        "CNC Machining Aluminum Parts",
        "Silicone Kitchen Cooking Utensils Set",
        "Stainless Steel Insulated Water Bottle",
        "Custom Magnetic Phone Case",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lonwabo/global-b2b-wholesale-comparator").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": [
    "CNC Machining Aluminum Parts",
    "Silicone Kitchen Cooking Utensils Set",
    "Stainless Steel Insulated Water Bottle",
    "Custom Magnetic Phone Case"
  ]
}' |
apify call lonwabo/global-b2b-wholesale-comparator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lonwabo/global-b2b-wholesale-comparator"
        }
    }
}
```

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/NH6Ehvfk8mTXq2yQv/builds/Sqjkl4eZhbCUEkScF/openapi.json
