# 1688 Wholesale Scraper (Alibaba) (`herus13/alibaba-1688-scraper`) Actor

Scrape 1688.com (Alibaba's China wholesale marketplace) by keyword, offer ID or supplier ID — no login. Search returns offers with title, price and quantity ladder; detail adds SKUs, stock, MOQ and images; supplier returns a company card; reviews returns buyer ratings. Export JSON, CSV or Excel.

- **URL**: https://apify.com/herus13/alibaba-1688-scraper.md
- **Developed by:** [herus13](https://apify.com/herus13) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 search offers

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

The 1688 Wholesale Scraper extracts public data from [1688.com](https://www.1688.com), Alibaba's China wholesale marketplace. One actor, four modes: search offers by keyword, read an offer's full detail, a supplier's company card, or an offer's buyer reviews — no login.

### 中文说明

1688.com（阿里巴巴中国批发市场）公开数据抓取工具。四种模式：按关键词搜索货源、获取货源详情（SKU、库存、起订量、图片）、获取供应商公司名片、获取买家评价。

每行数据都带 `kind` 标明类型：搜索结果含标题 `title`、价格 `price`、价格阶梯 `price_ladder`、公司 `company_name` 与所在地 `province`；详情含起订量 `min_order_quantity`、库存 `stock` 与规格数 `sku_count`；评价含正文 `content` 与星级 `star_level`。

运行自带住宅代理，无需登录，也无需自行配置。在 Apify Console 选好模式、填入关键词或 ID 后点击 Start 即可，也可通过 Apify API 提交同样的 JSON。结果支持导出 JSON、CSV 或 Excel。

### What you get

One dataset, one row per record, with `kind` saying what each row is. Export as JSON, CSV or Excel.

```json
{
  "kind": "search_offer",
  "offer_id": "612345678901",
  "title": "厂家批发无线蓝牙耳机 TWS 5.3 入耳式运动耳机",
  "price": 8.5,
  "price_type": "range",
  "currency": "CNY",
  "price_ladder": [
    {"quantity": "2~499个", "price": 9.5},
    {"quantity": "500~4999个", "price": 8.5}
  ],
  "member_id": "b2b-2201234567890abcd",
  "company_name": "深圳市某某电子有限公司",
  "province": "广东",
  "city": "深圳",
  "booked_count": 1280,
  "is_ad": false,
  "ad_block": "NORMAL",
  "source_keyword": "蓝牙耳机",
  "detail_url": "https://detail.1688.com/offer/612345678901.html",
  "scraped_at": "2026-09-19T04:11:22.000000+00:00"
}
```

Every mode writes into the same dataset, so a mixed run filters cleanly on `kind`:

- `search_offer` — `offer_id`, `title`, `price`, `price_type`, `price_ladder`, `company_name`, `member_id`, `province`, `city`, `booked_count`, `sales_text`, `biz_type`, `is_ad`, `ad_block`, `detail_url`, `thumbnail_url`
- `offer_detail` — `offer_id`, `title`, `min_order_quantity`, `stock`, `min_price`, `max_price`, `price_ladder`, `sku_count`, `company_name`, `login_id`, `good_rate` (the seller's shop-wide good rate), `attributes`, `image_urls`, `detail_url`
- `review` — `offer_id`, `content`, `star_level`, `created_at`, `sku_spec`, `quantity`, `rater_nick`
- `rating_summary` — `offer_id`, `good_rate`, `goods_grade`, `common_tags`, `impression_tags`
- `supplier` — `member_id`, `company_name`, `company_id`, `established_year`, `tp_year`, `is_tp`, `super_factory`, `category_rank`

A `search_offer` row also says which target found it: `source_keyword` for a keyword search, `source_member_id` for a supplier's offers. Pass several keywords or suppliers in one run and split the rows on those columns. Supplier contact details — phone numbers, personal names — are login-walled personal data and are never collected.

### What it costs

| Event | Price |
|---|---|
| search offer (`search-offer`) | $0.002 |
| offer detail (`offer-detail`) | $0.005 |
| review (`review`) | $0.001 |
| rating summary (`rating-summary`) | $0.002 |
| supplier (`supplier`) | $0.004 |

### Input

| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| `mode` | string | no | `"search"` | Which kind of record to collect: `search` finds offers by keyword; `detail` returns full detail (SKUs, stock, MOQ, images) for specific offers; `supplier` returns a supplier's company card and their offers; `reviews` returns buyer reviews and the rating summary for specific offers. Default search. |
| `keywords` | array | no | — | Search terms, one per entry — for example `蓝牙耳机` (bluetooth earphones). Each term returns up to `max_results` offers. Terms that differ only in surrounding spaces are searched, and billed, once. Used when `mode` is search; leave empty for every other mode. |
| `offer_ids` | array | no | — | Offers to work on, one numeric offer id per entry — the number in a `detail.1688.com/offer/123456789.html` URL. Used when `mode` is detail or reviews; leave empty for every other mode. |
| `member_ids` | array | no | — | Suppliers to work on, one member id per entry — the seller's `memberId`, as it appears on an offer record. Used when `mode` is supplier; leave empty for every other mode. |
| `category_id` | string | no | — | Restrict a keyword search to one 1688 category, given as its numeric category id. Leave empty to search every category. Used when `mode` is search. |
| `country` | string | no | `"cn"` | Which country the run's residential exit IP sits in, as a two-letter code: cn for China (the default, and fastest for 1688), sg for Singapore, hk for Hong Kong, tw for Taiwan, or vn for Vietnam. |
| `max_results` | integer | no | `40` | How many records to return per keyword, offer or supplier, from 1 to 4000. Default 40. |
| `max_pages` | integer | no | `3` | How many result pages to read per keyword, from 1 to 3. Anonymous search is capped at 3 pages — a larger number is clamped. Default 3. Used when `mode` is search or supplier. |
| `page_size` | integer | no | `20` | How many offers to request per search page, from 1 to 60. Default 20. Used when `mode` is search or supplier. |
| `include_ads` | boolean | no | `false` | Keep sponsored offers (P4P / CPT bids) in search results, labelled with `is_ad` and `ad_block`, instead of dropping them. Default false. Used when `mode` is search or supplier. |
| `include_rating_summary` | boolean | no | `true` | Also return one rating-summary row per offer (overall good-rate plus tag histograms) alongside the individual reviews. Default true. Used when `mode` is reviews. |
| `proxyUrls` | array | no | — | Leave empty and the run uses the residential proxy this actor ships with, included in the price of the run. To route the run through your own account instead, add one gateway URL per entry, for example http://user:pass@host:port — works with DataImpulse, Bright Data, Oxylabs, Smartproxy or any provider that issues URLs. When set, only these URLs are used. |

### How to run it

1. Open the actor on Apify Console and pick a **What to scrape** mode — it decides which other fields matter.
2. Fill that mode's target: keywords for search, offer IDs for detail and reviews, supplier IDs for supplier.
3. Run. Export JSON, CSV or Excel from the dataset.

```json
{
  "mode": "search",
  "keywords": ["蓝牙耳机", "充电宝"],
  "category_id": "1031910",
  "max_results": 200
}
```

Minimal input:

```json
{
  "keywords": ["蓝牙耳机"]
}
```

Available as the MCP tool `herus13--alibaba-1688-scraper` on mcp.apify.com and through the Apify API; send the same JSON.

### Why this scraper

- **Four modes, one actor and one dataset.** Search, offer detail, supplier cards and buyer reviews all write rows tagged with `kind`, so a whole sourcing pass is one run rather than four actors and a join.
- **The wholesale signals that matter.** Every offer carries its quantity price ladder and minimum order quantity, not just a single price — the numbers a buyer actually negotiates on.
- **No account needed.** Every mode runs anonymously; there is nothing to log in with and no cookies to manage.
- **A China exit that works.** Runs reach 1688 through a residential exit inside China by default, so the pages load the way a mainland buyer sees them; Singapore, Hong Kong, Taiwan and Vietnam are also available.
- **Nothing to set up.** A residential proxy is included in the price of the run.

### Use cases

- **Wholesale sourcing** — Find offers for a product across suppliers, with the price ladder and minimum order quantity side by side, to shortlist who to contact.
- **Price and MOQ benchmarking** — Track how an offer's tiered pricing and minimum order quantity move when you re-run a search on a schedule.
- **Supplier due diligence** — A supplier's company card with the years they have traded and their category standing, next to their live offers, for a vetting shortlist.
- **Catalogue building** — Pull offer detail with SKUs, stock and images to seed a reseller catalogue or a product database.
- **Review mining** — Buyer reviews and the rating summary as plain text, ready for a classifier that flags quality complaints before you order.

### FAQ

**Do I need a 1688 or Alibaba account?** No. Every mode runs anonymously — there is nothing to log in with.

**Where do I find an offer ID?** It is the number in an offer's URL: `https://detail.1688.com/offer/612345678901.html` means `612345678901`. Paste one per entry into **Offer IDs**.

**Why did a search return only a few pages?** Anonymous search is capped at three pages per keyword; a larger **Max search pages** is clamped. Narrow the keyword or add a **Category ID** to get more relevant offers instead of more pages.

**Is the data in Chinese?** Yes — titles, categories, province and city come from 1688 as the site publishes them, in Chinese. Prices are in CNY. Run the text through a translation step if you need another language.

**Is a proxy included?** A residential proxy with a China exit is included in the price of the run. To use your own, paste gateway URLs into **Your own proxy URLs**. Scraping at volume? Your own [DataImpulse](https://dataimpulse.com/?aff=404588\&utm_source=apify) account is cheaper per GB.

**Is scraping 1688 legal?** This actor reads only public pages, the ones any visitor sees, and never signs in. Supplier contact details and other personal data are deliberately left out. You are responsible for how you use the data — check 1688's terms and your local rules.

### Related actors

Building a wider e-commerce or sourcing pipeline? Pair this actor with:

- [Lazada Product Scraper](https://apify.com/herus13/lazada-scraper) — products across Southeast Asia with prices, ratings and sellers.
- [TikTok Shop Scraper](https://apify.com/herus13/tiktok-shop-scraper) — shop products and reviews from TikTok's marketplace.
- [Amazon Scraper](https://apify.com/herus13/amazon-scraper) — product listings, prices and offers from Amazon storefronts.
- [Shopee Shop Scraper](https://apify.com/herus13/shopee-shop-scraper) — a seller's full catalogue with prices and sold counts.

# Actor input Schema

## `mode` (type: `string`):

Which kind of record to collect: `search` finds offers by keyword; `detail` returns full detail (SKUs, stock, MOQ, images) for specific offers; `supplier` returns a supplier's company card and their offers; `reviews` returns buyer reviews and the rating summary for specific offers. Default search.

## `keywords` (type: `array`):

Search terms, one per entry — for example `蓝牙耳机` (bluetooth earphones). Each term returns up to `max_results` offers. Terms that differ only in surrounding spaces are searched, and billed, once. Used when `mode` is search; leave empty for every other mode.

## `offer_ids` (type: `array`):

Offers to work on, one numeric offer id per entry — the number in a `detail.1688.com/offer/123456789.html` URL. Used when `mode` is detail or reviews; leave empty for every other mode.

## `member_ids` (type: `array`):

Suppliers to work on, one member id per entry — the seller's `memberId`, as it appears on an offer record. Used when `mode` is supplier; leave empty for every other mode.

## `category_id` (type: `string`):

Restrict a keyword search to one 1688 category, given as its numeric category id. Leave empty to search every category. Used when `mode` is search.

## `country` (type: `string`):

Which country the run's residential exit IP sits in, as a two-letter code: cn for China (the default, and fastest for 1688), sg for Singapore, hk for Hong Kong, tw for Taiwan, or vn for Vietnam.

## `max_results` (type: `integer`):

How many records to return per keyword, offer or supplier, from 1 to 4000. Default 40.

## `max_pages` (type: `integer`):

How many result pages to read per keyword, from 1 to 3. Anonymous search is capped at 3 pages — a larger number is clamped. Default 3. Used when `mode` is search or supplier.

## `page_size` (type: `integer`):

How many offers to request per search page, from 1 to 60. Default 20. Used when `mode` is search or supplier.

## `include_ads` (type: `boolean`):

Keep sponsored offers (P4P / CPT bids) in search results, labelled with `is_ad` and `ad_block`, instead of dropping them. Default false. Used when `mode` is search or supplier.

## `include_rating_summary` (type: `boolean`):

Also return one rating-summary row per offer (overall good-rate plus tag histograms) alongside the individual reviews. Default true. Used when `mode` is reviews.

## `proxyUrls` (type: `array`):

Leave empty and the run uses the residential proxy this actor ships with, included in the price of the run. To route the run through your own account instead, add one gateway URL per entry, for example http://user:pass@host:port — works with DataImpulse, Bright Data, Oxylabs, Smartproxy or any provider that issues URLs. When set, only these URLs are used.

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "蓝牙耳机"
  ],
  "country": "cn",
  "max_results": 40,
  "max_pages": 3,
  "page_size": 20,
  "include_ads": false,
  "include_rating_summary": true
}
```

# Actor output Schema

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

One row per record. The kind field says what it is: search\_offer, offer\_detail, review, rating\_summary or supplier.

# 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 = {
    "keywords": [
        "蓝牙耳机"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("herus13/alibaba-1688-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 = { "keywords": ["蓝牙耳机"] }

# Run the Actor and wait for it to finish
run = client.actor("herus13/alibaba-1688-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 '{
  "keywords": [
    "蓝牙耳机"
  ]
}' |
apify call herus13/alibaba-1688-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,herus13/alibaba-1688-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/o7tdyalQaLcj6CEzn/builds/jAZ166k6BaIu5c8zy/openapi.json
