# Weidian Scraper - Products, Prices, Variants & Stock (`scrapewise/weidian-scraper`) Actor

Scrape Weidian (weidian.com) products by link or ID: title, price in CNY, every variant with its own price and stock, images, options, sales count, shop name, followers, repurchase rate and credit level. Paste product links or numeric IDs. Error rows are free.

- **URL**: https://apify.com/scrapewise/weidian-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.66 / 1,000 product delivereds

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

## Weidian Scraper: products, prices, variants and stock from weidian.com

This Weidian scraper turns **Weidian product links, item IDs or whole shops into clean rows**: title, price in yuan (CNY), the **full variant list with the price and stock of every color and size**, images, sales count, favorites and the shop behind the product (name, followers, repurchase rate, credit level, delivery time). No account is needed.

Weidian is one of the largest mobile shopping platforms in China, with millions of small sellers. Use this Weidian data extractor to check the real price and stock of a product before you buy, to track price and stock changes on the same products over time, to compare suppliers for a reselling or dropshipping catalog, and to feed spreadsheets, price monitors and AI agents with structured product data.

### At a glance

| What | Price |
|---|---|
| Product delivered | **US$ 3.50 per 1,000 products** (US$ 0.0035 each) |
| Run start | US$ 0.005 per run |

- 100 products = **US$ 0.355** (US$ 0.35 for the products plus the start fee).
- Error rows, invalid links, products that no longer exist and duplicates are never charged.
- `maxItems` is a hard cap, and a spending limit set on the run stops it cleanly with everything delivered so far.
- Typical speed: about 2 products per second.

### Quick start

Paste product links or just the numeric item IDs:

```json
{
  "itemIds": [
    "https://weidian.com/item.html?itemID=7289624031",
    "7291167284"
  ]
}
```

Or paste a shop and get every product it lists, each with the same full details:

```json
{
  "shopUrls": ["https://weidian.com/?userid=1690156005"],
  "maxItems": 200
}
```

Leave `itemIds` and `shopUrls` empty and the Actor runs a sample product, so you can see the output format in a few seconds.

Where do I find the ID? Open the product on Weidian. The link looks like `https://weidian.com/item.html?itemID=1234567890` and the number after `itemID=` is the item ID. Links shared by sellers and copied from the Weidian app use the same number.

### Input

| Field | What it does |
|---|---|
| `itemIds` | Weidian product links or numeric item IDs, one per line. Mixing both is fine. Duplicates are delivered once. |
| `shopUrls` | Weidian shop links (`https://weidian.com/?userid=...`) or numeric shop IDs. Every product the shop lists is delivered, newest first. |
| `maxItems` | Cap for the whole run, shop products included (default 50, 0 = no cap). |
| `proxyConfiguration` | Connection settings. Datacenter by default. |

`urls`, `productUrls`, `productIds`, `ids`, `startUrls`, `shopIds`, `shops`, `maxResults` and `limit` are accepted too, so inputs written for other tools keep working. A shop link pasted in `itemIds` is read as a shop.

This Actor reads **one product per link or ID**, or every product of a shop. It does not search Weidian by keyword: to cover a seller, paste the shop link in `shopUrls`.

Where do I find the shop ID? Open the shop on Weidian. The link looks like `https://weidian.com/?userid=1234567890` and the number after `userid=` is the shop ID. Every product row also carries `shopId` and `shopUrl`, so one product link is enough to reach the whole shop.

### Output

One row per product (`type: product`):

