# 1688 Products Scraper: Wholesale Prices, MOQ & Suppliers (`autofacts/1688-scraper`) Actor

Scrape 1688.com wholesale products by keyword or offer ID: tiered prices, MOQ, SKU variants, repeat-buyer rate and full supplier details (company, type, years, location). No login or cookies. Run in Console or call as an API.

- **URL**: https://apify.com/autofacts/1688-scraper.md
- **Developed by:** [Proooxy](https://apify.com/autofacts) (community)
- **Categories:** Developer tools, E-commerce, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 product details

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/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

## 1688 Products Scraper: Wholesale Prices, MOQ & Suppliers

Scrape wholesale products and full offer details from **1688.com** (Alibaba's China domestic B2B marketplace) by **keyword** or **offer ID** — tiered wholesale prices, minimum order quantity (MOQ), the SKU variant matrix, repeat-buyer rate and complete supplier details. No 1688 account, no login, no cookies, no proxy setup. Run it in the Console or call it as an API.

### 📖 What it does

Give it search terms, offer IDs, or both:

- **🔍 Keyword search** — one or more terms (Chinese or English), each searched separately. Every matching offer comes back as a clean row: title, starting price, MOQ, repeat-buyer rate and the supplier behind it.
- **📦 Offer detail** — paste offer IDs or links (bare ID, `detail.1688.com/offer/<id>.html`, or `m.1688.com/offer/<id>.html`) and get the full product: the tiered price ladder, MOQ, the SKU variant matrix with per-variant stock, the image gallery and full supplier details. Turn on **Fetch full details for search results** to pull a detail page for every search hit.
- **🏭 Supplier on every row** — company name, factory vs reseller type, years on 1688, province and city, and a link to the supplier's storefront.

### 📋 Input

| Field | What it does |
|---|---|
| `keywords` | Search terms, each searched separately (Chinese or English). |
| `offerIds` | Offer IDs or links to fetch full detail for (bare ID / `detail.1688.com` / `m.1688.com`). |
| `maxResultsPerKeyword` | Rows per keyword (paginated 20 at a time; 1688 caps a keyword at ~2,000). |
| `includeDetails` | For each search row, also fetch the full detail page (billed per detail). |
| `includeSkuDetails` | Include the SKU variant matrix in details. |
| `priceMin` / `priceMax` / `minOrderQuantity` | Keep only results within these bounds (CNY / MOQ). |
| `excludeKeywords` / `excludeAds` | Skip offers whose title contains a word, or sponsored placements. |
| `maxItems` | Overall cap on delivered records (0 = no cap). |

Proxy is handled for you — China residential, included in the price. There is nothing to configure.

### 📤 Output

One JSON row per product. A **search** row carries card-level data; a **detail** row (from `offerIds`, or `includeDetails`) carries the full offer.

**On every search row:** `offerId`, `title`, `detailUrl`, `priceMin`, `soldCount`, `repurchaseRate` (repeat-buyer rate, %), and a `supplier` block.

**Added on a detail row:** `priceMax`, `quantityPrices` (the quantity→price ladder), `minOrderQuantity` (MOQ), `unit`, `soldCountText`, the full `images` gallery, and `skuDetails` (the sku props and variants).

Rows that could not be fetched come back with `status` = `BLOCKED` / `NOT_FOUND` / `NO_RESULTS` and are **not charged**.

### 🗂️ Output fields

| Field | Where | Meaning |
|---|---|---|
| `offerId` | both | 1688 offer id. |
| `title` | both | Product title. |
| `detailUrl` | both | Canonical `detail.1688.com` product page. |
| `priceMin` / `priceMax` | search / detail | Unit price range in CNY. |
| `quantityPrices` | detail | The tiered ladder: `[{ quantity, price }]`, cheapest-to-buy first. |
| `minOrderQuantity` | detail | MOQ (起订量). |
| `unit` | detail | Selling unit (件 / 个). |
| `repurchaseRate` | search | Repeat-buyer rate (回头率), percent. |
| `soldCount` / `soldCountText` | both / detail | Units sold — numeric on every row, plus the text form 1688 shows (e.g. `<10`) on detail. |
| `images` | detail | Product image gallery URLs. |
| `skuDetails` | detail | `props` (e.g. colour, model) and `variants` (per-combination id and stock). |
| `supplier` | both | `companyName`, `sellerType`, `trustPassYears`, `province`/`city`, `winportUrl`. |

### 💳 Pricing

Pay per event: one charge per **search result**, and one per **product detail**. Blocked, not-found and no-result rows are free.

### ❓ FAQ

**Do I need a 1688 account or login?** No. Everything comes from what 1688 shows a signed-out visitor — public offer and supplier data only.

**Chinese or English keywords?** Both. Chinese terms match the way buyers search 1688; English works too.

**What is the price in?** Chinese yuan (CNY). Detail rows give the full quantity→price ladder; search rows give the starting price.

**What is the difference between a search row and a detail row?** A search row is the card you see in a results list (title, starting price, MOQ, supplier). A detail row adds the full price ladder, SKU variants, images and sold counts — fetch it with `offerIds` or by turning on `includeDetails`.

**Why does it run through China addresses?** 1688 serves its richest product and supplier data to China IPs, so the Actor always runs through China residential addresses. This is bundled — there is nothing to set up.

**Is scraping 1688 allowed?** The Actor reads the offer and supplier data 1688 shows to any visitor, with no login. 1688's terms restrict automated access and the use of its data; you are responsible for how you use what you collect.

### 🤖 Use with AI agents

This Actor is callable as a tool by any MCP-capable agent — Claude, Cursor, VS Code — or by your own code, with no wrapper and nothing extra to deploy.

**Connect over MCP**

```
https://mcp.apify.com?tools=autofacts/1688-scraper
```

In a client that reads an `mcpServers` configuration block:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=autofacts/1688-scraper",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

The agent reads this Actor's parameters and their descriptions straight from the input schema, and the hosted server infers the result field types from the dataset schema.

**Or call the API directly**

```bash
curl -X POST "https://api.apify.com/v2/acts/autofacts~1688-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"keywords": ["手机壳"], "maxResultsPerKeyword": 20}'
```

### 🧰 Other Actors by autofacts

Apify only auto-recommends Actors in the same category, so here are the ones that actually pair with this scraper:

| Actor | What it's for |
| :--- | :--- |
| [Shopify Scraper](https://apify.com/autofacts/shopify) | What your resold 1688 products sell for on Shopify stores |
| [WooCommerce Scraper](https://apify.com/autofacts/woocommerce-scraper) | The same, for any WooCommerce store |
| [StockX Scraper](https://apify.com/autofacts/stockx-scraper) | Resale prices, bids and asks to set against wholesale cost |
| [ASOS Scraper](https://apify.com/autofacts/asos) | High-street retail prices for the same categories |

All of them: [apify.com/autofacts](https://apify.com/autofacts)

# Changelog

This Actor's version history is a separate document: https://apify.com/autofacts/1688-scraper/changelog.md

# Actor input Schema

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

Search terms (Chinese or English). Each keyword is searched separately.

## `offerIds` (type: `array`):

Fetch full product detail for these offers. Accepts a bare numeric ID, a detail.1688.com/offer/<id>.html link, or an m.1688.com/offer/<id>.html link.

## `maxResultsPerKeyword` (type: `integer`):

How many search rows to return per keyword (paginated 20 at a time; 1688 caps a keyword at ~2,000).

## `includeDetails` (type: `boolean`):

For every search row, also fetch the full offer detail page (billed per product detail).

## `includeSkuDetails` (type: `boolean`):

Include the full SKU variant matrix (price and stock per variant) in offer details.

## `priceMin` (type: `integer`):

Keep only products whose unit price is at least this (CNY). Applied to results.

## `priceMax` (type: `integer`):

Keep only products whose unit price is at most this (CNY). Applied to results.

## `minOrderQuantity` (type: `integer`):

Keep only products whose minimum order quantity is at most this.

## `excludeKeywords` (type: `array`):

Skip products whose title contains any of these words.

## `excludeAds` (type: `boolean`):

Skip sponsored (p4p) placements, keeping organic results only.

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

Hard cap on total delivered records across all keywords and offer IDs. 0 = no cap.

## Actor input object example

```json
{
  "keywords": [
    "手机壳",
    "phone case"
  ],
  "maxResultsPerKeyword": 40,
  "includeDetails": false,
  "includeSkuDetails": true,
  "excludeAds": false,
  "maxItems": 0
}
```

# Actor output Schema

## `products` (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 = {
    "keywords": [
        "手机壳"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("autofacts/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("autofacts/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 autofacts/1688-scraper --silent --output-dataset

```

## MCP server setup

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