# 1688 Product Details Page Scraper (`t3code/1688-product-details-page-scraper`) Actor

Scrape comprehensive product data from 1688.com (Alibaba's China domestic B2B marketplace) product detail pages. Extracts title, price in CNY, minimum order quantity, seller details, specifications, and product description — ideal for wholesale sourcing research, price monitoring, and supplier...

- **URL**: https://apify.com/t3code/1688-product-details-page-scraper.md
- **Developed by:** [T3code](https://apify.com/t3code) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.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 Details Page Scraper

Scrape comprehensive product data from 1688.com (Alibaba's China domestic B2B marketplace) product detail pages. Extracts title, price in CNY, minimum order quantity, seller details, specifications, and product description — ideal for wholesale sourcing research, price monitoring, and supplier analysis.

The Actor reads the current client-rendered 1688 product model first, then falls back to legacy page models, JSON-LD structured data, and semantic DOM selectors. Optional fields are omitted when the source does not expose them.

**Actor name:** `1688-product-details-page-scraper`
**Author:** Opencode

### What you can do

- Compare wholesale prices and quantity-based price tiers.
- Inspect MOQ, bookable stock, product attributes, and individual SKUs.
- Build a supplier directory from seller IDs, company names, ratings, and origin.
- Monitor products by scheduling runs with the same URLs.
- Reduce load and output size with concurrency, retry, timeout, deduplication, and extraction options.

### Input

`productUrls` is required and must contain one or more URLs such as:

```json
{
  "productUrls": [
    "https://detail.1688.com/offer/123456789012.html"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "CN"
  }
}
```

1688.com commonly requires a China residential IP. The prefilled proxy configuration is a starting point; use the proxy settings available in your Apify account and respect 1688.com access rules.

#### Input options

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `productUrls` | string array | required | 1688 product detail URLs containing `/offer/`. |
| `maxItems` | integer | `20` | Maximum URLs to process, from 1 to 200. |
| `waitForMs` | integer | `3000` | Delay after navigation for client-rendered data to settle. |
| `modelWaitTimeoutMs` | integer | `15000` | Time to wait for the current `window.context` model before fallbacks. |
| `maxConcurrency` | integer | `1` | Pages processed concurrently, from 1 to 5. Keep low for anti-bot safety. |
| `maxRequestRetries` | integer | `3` | Crawlee navigation/handler retries, from 0 to 5. |
| `navigationTimeoutSecs` | integer | `90` | Navigation timeout, from 15 to 180 seconds. |
| `requestHandlerTimeoutSecs` | integer | `120` | Per-page handler timeout, from 30 to 300 seconds. |
| `deduplicate` | boolean | `false` | Skip duplicate input URLs or extracted offer IDs. |
| `deduplicateBy` | `offerId` or `url` | `offerId` | Key used when `deduplicate` is enabled. |
| `debug` | boolean | `false` | Store bounded HTML and diagnostics in the default key-value store. |
| `debugHtmlMaxChars` | integer | `100000` | Maximum characters in each debug HTML record. |
| `proxyConfiguration` | object | Residential CN proxy | Apify proxy settings. |

`extractOptions` controls optional sections. Every option defaults to `true`:

```json
{
  "productUrls": ["https://detail.1688.com/offer/123456789012.html"],
  "extractOptions": {
    "includeMedia": true,
    "includeDescription": true,
    "includeAttributes": true,
    "includeVariants": true,
    "includeSeller": true,
    "includeReviews": true,
    "includeShipping": true,
    "includeBuyerProtections": true,
    "includePageMetadata": true
  }
}
```

Set an option to `false` when a lighter dataset is preferred. For example, `includeMedia: false` omits images, video URLs, and the mobile/QR URL; `includeVariants: false` omits SKU dimensions and variant rows.

### Dataset output

Each successfully extracted page produces one record. The complete schema is in `.actor/dataset_schema.json`; the most important fields are:

| Group | Fields |
| --- | --- |
| Identity | `offerId`, `title`, `pageUrl`, `resolvedUrl`, `scrapedAt` |
| Pricing | `price`, `maxPrice`, `priceRange`, `priceTiers`, `priceUnit`, `currency`, `minOrderQuantity` |
| Inventory and media | `availableStock`, `images`, `videoUrl`, `videoCoverUrl` |
| Catalog | `attributes`, `skuProperties`, `skus`, `categoryId`, `category`, `categoryName`, `description`, `descriptionUrl` |
| Supplier | `sellerName`, `sellerMemberId`, `sellerUserId`, `companyName`, `sellerType`, `sellerServiceScore` |
| Reviews and shipping | `sellerRating`, `sellerGoodRate`, `reviewCount`, `soldCount`, `tradeCount`, `repurchaseRate`, `area`, `unitWeight`, `buyerProtections` |
| Provenance | `extractionMethod`, `pageMetadata` |

Numeric values are normalized to numbers when possible. Dynamic attribute keys are preserved in the `attributes` object. Missing values are omitted rather than emitted as blank strings, empty arrays, or empty objects.

#### Example output

```json
{
  "offerId": "123456789012",
  "title": "Example wholesale cotton jacket",
  "price": 18.5,
  "maxPrice": 22,
  "priceRange": "18.50-22.00",
  "priceTiers": [
    { "minQuantity": 1, "maxQuantity": 49, "price": 22 },
    { "minQuantity": 50, "price": 18.5 }
  ],
  "priceUnit": "piece",
  "minOrderQuantity": 1,
  "currency": "CNY",
  "availableStock": 776,
  "images": ["https://cbu01.alicdn.com/img/ibank/example-product.jpg"],
  "attributes": {
    "Material": "Example fabric",
    "Color": ["Sample blue", "Sample white"]
  },
  "sellerName": "example_supplier",
  "companyName": "Example Manufacturing Co.",
  "sellerRating": 4.8,
  "reviewCount": 24,
  "soldCount": 1200,
  "area": "Example province, Example city",
  "extractionMethod": "context",
  "pageUrl": "https://detail.1688.com/offer/123456789012.html",
  "scrapedAt": "2026-08-04T12:00:00.000Z"
}
```

### Debug artifacts

When enabled or when local execution encounters a block/no-data result, the Actor can write these fixed keys to the default key-value store:

- `debug_success_html` — bounded rendered HTML snapshot.
- `debug_success_diagnostics` — page metadata, script summaries, matching globals, and resources.
- `debug_blocked_html` — bounded HTML captured for a CAPTCHA/login redirect during local execution.
- `debug_blocked_screenshot` — JPEG screenshot captured for a block during local execution.
- `debug_no_data_html` — bounded HTML captured when no product fields are extractable during local execution.

Use the output tab for the dataset and the diagnostics link for the key-value store. Do not use debug artifacts to bypass CAPTCHA, authentication, robots rules, or site terms.

### Tips

- Use full detail-page URLs such as `detail.1688.com/offer/...html`, not category or search URLs.
- Keep `maxConcurrency` at `1` and use a China residential proxy for the most conservative request pattern.
- Use `deduplicate: true` when the input list may contain repeated URLs or the same offer through multiple URLs.
- Schedule regular runs to monitor price, stock, and supplier changes.

# Changelog

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

# Actor input Schema

## `productUrls` (type: `array`):

1688.com product detail page URLs. URLs must use an 1688.com host and contain /offer/.

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

Maximum number of product URLs to process.

## `waitForMs` (type: `integer`):

Delay after navigation before extraction so client-rendered 1688 data can settle.

## `modelWaitTimeoutMs` (type: `integer`):

Maximum time to wait for the current 1688 window.context product model before using fallbacks.

## `maxConcurrency` (type: `integer`):

Number of product pages to process at the same time. Keep low for 1688 anti-bot safety.

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

Maximum Crawlee retries for navigation or handler failures.

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

Maximum time allowed for each page navigation.

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

Maximum time allowed for one page request handler, including extraction and output.

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

Skip duplicate input URLs or extracted offer IDs before writing dataset records.

## `deduplicateBy` (type: `string`):

When deduplication is enabled, use the requested URL or extracted offer ID as the unique key.

## `extractOptions` (type: `object`):

Choose optional product sections to include in each dataset record. All options default to true.

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

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

## `debugHtmlMaxChars` (type: `integer`):

Maximum characters stored in each debug HTML record.

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

Proxy settings. RESIDENTIAL CN (China) proxy is strongly recommended for 1688.com.

## Actor input object example

```json
{
  "productUrls": [
    {
      "url": "https://detail.1688.com/offer/123456789012.html"
    }
  ],
  "maxItems": 10,
  "waitForMs": 3000,
  "modelWaitTimeoutMs": 15000,
  "maxConcurrency": 1,
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 90,
  "requestHandlerTimeoutSecs": 120,
  "deduplicate": false,
  "deduplicateBy": "offerId",
  "debug": false,
  "debugHtmlMaxChars": 100000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing one normalized record per successfully extracted product page.

## `diagnostics` (type: `string`):

Default key-value store containing optional HTML, screenshot, and JSON diagnostics.

# 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 = {
    "productUrls": [
        {
            "url": "https://detail.1688.com/offer/123456789012.html"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("t3code/1688-product-details-page-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 = {
    "productUrls": [{ "url": "https://detail.1688.com/offer/123456789012.html" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("t3code/1688-product-details-page-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 '{
  "productUrls": [
    {
      "url": "https://detail.1688.com/offer/123456789012.html"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call t3code/1688-product-details-page-scraper --silent --output-dataset

```

## MCP server setup

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