| Field | What it is |
|---|---|
| `itemId`, `url` | Weidian item ID and permanent product link |
| `title` | Product title as the seller wrote it |
| `price` | Lowest price in CNY (yuan) |
| `originalPrice` | Original price before discount, when the seller shows one |
| `priceMin`, `priceMax` | Lowest and highest price across all variants |
| `currency` | Always `CNY` |
| `stock` | Total units in stock, as the seller shows |
| `salesText`, `salesCount` | Sales as Weidian shows them, and the same as a number (empty when the page hides it) |
| `favoriteCount` | How many buyers saved the product |
| `mainImage`, `images` | Main image and every product image link |
| `categoryId` | Weidian category number of the product |
| `options` | The choices the buyer picks, like Color and Size, each with its list of values |
| `variantCount`, `variants` | Every combination with `skuId`, `title`, `price`, `originalPrice`, `stock` and `image` |
| `isSellable`, `isOnShelf` | Whether the product can be bought now and is listed |
| `installmentMonths` | Longest installment plan offered, in months |
| `guarantees` | Buyer guarantees shown on the product (returns, payment protection, store verification) |
| `shopId`, `shopName`, `shopUrl`, `shopLogo` | The shop that sells it |
| `shopFollowers` | People following the shop |
| `shopRepurchaseRate` | Share of buyers who bought again, in percent |
| `shopCreditLevel`, `shopCreditType` | Shop credit level and its type as Weidian shows them |
| `shopAvgDeliveryTime` | Average time the shop takes to ship |
| `scrapedAt` | When the row was collected (UTC) |
| `errorCode`, `error` | Empty on product rows; filled on error rows |

Text fields follow the language Weidian returns for the product: titles and options are often in Chinese, sometimes in English. Prices are the numbers shown on Weidian, in yuan, with two decimals.

Sellers often paste their phone number, WhatsApp or WeChat ID into product titles. Those personal contacts are **removed** from the title, the shop name and the variant names, so the output carries product and shop data only.

One real product row (images, options and variants shortened):

```json
{
  "type": "product",
  "itemId": "7289624031",
  "url": "https://weidian.com/item.html?itemID=7289624031",
  "title": "2025ss ULSUM STORE，L Men's bag",
  "price": 220.0,
  "originalPrice": null,
  "priceMin": 220.0,
  "priceMax": 500.0,
  "currency": "CNY",
  "stock": 39971,
  "salesText": null,
  "salesCount": null,
  "favoriteCount": 4,
  "mainImage": "https://si.geilicdn.com/pcitem777921373-55d800000199941e7a320a20e2c5_1200_1200.jpg",
  "images": ["https://si.geilicdn.com/pcitem777921373-55d800000199941e7a320a20e2c5_1200_1200.jpg"],
  "categoryId": 50012907,
  "options": [{"name": "40 styles", "values": ["01", "02", "03"]}],
  "variantCount": 40,
  "variants": [
    {"skuId": "125175979153", "title": "01", "price": 235.0, "originalPrice": 235.0, "stock": 1000,
     "image": "https://si.geilicdn.com/pcitem777921373-2e0100000197f0d88b250a8133cc_1080_1438.jpg"},
    {"skuId": "125175979155", "title": "02", "price": 230.0, "originalPrice": 230.0, "stock": 998,
     "image": "https://si.geilicdn.com/pcitem777921373-306c00000197f0d887e00a811411_1080_1438.jpg"}
  ],
  "isSellable": true,
  "isOnShelf": true,
  "installmentMonths": 12,
  "guarantees": ["Transaction capital guarantee", "Corporate store", "Store Manager Real-Name Authentication"],
  "shopId": "1690156005",
  "shopName": "ULSUM STORE（The only store）",
  "shopUrl": "https://weidian.com/?userid=1690156005",
  "shopFollowers": 298,
  "shopRepurchaseRate": "64",
  "shopCreditLevel": 5,
  "shopCreditType": 2,
  "shopAvgDeliveryTime": "72小时内",
  "scrapedAt": "2026-11-01T17:05:12Z",
  "errorCode": null,
  "error": null
}
```

### Use cases

- **Price and stock monitoring.** Schedule the same list of products and compare `price`, `priceMin`, `priceMax` and the stock of each variant between runs to see price changes and sold-out sizes.
- **Supplier comparison.** Put the same kind of product from several shops side by side with price, followers, repurchase rate and credit level.
- **Catalog building.** Paste a shop and export every product with titles, options, prices and image links to a spreadsheet or a store catalog.
- **Variant-level stock checks.** Each color and size has its own `skuId`, price and stock, so you can tell which options are really available before you place an order.
- **AI agents and automations.** Give an agent a product link and get structured data back to summarize, translate or compare.

### Errors you may see

Every error is a row with `errorCode` and is never charged:

