# 1688 Scraper & API - Wholesale Products, Prices, Suppliers (`s-r/1688-scraper`) Actor

Alibaba 1688 scraper and API: search wholesale products in Chinese or English. Export CNY prices, supplier companies, inspection flags, MOQ, quantity prices and SKUs by keyword or offer URL.

- **URL**: https://apify.com/s-r/1688-scraper.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product from searches

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

## 1688 Scraper

1688 Scraper collects wholesale products and suppliers from 1688.com. Search in Chinese or English, or provide offer IDs and URLs to collect product details for a sourcing shortlist. Export structured product rows with CNY prices and supplier companies, then add minimum order quantities, quantity prices, specifications and SKU variants when you need a closer comparison.

### What the 1688 Scraper collects

A search returns product titles, offer IDs, canonical product links, main images, listed prices and supplier names. Where the source supplies them, rows also include province and city, sold quantities, booking counts, repeat purchase percentages, supplier service scores, inspection flags and membership years. Each row preserves its search keyword and position so you can trace a result back to your original sourcing query.

Product detail collection adds minimum order quantity, selling unit, price ranges, price tiers, gallery images, video links, specifications and SKU options. SKU records include their own identifiers, attributes, prices and stock or sales counts when published. Missing values remain null. A missing SKU price is not replaced with the order quantity or an assumed product price.

### Input: keywords or offer IDs

Start with a small search:

```json
{
  "keywords": ["phone case"],
  "max_items": 60,
  "sort": "relevance",
  "include_details": false
}
```

Both English phrases and Chinese terms such as `蓝牙耳机` work. Use the terms your suppliers use when narrowing a product category. The actor removes empty terms and duplicate terms. You can submit up to twenty keywords, and `max_items` applies separately to each keyword.

To collect details directly, use an offer ID or a product link:

```json
{
  "offer_ids": [
    "977228830146",
    "https://detail.1688.com/offer/1097675316962.html"
  ]
}
```

These identifiers come from actual collected product pages. A nonempty `offer_ids` list takes precedence over keywords. Every supplied ID is requested, regardless of the search-only `max_items` option. Links on `m.1688.com` are also accepted when they use the offer path. Duplicate IDs are removed, including an ID repeated as a URL.

### Search options and filters

Set `sort` to `relevance`, `sales`, `price_asc` or `price_desc`. The actor passes the selected order to 1688. Use numeric `price_min` and `price_max` values to request a price band in CNY. Set `province` to a Chinese province name, for example `广东`, to restrict the supplier region shown in search results. These options apply to searches and do not filter a list of explicit offer IDs.

`max_items` accepts one to two thousand products per keyword, with sixty as the default. `start_page` lets you begin at a later search page, from one through thirty-four. The source limits how many products it exposes for one search and filter combination. A large catalogue may therefore require several narrower searches. A requested maximum is a collection limit, not a guarantee that the source has that many matching offers.

Set `include_details` to true to enrich search products. This keeps one product row for each offer within a keyword. If an offer appears under two keywords, the rows retain their separate search context. If one detail page is unavailable, its available search row is still delivered with `has_details: false`, and a warning explains the incomplete enrichment.

### Output: products and supplier records

The default dataset contains product rows. Core columns are `product_id`, `title`, `url`, `image_url`, `price`, `currency`, `country`, `source` and `fetched_at`. Supplier columns include `seller_id`, `company_name`, `login_id`, `province`, `city` and the available inspection flags. Join products to suppliers using `seller_id`.

The `SELLERS` key-value record contains supplier records associated with the products actually delivered. Suppliers are deduplicated within a response. A supplier can have updated information across collection pages. Supplier company names are supplied as published, often in Chinese. Matching those names to an international marketplace requires your own company resolution; the actor does not claim a shared registration identifier.

Detail rows include `moq`, `unit`, `price_min`, `price_max`, `price_tiers`, `price_display_type`, `images`, `specs`, `sku_props` and `skus`. Read `price_display_type` before treating a price list as volume discounts. With `skuPrice`, two prices at the same quantity can represent a price range across variants. Search prices and detail prices can differ because they describe different source views.

### Example output

This is a real search row for the keyword `phone case`, shortened to the main columns:

```json
{
  "product_id": "977228830146",
  "title": "亚克力磁吸壳Magsafe Phone case苹果18磁吸iPhoneUltra手机壳",
  "url": "https://detail.1688.com/offer/977228830146.html",
  "price": 2,
  "currency": "CNY",
  "province": "广东",
  "city": "广州市",
  "company_name": "广州天旗电子科技有限公司",
  "seller_id": "b2b-22185509174513c61d",
  "factory_inspection": true,
  "booked_count": 29,
  "source_keyword": "phone case",
  "position": 1
}
```

