# 1688 Product Search Scraper (`t3code/1688-product-search-scraper`) Actor

Search and extract product listings from 1688.com (Alibaba's China wholesale B2B platform) by keyword. Returns product title, price in CNY, supplier name, minimum order quantity, and product URL — perfect for bulk sourcing research and competitive pricing analysis.

- **URL**: https://apify.com/t3code/1688-product-search-scraper.md
- **Developed by:** [T3code](https://apify.com/t3code) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Product Search Scraper

Search and extract product listings from 1688.com (Alibaba's China wholesale B2B platform) by keyword. Returns product title, price in CNY, supplier name, minimum order quantity, and product URL — perfect for bulk sourcing research and competitive pricing analysis.

**Actor name:** `1688-product-search-scraper`
**Author:** Opencode

### What you can do

- Discover wholesale products and suppliers by Chinese or English keyword.
- Compare current price, volume price tiers, currency, unit, and MOQ.
- Filter results by price, MOQ, supplier area, certification, or sponsored status.
- Start at a specific result page, bound pagination, slow requests, or deduplicate repeated offers.
- Export the dataset as JSON, CSV, or Excel from Apify.

### Input options

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `query` | string | Required | Keyword sent to 1688 search. Chinese keywords usually return the most relevant results. |
| `maxItems` | integer | `30` | Maximum complete records to push, from 1 to 500. |
| `pageSize` | integer | `20` | Offers requested per signed API page, from 1 to 20. |
| `startPage` | integer | `1` | 1-based result page to start with, from 1 to 50. |
| `maxPages` | integer | Auto | Optional page cap, from 1 to 50. Without it, the Actor derives a bounded cap from `maxItems` and `pageSize`. |
| `filters` | object | `{}` | Optional post-extraction filters described below. |
| `deduplicate` | boolean | `false` | Skip repeated offer IDs or product URLs across pages. |
| `requestDelayMs` | integer | `0` | Pause between signed API pages, from 0 to 5,000 milliseconds. |
| `maxRequestRetries` | integer | `1` | Crawlee retries for the browser bootstrap request, from 0 to 5. |
| `navigationTimeoutSecs` | integer | `90` | Browser bootstrap timeout, from 30 to 180 seconds. |
| `requestHandlerTimeoutSecs` | integer | `120` | Overall handler timeout, from 30 to 300 seconds. |
| `debug` | boolean | `false` | Save raw signed API responses in the key-value store using `debug_search_api_page_` keys. |
| `proxyConfiguration` | object | Apify Residential CN | Proxy settings. A China residential proxy is recommended for 1688 access. |

`filters` supports `minPrice`, `maxPrice`, `minOrderQuantity`, `area`, `isCertified`, and `isSponsored`. Numeric filters are non-negative; `area` is a case-insensitive substring match. The Actor keeps requesting pages until `maxItems` matching records are collected, no offers remain, or `maxPages` is reached.

#### Example input

```json
{
  "query": "phone case",
  "maxItems": 25,
  "pageSize": 20,
  "maxPages": 5,
  "filters": {
    "minPrice": 2,
    "maxPrice": 20,
    "minOrderQuantity": 10,
    "area": "Example City"
  },
  "deduplicate": true,
  "requestDelayMs": 250,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "CN"
  }
}
```

### Dataset output

The Actor omits unavailable optional values instead of emitting nulls, blank strings, empty arrays, or empty objects. The dataset schema still marks fields nullable because the upstream response is variable.

| Field | Description |
|-------|-------------|
| `offerId` | Stable 1688 offer identifier. |
| `title` | Product title. |
| `price`, `minPrice`, `maxPrice` | Primary price and normalized volume-tier range. |
| `priceTiers` | Array of `{ minQuantity, maxQuantity, price }` breaks. |
| `priceDescription`, `priceType` | Displayed price label and source price classification. |
| `priceUnit` | Unit associated with the price. |
| `minOrderQuantity` | Numeric MOQ. |
| `moqText` | Original textual MOQ label when supplied. |
| `currency` | Currency code, currently `CNY`. |
| `images` | Unique normalized product image URLs. |
| `sellerName`, `sellerMemberId` | Seller identity fields. |
| `companyName` | Supplier company or shop name. |
| `area` | Supplier province, city, or address label. |
| `businessType`, `yearsOnPlatform`, `shopUrl` | Supplier type, tenure, and storefront URL. |
| `supplierScores` | Numeric supplier service scores returned by 1688. |
| `tradeCount`, `bookedCount`, `soldCount` | Recent trade, booked, and displayed sales counts. |
| `transactionLabel`, `repurchaseRate` | Displayed sales and repurchase labels. |
| `tags`, `productAttributes` | Unique labels plus product attribute name/value pairs. |
| `isCertified`, `isSponsored` | Certification and sponsored-result flags. |
| `detailUrl` | Absolute product detail URL. |
| `query`, `page`, `rank`, `totalResults` | Search and result-position metadata. |
| `scrapedAt` | UTC record creation timestamp. |

#### Example output

```json
{
  "offerId": "1000000000001",
  "title": "Example reusable storage organizer",
  "price": 12.5,
  "minPrice": 10,
  "maxPrice": 12.5,
  "priceTiers": [
    { "minQuantity": 50, "maxQuantity": 499, "price": 11.75 },
    { "minQuantity": 500, "price": 10.5 }
  ],
  "priceDescription": "Example promotional price",
  "priceType": "NORMAL",
  "priceUnit": "piece",
  "minOrderQuantity": 50,
  "moqText": "50 pieces",
  "currency": "CNY",
  "images": ["https://cbu01.alicdn.com/img/ibank/example.jpg"],
  "sellerName": "example_supplier",
  "sellerMemberId": "b2b-example-member",
  "companyName": "Example Wholesale Company",
  "area": "Example Province Example City",
  "businessType": "Manufacturer",
  "yearsOnPlatform": 6,
  "shopUrl": "https://example-shop.1688.com/",
  "supplierScores": {
    "compositeNewScore": 4.5,
    "logisticsScore": 4.1,
    "goodsScore": 4.4
  },
  "tradeCount": 48,
  "bookedCount": 28,
  "soldCount": 1200,
  "transactionLabel": "Sold 1,000+ pieces",
  "repurchaseRate": "12%",
  "tags": ["Example service label"],
  "productAttributes": [
    { "name": "Material", "value": "Example fabric" }
  ],
  "isCertified": true,
  "isSponsored": false,
  "detailUrl": "https://detail.1688.com/offer/1000000000001.html",
  "query": "phone case",
  "page": 1,
  "rank": 1,
  "totalResults": 2000,
  "scrapedAt": "2026-01-15T12:00:00.000Z"
}
```

### How to use

1. Enter a product keyword in `query`.
2. Set `maxItems` and any optional pagination or filters.
3. Keep the default China residential proxy or provide a compatible proxy configuration.
4. Start the Actor and download the dataset in the desired format.

When `debug` is enabled, raw signed API responses are stored in the `debug_search_api_page_` key-value-store collection. Normal runs only write product records to the dataset.

### Access and rate limits

1688 may require China-based access and can return anti-bot or account prompts. The Actor does not bypass authentication, CAPTCHAs, access controls, or site terms. Use a permitted proxy and a modest `requestDelayMs` when appropriate.

# Changelog

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

# Actor input Schema

## `query` (type: `string`):

Keyword to search for on 1688.com (Chinese or English)

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

Maximum number of products to scrape

## `pageSize` (type: `integer`):

Number of offers requested from 1688 per API page. Lower values can reduce response size.

## `startPage` (type: `integer`):

1-based 1688 result page to start with.

## `maxPages` (type: `integer`):

Optional hard cap on pages requested. If omitted, the Actor derives a bounded cap from maxItems and pageSize.

## `filters` (type: `object`):

Optional post-extraction filters. The Actor continues across pages until maxItems matching records are collected or the page cap is reached.

## `deduplicate` (type: `boolean`):

Skip repeated offer IDs or product URLs across pages.

## `requestDelayMs` (type: `integer`):

Optional pause between signed API page requests to reduce request rate.

## `maxRequestRetries` (type: `integer`):

Maximum Crawlee retries for the bootstrap request.

## `navigationTimeoutSecs` (type: `integer`):

Timeout for the browser bootstrap navigation.

## `requestHandlerTimeoutSecs` (type: `integer`):

Overall timeout for one Actor request handler, including signed API pages.

## `debug` (type: `boolean`):

Save a rendered HTML snapshot and page diagnostics to the default key-value store.

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

Proxy settings. RESIDENTIAL CN (China) proxy strongly recommended.

## Actor input object example

```json
{
  "query": "electronics",
  "maxItems": 10,
  "pageSize": 10,
  "startPage": 1,
  "maxPages": 1,
  "deduplicate": false,
  "requestDelayMs": 0,
  "maxRequestRetries": 1,
  "navigationTimeoutSecs": 90,
  "requestHandlerTimeoutSecs": 120,
  "debug": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing normalized product offer records.

## `debug` (type: `string`):

Key-value store containing raw signed API responses when debug mode is enabled.

# 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 = {
    "query": "electronics",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("t3code/1688-product-search-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 = {
    "query": "electronics",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("t3code/1688-product-search-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 '{
  "query": "electronics",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call t3code/1688-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,t3code/1688-product-search-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/agETrWnlC3twsCYgf/builds/3ASMk23ekhWmlv7PW/openapi.json