| errorCode | Meaning |
|---|---|
| `INVALID_URL` | The line is not a Weidian product or shop link or numeric ID |
| `INVALID_INPUT` | A number field has a wrong value |
| `NOT_FOUND` | The product does not exist, was removed or is private, or the shop has no public products |
| `BLOCKED` | Weidian did not answer for this product after several attempts; run it again in a few minutes |

If some products are not available, the others in the same run still come back as normal rows.

### Integrations, scheduling and AI agents

- **Schedule** the same product list daily or weekly in [Apify schedules](https://docs.apify.com/platform/schedules) to follow prices and stock.
- **Export** as JSON, CSV, Excel or XML, or read the dataset from the [Apify API](https://docs.apify.com/api/v2).
- **Connect** it to Make, n8n, Zapier or Google Sheets through [Apify integrations](https://docs.apify.com/platform/integrations).
- **AI agents:** call it as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) in Claude, ChatGPT, Cursor or any MCP client, for example "get the price and sizes in stock for these 10 Weidian products and tell me which is cheapest".

### FAQ

**Do I need a Weidian account?** No. Everything comes from public product pages, with no login or cookies.

**Can I scrape a whole shop?** Yes. Paste the shop link or shop ID in `shopUrls` and every product the shop lists comes back with full details, up to `maxItems`.

**Can I search Weidian by keyword?** Not in this version. Use product links or shop links.

**Are the prices in yuan?** Yes. `currency` is always `CNY`. Convert with the exchange rate of the day if you need another currency.

**Why is `salesCount` empty on some products?** Weidian shows the sales figure only on some products. When it is not on the page, the field is empty instead of a made-up zero.

**Why do some titles look shorter than on the website?** Phone numbers, WhatsApp and WeChat IDs, e-mail addresses and promotional links that sellers add to titles are removed.

**Why do variant names mix Chinese and English?** The variant names are the seller's own text; many sellers write both.

**Is it legal?** The Actor reads public product pages only and returns no personal contacts. You are responsible for how you use the data under the laws that apply to you.

**Something broke or a field is missing?** Open an issue on the Actor page; issues are answered within a day.

### Limitations

- Product links, product IDs and shops only: no keyword search.
- Product reviews and the long description images are not collected.
- Prices, stock and shop numbers are the ones Weidian shows at the moment of the run.
- A product that Weidian hides from visitors outside the app returns a `NOT_FOUND` row.

### Related scrapers

- [1688 Scraper](https://apify.com/scrapewise/alibaba-1688-scraper): wholesale prices, price tiers and MOQ from the factories behind many Weidian shops.
- [Taobao & Tmall Scraper](https://apify.com/scrapewise/taobao-scraper): retail prices for the same products on China's largest marketplace.
- [Xianyu Scraper](https://apify.com/scrapewise/xianyu-listing-scraper): second-hand and resale listings from Xianyu (Goofish).
- [Image Search Scraper](https://apify.com/scrapewise/sourcing-image-search-scraper): find the same product on 1688, Alibaba.com and AliExpress from one photo.

### Changelog

**8 Nov 2026** Whole shops: paste a shop link or ID in `shopUrls` and get every product it lists.

**1 Nov 2026 (0.1)** First version: product data by link or ID with variants, stock, images and shop details.

# Actor input Schema

## `itemIds` (type: `array`):

Weidian product links (https://weidian.com/item.html?itemID=...) or just the numeric item IDs, one per line. Shop links pasted here are read as shops. Empty (and no shop) = a sample product.

## `shopUrls` (type: `array`):

Weidian shop links (https://weidian.com/?userid=...) or numeric shop IDs, one per line. Every product the shop lists is delivered with its full details, up to maxItems.

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

Hard cap on delivered products for the whole run, products from shops included (0 = no cap).

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

Datacenter proxy by default.

## Actor input object example

```json
{
  "itemIds": [
    "7289624031"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (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 = {
    "itemIds": [
        "7289624031"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/weidian-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 = {
    "itemIds": ["7289624031"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/weidian-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 '{
  "itemIds": [
    "7289624031"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/weidian-scraper --silent --output-dataset

```

## MCP server setup

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