# 1688 Scraper: Wholesale Products, SKUs & Suppliers (`wiseus-labs/1688-scraper`) Actor

Scrape 1688 wholesale products by keyword or product link, in the Chinese or English catalog. Get prices, MOQ, sales, supplier, location and images, plus SKU prices, stock and supplier profile on demand. Filter by price, region and factory badges. No login. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/wiseus-labs/1688-scraper.md
- **Developed by:** [Wiseus Labs](https://apify.com/wiseus-labs) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 search result products

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

<a href="https://console.apify.com/actors/KNIR5sXGhq1ofxOeJ/input"><img src="https://api.apify.com/v2/key-value-stores/YWwrfVoUzvcZJtP7f/records/1688-scraper-hero-v2.jpg" width="840" alt="1688 Scraper: wholesale products, SKU prices, stock and suppliers from 1688.com"></a>

<blockquote style="border-left:4px solid #FF5000;background:#FFF4ED;padding:10px 16px;margin:0"><span style="font-size:15px;font-weight:700;color:#1C1917">1688 wholesale products by keyword or link</span><span style="font-size:15px;color:#57534E">: title, price, quantity tier prices, MOQ, sales, supplier, location and images, exported to JSON, CSV or Excel. Also: SKUs with their own price, stock and photo, the supplier profile, the English catalog with English titles, English attribute and SKU option names, one row per SKU for a price and stock list, and filters for price, province, MOQ, super factories and powerful merchants.</span></blockquote>

#### Copy to your AI assistant

```text
Help me use wiseus-labs/1688-scraper, an Apify Actor that scrapes 1688.com wholesale products by keyword or product link. Read https://apify.com/wiseus-labs/1688-scraper.md for documentation and the input schema. Choose settings for my requested outcome. If you cannot open the page, ask me to paste the relevant sections.
```

Key inputs: `keywords` (Chinese or English), `productUrls` (links or IDs), `searchShelf` (`chinese` or `english`), `maxItemsPerKeyword` (default 50), `includeDetails` (SKUs and supplier profile), `outputFormat` (`product` or `sku`).

### 🛒 What is 1688 Scraper?

1688 Scraper turns 1688.com searches and product links into clean rows of wholesale data: prices by quantity, minimum order, SKUs with their own price and stock, and the supplier behind each product.

- **Keywords in Chinese or English**, several in one run, and product links or IDs.
- **Chinese or English catalog:** the English catalog gives English titles and prices in USD.
- **Full product details on demand:** SKUs with price, stock and photo, attributes, logistics, description and the supplier profile.
- **One row per product or one row per SKU**, ready for a spreadsheet.
- **Filters** for price band, supplier province and city, super factories, powerful merchants and minimum order.
- **No 1688 account, no login.**

| Group | What you get |
|---|---|
| 📦 **Product** | 🔖 title (English title in the English catalog) · 🗂️ category · 🔥 units sold and monthly sales · ⭐ reviews and good rate · 🏷️ attributes with English names |
| 💴 **Prices & SKUs** | 💰 price, price range and promo price · 📉 quantity tier prices · 🧮 minimum order and unit · 🎨 SKUs with price, promo price, stock and photo · 📦 total stock |
| 🏭 **Supplier** | 🏢 company name and shop link · 📍 province and city · 📅 years on 1688 and founding date · 💬 response rate, repeat rate, service score · 🏗️ factory facts · 🥇 super factory and powerful merchant badges |
| 🖼️ **Media** | 🖼️ main image and gallery · 🎬 video · 📝 description text and images |
| 🔎 **Search context** | 🔑 keyword · 📊 rank and page · 📣 sponsored flag · 🚚 ship-from, delivery days, buyer protections |

### 🚀 Quick start

<p align="center"><a href="https://console.apify.com/actors/KNIR5sXGhq1ofxOeJ/input"><img src="https://api.apify.com/v2/key-value-stores/YWwrfVoUzvcZJtP7f/records/1688-scraper-step1-v2.jpg" width="840" alt="Step 1: type keywords or paste 1688 product links"></a></p>

<p align="center"><a href="https://console.apify.com/actors/KNIR5sXGhq1ofxOeJ/input"><img src="https://api.apify.com/v2/key-value-stores/YWwrfVoUzvcZJtP7f/records/1688-scraper-step2-v2.jpg" width="840" alt="Step 2: click Start or run it from your code"></a></p>

<p align="center"><a href="https://console.apify.com/actors/KNIR5sXGhq1ofxOeJ/input"><img src="https://api.apify.com/v2/key-value-stores/YWwrfVoUzvcZJtP7f/records/1688-scraper-step3-v2.jpg" width="840" alt="Step 3: get a clean table of 1688 products"></a></p>

1. Type keywords in Chinese or English. For specific products, open **Alternatively, add product links**.
2. Click **Start**, or run it from your code or an AI agent.
3. Open the table and download it as JSON, CSV or Excel.

With an empty input the scraper searches an example keyword (手机壳, phone cases), so you can see the output right away.

### 🍳 How to scrape 1688 products: input recipes

#### 1. Product research by keyword

A quick look at what 1688 offers for a product, with the data from the search results.

```json
{
  "keywords": ["phone case"],
  "maxItemsPerKeyword": 50
}
```

#### 2. Supplier shortlist with full details

Several keywords with SKUs, attributes, the supplier profile and the description; a product found by two keywords is saved once.

```json
{
  "keywords": ["收纳盒", "phone case", "蓝牙耳机"],
  "maxItemsPerKeyword": 100,
  "includeDetails": true
}
```

#### 3. Best sellers under 30 CNY without sponsored products

Products sorted by sales, with a starting price of 30 CNY or less.

```json
{
  "keywords": ["蓝牙耳机"],
  "sortBy": "sales",
  "maxPrice": 30,
  "includeAds": false
}
```

#### 4. Factories with a small minimum order in one province

Super factories in Zhejiang for test orders; products listed with a minimum order above 10 are skipped.

```json
{
  "keywords": ["收纳盒"],
  "province": "Zhejiang",
  "superFactoryOnly": true,
  "maxMoq": 10,
  "includeDetails": true
}
```

#### 5. English titles and USD prices

Products from 1688's English catalog, starting at 10 USD or less.

```json
{
  "keywords": ["yoga mat"],
  "searchShelf": "english",
  "maxPrice": 10
}
```

#### 6. A price and stock list from product links

One row per SKU with its own price, stock and photo and the product fields repeated.

```json
{
  "productUrls": [
    "https://detail.1688.com/offer/892020954719.html",
    "757263991562"
  ],
  "outputFormat": "sku"
}
```

#### Tip: Chinese keywords

Sellers in the Chinese catalog write their titles in Chinese, so a Chinese keyword matches them directly. Try both for the same product, for example 收纳盒 and "storage box".

### ⚙️ Input

The form opens with keywords and the main options. Product links, filters and limits are in the sections below.

| Field | What it does | Default |
|---|---|---|
| `keywords` | Search words in Chinese or English, one per line. | example keyword |
| `productUrls` | 1688 product links or IDs; always saved with full details. | empty |
| `searchShelf` | `chinese` (Chinese titles, CNY) or `english` (English titles, USD). | `chinese` |
| `maxItemsPerKeyword` | Products per keyword, up to 2,000. | 50 |
| `includeDetails` | Full product card: SKUs, attributes, supplier profile, description. | false |
| `outputFormat` | `product` (one row per product) or `sku` (one row per SKU). | `product` |
| `minPrice`, `maxPrice` | Price band: CNY in the Chinese catalog, USD in the English one. | off |
| `province`, `city` | Supplier location, in English or Chinese. | any |
| `superFactoryOnly`, `powerfulMerchantOnly` | Only suppliers with these 1688 badges. | false |
| `maxMoq` | Skip products whose minimum order is above this number. | off |
| `sortBy` | `relevance`, `price_asc` or `sales`. | `relevance` |
| `includeAds` | Keep or drop sponsored products. | true |
| `maxItems` | Stop the run after this many products in total. | off |

Every field is explained in the **Input** tab.

### 📦 Output example

One product with full details from a run on the keyword 宠物玩具 (pet toys). Trimmed for length: 2 of 5 SKUs, 6 of 21 attributes, 2 of 9 gallery images, 2 of 17 description images, fewer tags, and some fields left out (IDs, empty fields, logistics text).

```json
{
  "offerId": "892020954719",
  "url": "https://detail.1688.com/offer/892020954719.html",
  "title": "无填充发声玩具新款狗狗发声宠物动物皮壳趣味互动玩具现货批发",
  "keyword": "宠物玩具",
  "searchShelf": "chinese",
  "rank": 79,
  "page": 2,
  "price": 6.5,
  "promoPrice": null,
  "priceMin": 6.5,
  "priceMax": 6.5,
  "currency": "CNY",
  "priceType": "quantity_tiers",
  "priceTiers": [{ "minQuantity": 1, "price": 6.5 }],
  "moq": 1,
  "unit": "个",
  "salesCount": 7810,
  "monthlySalesText": "500+",
  "supplierName": "东莞尊海玩具有限公司",
  "shopUrl": "https://winport.m.1688.com/page/index.html?memberId=b2b-2206795110681dde8a",
  "province": "广东",
  "city": "东莞",
  "yearsOn1688": 8,
  "isSuperFactory": false,
  "isPowerfulMerchant": false,
  "repeatRate": 37,
  "serviceTags": ["Ships within 48 hours", "Mixed batch", "Dropshipping"],
  "isAd": false,
  "categoryName": "狗狗玩具",
  "skuCount": 5,
  "totalStock": 49986070,
  "skus": [
    {
      "skuId": "5988056780489",
      "specs": { "颜色": "黄色松鼠" },
      "specsEn": { "Color": "黄色松鼠" },
      "price": 6.5,
      "promoPrice": null,
      "stock": 9997627,
      "imageUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01HcYQ7c1Gtwr6SA4vC_!!2206795110681-0-cib.jpg"
    },
    {
      "skuId": "5988056780491",
      "specs": { "颜色": "灰色浣熊" },
      "specsEn": { "Color": "灰色浣熊" },
      "price": 6.5,
      "promoPrice": null,
      "stock": 9997273,
      "imageUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01wljHQB1Gtwr5NwQx6_!!2206795110681-0-cib.jpg"
    }
  ],
  "images": [
    "https://cbu01.alicdn.com/img/ibank/O1CN01pn32dB1Gtwr0CQvBW_!!2206795110681-0-cib.jpg",
    "https://cbu01.alicdn.com/img/ibank/O1CN0163TdD11GtwlO7XzWd_!!2206795110681-0-cib.jpg"
  ],
  "videoUrl": "https://cloud.video.taobao.com/play/u/2206795110681/p/2/e/6/t/1/546662860594.mp4",
  "attributes": [
    { "name": "材质", "nameEn": "Material", "value": "涤纶", "valueEn": "Polyester" },
    { "name": "产品类别", "nameEn": "Product category", "value": "发声玩具", "valueEn": "Squeaky toy" },
    { "name": "品牌", "nameEn": "Brand", "value": "其他", "valueEn": "Other" },
    { "name": "专利类型", "nameEn": "Patent type", "value": "外观设计专利", "valueEn": "Design patent" },
    { "name": "主要销售地区", "nameEn": "Main sales regions", "value": "欧洲,南美,东南亚,北美,东北亚,中东", "valueEn": "Europe, South America, Southeast Asia, North America, Northeast Asia, Middle East" },
    { "name": "玩具构造类型", "nameEn": "Toy construction", "value": "球状", "valueEn": "Ball-shaped" }
  ],
  "shipFrom": "广东省东莞市",
  "deliveryDays": 2,
  "buyerProtections": [{ "name": "7天无理由退货", "nameEn": "7-day no-reason returns" }],
  "descriptionText": "产品价格不含税，开票另加税点，详细联系客服！",
  "descriptionImages": [
    "https://cbu01.alicdn.com/img/ibank/O1CN01NaaeWs1Gtwkyr6htB_!!2206795110681-0-cib.jpg",
    "https://cbu01.alicdn.com/img/ibank/O1CN01jcWv9Q1Gtwl0t9S4d_!!2206795110681-0-cib.jpg"
  ],
  "companyName": "东莞尊海玩具有限公司",
  "isFactory": true,
  "responseRate": 96,
  "serviceScore": 4,
  "foundedDate": "2019-06",
  "shopTags": ["2026 Must-Find Factory list", "CCC certified", "AAA credit grade"],
  "detailsStatus": "ok",
  "scrapedAt": "2026-11-18T13:59:26.157Z",
  "status": "ok",
  "reason": null
}
```

### 📋 Output fields

- **Product:** `offerId`, `url`, `title`, `titleEn`, `categoryName`, `categoryId`, `salesCount`, `salesText`, `monthlySalesText`, `reviewCount`, `goodRate`, `attributes` (name and value with English versions)
- **Prices:** `price`, `promoPrice`, `priceMin`, `priceMax`, `searchPrice` (the price shown in search results when it differs), `currency`, `priceType`, `priceTiers`, `moq`, `unit`
- **SKUs:** `skuCount`, `totalStock`, `skus` (SKU ID, options with English option names, price, promo price, stock, photo). In SKU-row mode: `skuIndex`, `skuId`, `specId`, `specs`, `specsEn`, `skuPrice`, `skuPromoPrice`, `skuStock`, `skuImageUrl`
- **Supplier:** `supplierName`, `companyName`, `shopUrl`, `supplierMemberId`, `supplierLoginId`, `province`, `city`, `yearsOn1688`, `isSuperFactory`, `isPowerfulMerchant`, `isFactory`, `sellerType`, `businessMode`, `responseRate`, `repeatRate`, `serviceScore`, `foundedDate`, `employees`, `factoryAreaM2`, `equipmentCount`, `annualNewDesigns`, `oemOdm`, `shopTags`
- **Logistics and services:** `shipFrom`, `deliveryDays`, `logisticsText`, `unitWeightKg`, `buyerProtections`, `serviceTags`
- **Media:** `imageUrl`, `images`, `videoUrl`, `descriptionText`, `descriptionImages`
- **Search context:** `keyword`, `searchShelf`, `rank`, `page`, `isAd`, `inputUrl`, `detailsStatus`, `scrapedAt`, `status`, `reason`

| `status` | Meaning | Charged |
|---|---|---|
| `ok` | Product saved | Charged |
| `not_found` | The product link points to a removed product or a wrong ID | Free |
| `no_results` | The keyword (with your filters) returned no products | Free |
| `blocked` | 1688 refused to show the page | Free |
| `error` | The input could not be read or loaded | Free |
| `run_summary` | Nothing was saved; the row says why | Free |

`detailsStatus` on product rows: `ok` (full details), `partial` (saved without the supplier profile or the description, `reason` says which), or the reason the product was saved with search data only.

The Output tab also has a **Run summary** with products saved per keyword and per link, duplicates skipped, products not found and failures.

#### What you don't pay for

- Product links that are not found, keywords without results and inputs that fail: they get free status rows with a reason.
- A product found by two keywords: it is saved and charged once.
- Products skipped by `maxMoq` or by the filters.
- One row per SKU: you pay per product, not per SKU row.
- The run summary.

If the full details of a product found by keyword can't be loaded, the product is saved with its search data and charged as a search result.

### 🔌 API and integrations

Get products in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/wiseus-labs~1688-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["phone case"], "maxItemsPerKeyword": 100, "includeDetails": true}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("wiseus-labs/1688-scraper").call(
    run_input={"keywords": ["收纳盒"], "maxItemsPerKeyword": 200, "includeDetails": True}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row.get("status") == "ok":
        print(row["offerId"], row["price"], row.get("moq"))
```

- **Price and stock tracking:** run the same input on a schedule and compare datasets.
- **Schedules and webhooks:** run on a timetable and get notified when a run finishes. See [schedules](https://docs.apify.com/platform/schedules) and [webhooks](https://docs.apify.com/platform/integrations/webhooks).
- **Make, Zapier, n8n:** use the Apify app or node and pick this Actor to send rows to Google Sheets, a database or your store. See [integrations](https://docs.apify.com/platform/integrations).
- **API reference:** the **API** tab on this page shows ready code for every language.

#### Use with AI agents (MCP)

Connect the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) to Claude, Cursor or another AI assistant and add this Actor. Then ask in plain words, for example: "Find 1688 suppliers of silicone phone cases with a minimum order of 50 or less and list their tier prices."

### ❓ FAQ

**Do I need a 1688 account or an API key?**
No. You don't log in to 1688 and you don't need a 1688 API key. You only need an Apify account.

**Can I get English titles and English attribute names?**
Yes. Choose the English catalog in **Search in** to get English titles and USD prices (with full details `price` is in CNY and `searchPrice` is the USD price from the search). With full details, common attribute names and values and SKU option names come with English versions next to the Chinese original.

**How many products can I get per keyword?**
Up to 2,000, which is as many as 1688 shows for one search and filter combination. For more, split the search by price band (`minPrice`, `maxPrice`) or by province and run several inputs.

**Which filters can I use?**
Price band, supplier province and city, super factories only, powerful merchants only, maximum minimum order (`maxMoq`), sort by relevance, price or sales, and sponsored products on or off.

**Does it give the price and stock of each SKU?**
Yes, with full details. Each SKU has its own price, promo price, stock and photo, and `outputFormat: "sku"` puts each SKU on its own row for spreadsheets.

**Why is the price of some products only a few cents (0.05 CNY)?**
`price` is the starting price 1688 shows for the product, usually its cheapest SKU. One product can start at 0.05 CNY and have options up to 7 CNY. Check `priceMin` and `priceMax` for the full range, `skus` for the price of each option, and `moq` and `priceTiers` for the order quantity that price applies to.

**What is the difference between `salesCount`, `salesText` and `monthlySalesText`?**
`salesText` is the units-sold figure as 1688 shows it, rounded (3万+ means 30,000+). `salesCount` is that figure as a number: with full details the exact count (for example 38370 for 3万+), from search data only the number in the text. `monthlySalesText` is 1688's rounded monthly sales figure (1000+) from the search results, so it is empty for products from links.

**What is the difference between the Chinese and the English catalog?**
The Chinese catalog shows Chinese titles and CNY prices. The English catalog is 1688's own English shelf with English titles and USD prices, and it shows a different set of products. All filters work on both.

**How do I export 1688 products to CSV or Excel?**
After the run, open the **Output** tab and click **Export**. Choose CSV, Excel, JSON or another format. Through the API add `format=csv` to the dataset items link.

### 💬 Feedback and support

Found a bug or missing a field? Open an issue on the **Issues** tab and tell us what you need.

Ready to try it? [Open the input form](https://console.apify.com/actors/KNIR5sXGhq1ofxOeJ/input), type a keyword and click **Start**.

# Changelog

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

# Actor input Schema

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

Search words, one per line, in Chinese (手机壳) or English (phone case). Each keyword is searched on 1688 and its products are saved. Duplicates are removed.

## `searchShelf` (type: `string`):

Chinese catalog: Chinese titles, prices in CNY. English catalog: English titles and USD prices from 1688's English catalog; it shows a different set of products. All filters work on both catalogs.

## `maxItemsPerKeyword` (type: `integer`):

How many products to save for each keyword. 1688 shows up to 2000 results per search and filter combination.

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

Open each product found by keyword: SKUs with their own price, stock and photo, the full gallery and video, attributes with English names, price tiers, stock, logistics, the description and the supplier profile (response rate, repeat-buyer rate, service score, factory facts). Product links always include these details.

## `outputFormat` (type: `string`):

One row per product (SKUs as a list inside the row), or one row per SKU with the product fields repeated, ready for a spreadsheet. One row per SKU needs full details (or product links). Each product is charged once in both formats.

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

1688 product links, one per line: detail.1688.com/offer/123456789012.html, m.1688.com links, links with extra parts after the ID, or bare product IDs. Products from links always come with full details (SKUs, gallery, attributes, supplier profile).

## `minPrice` (type: `number`):

Only products priced at least this much. Chinese catalog: in CNY (Chinese yuan). English catalog: in USD. Decimals allowed (0.5).

## `maxPrice` (type: `number`):

Only products priced at most this much. Chinese catalog: in CNY (Chinese yuan). English catalog: in USD. Decimals allowed (12.5).

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

Only suppliers from this province, in English or Chinese: Guangdong, Zhejiang, 广东, 浙江 and so on.

## `city` (type: `string`):

Only suppliers from this city, in Chinese (深圳) or in English for major sourcing cities (Shenzhen, Yiwu, Guangzhou, Dongguan...). The province is filled in for you when it is empty.

## `superFactoryOnly` (type: `boolean`):

Only suppliers 1688 marks as super factories (超级工厂). With Powerful merchants only also on, a supplier must have both badges.

## `powerfulMerchantOnly` (type: `boolean`):

Only suppliers 1688 marks as powerful merchants (实力商家). With Super factories only also on, a supplier must have both badges.

## `maxMoq` (type: `integer`):

Skip products whose minimum order quantity is above this number, for example 10 for small test orders. 0 means no limit. Skipped products are not charged.

## `sortBy` (type: `string`):

Order of the search results.

## `includeAds` (type: `boolean`):

Keep the sponsored products 1688 mixes into the results. They are marked with isAd.

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

Stop the whole run after this many saved products, across all keywords and links. 0 means no limit.

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

At most this many products are opened at the same time when full details are on. The scraper lowers it on its own when 1688 slows it down and raises it again afterwards. The default suits most runs.

## Actor input object example

```json
{
  "keywords": [
    "手机壳"
  ],
  "searchShelf": "chinese",
  "maxItemsPerKeyword": 50,
  "includeDetails": false,
  "outputFormat": "product",
  "productUrls": [],
  "minPrice": 0,
  "maxPrice": 0,
  "province": "",
  "city": "",
  "superFactoryOnly": false,
  "powerfulMerchantOnly": false,
  "maxMoq": 0,
  "sortBy": "relevance",
  "includeAds": true,
  "maxItems": 0,
  "maxConcurrency": 8
}
```

# Actor output Schema

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

One row per product (or per SKU). Tabs: Products, Prices & SKUs, Suppliers, Media, Status, plus All fields.

## `runSummary` (type: `string`):

Products saved per keyword and per link, duplicates skipped, not found, no results and failures.

# 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("wiseus-labs/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("wiseus-labs/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 wiseus-labs/1688-scraper --silent --output-dataset

```

## MCP server setup

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