### Use cases

- **Sourcing shortlists.** Search a product category, sort by sales or price and compare suppliers by province, inspection flags and membership years.
- **Dropshipping research.** Track domestic wholesale prices and booking counts for products you already sell, and spot cheaper suppliers.
- **Price tier analysis.** Collect minimum order quantities and quantity prices for chosen offers before you request quotes.
- **Supplier lists for sourcing agents.** Build a deduplicated list of supplier companies behind a keyword and join it to products by `seller_id`.

### How it compares

1688.com publishes no public product API. Doing this by hand means copying listings page by page and translating them. This scraper returns one structured row per product with prices in CNY, supplier fields and optional SKU detail, so results can go straight into a spreadsheet or database. Export-oriented marketplaces such as Alibaba.com show different, usually higher, prices for the same factory; the supplier company name lets you compare the two yourself.

### Pricing and delivery limits

The actor distinguishes delivered search products from delivered products with successful detail enrichment. Each delivered product uses one of those result events, according to `has_details`. A product is never counted in both result categories. Supplier records do not incur a separate result event. Consult the actor's current Pricing tab for the active event prices and any run start fee.

An empty result has no product charges. A run start fee, when present in the active pricing model, still applies to a valid empty run. Accounts subject to the introductory allowance receive at most ten delivered products per run. This delivery limit also applies when several keywords are submitted. The allowance does not mean that delivered rows are exempt from the current event pricing.

Longer collections continue automatically during the actor run. The run output records partial collection and warnings if a source page cannot be collected. Customers using the direct API can continue with `next_cursor` and the same original input. Continuation values expire after twenty-four hours. An unavailable explicit offer is skipped with a warning rather than replaced with a fabricated product.

### FAQ

#### Does it translate product titles?

No. Titles and specifications are delivered in the language published by the supplier. English and Chinese search input are supported, but an English query does not guarantee English product content.

#### Are prices in US dollars?

Prices are in CNY. The actor does not estimate exchange rates, international freight, import duties or negotiated discounts. Compare the minimum order quantity, unit and SKU attributes alongside the listed price.

#### Can I collect SKU prices without searching first?

Yes. Submit offer IDs or accepted offer URLs. Detail rows contain the SKU data the product page publishes. Some products do not publish a separate price for every SKU; those values remain null.

#### Are inspection flags available for every supplier?

Search rows can carry factory and business inspection flags. Detail pages publish different supplier identity indicators, which are preserved separately. An absent inspection flag remains unknown and is not inferred from another supplier badge.

#### What happens when there are no matching products?

A completed empty search produces no product rows and no product result charges. The run output distinguishes an empty search from an unavailable source page, and includes any relevant warnings or errors.

# Actor input Schema

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

Chinese or English search terms. Duplicates and empty strings are removed. Ignored when offer_ids is nonempty.

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

Offer IDs or detail.1688.com / m.1688.com offer URLs. Takes precedence over keywords; every ID is requested.

## `max_items` (type: `integer`):

Maximum products per keyword across all continuation requests.

## `sort` (type: `string`):

Order of search results as supplied by 1688.

## `price_min` (type: `number`):

Minimum search price in CNY.

## `price_max` (type: `number`):

Maximum search price in CNY.

## `province` (type: `string`):

Chinese province name, such as 广东. Applies to search only.

## `include_details` (type: `boolean`):

Enrich search rows with MOQ, price tiers, images, specifications and SKUs. Failed enrichment preserves a search row and a warning.

## `start_page` (type: `integer`):

First search page, from 1 to the source ceiling of 34.

## `cursor` (type: `string`):

Opaque continuation value. Resubmit the same input with next_cursor; expires after 24 hours.

## Actor input object example

```json
{
  "keywords": [
    "phone case"
  ],
  "max_items": 60,
  "sort": "relevance",
  "include_details": false,
  "start_page": 1
}
```

# Actor output Schema

## `products` (type: `string`):

One product row per offer within each keyword.

## `sellers` (type: `string`):

Supplier records linked to the delivered products by seller_id.

## `summary` (type: `string`):

Delivery counts, warnings and errors.

# 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": [
        "phone case"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/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": ["phone case"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/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": [
    "phone case"
  ]
}' |
apify call s-r/1688-scraper --silent --output-dataset

```

## MCP server setup

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