# JD.com Scraper (`sleepmodesystems/jd-com-scraper`) Actor

\[💰 $2.99 / 1K products] Scrape JD.com (京东) products from searches, product links and shops: real CNY price, brand, model, UPC barcode, variants, stock, delivery and sales rank, 50 products in 10-20 s. Search fields only at $0.99 / 1K. No JD account. Export JSON, CSV or Excel.

- **URL**: https://apify.com/sleepmodesystems/jd-com-scraper.md
- **Developed by:** [Sleep Mode Systems](https://apify.com/sleepmodesystems) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 5 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.54 / 1,000 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

**\[💰 $2.99 per 1,000 products]** Scrape JD.com (京东) products by keyword, link or shop, each with the real price in yuan, barcode, every variant, stock and delivery promise: 100 complete products in about 30 seconds, and search fields only at $0.99 per 1,000.

### What can JD.com Scraper do?

JD.com Scraper **extracts products from JD.com (京东)** (https://www.jd.com), China's largest retailer, in a single tool: search by **keyword** with JD's own filters, paste **product links or SKU ids**, or read a **shop's** whole catalogue, in one run, and get every product complete: the real price in yuan, brand, model, UPC barcode, every variant SKU, stock code and quantity, delivery promise, returns, warranty, services, review count and good rate, sales rank, size, weight and VAT. No JD account, no Chinese phone number, no proxy, nothing to set up.

<table>
<tr>
<th>📦 What you can extract</th>
<th>⚙️ Features & integrations</th>
</tr>
<tr>
<td valign="top">

💴 **Real price in yuan**, not JD's masked `6??8` <br>
🏷️ **Every variant**: color, size, spec, photo <br>
📦 **Stock** code and quantity, delivery promise <br>
🔢 **UPC barcode**, brand, model, category <br>
⭐ **Reviews**: count, good rate, tags <br>
🏅 **JD badges**: self-operated, subsidy, lowest price <br>
🧾 **Services**, warranty, sales rank, VAT, size

</td>
<td valign="top">

🔎 **Search** by keyword, link or shop <br>
🎯 **JD's filters**: price, JD Logistics, national subsidy <br>
🏪 **Whole shops**, one row per product <br>
⚡ **100 products in about 30 seconds** <br>
⬇️ **Export data** to JSON, CSV, Excel or XML <br>
🦾 **API access, webhooks**, Node.js & Python <br>
🤖 **LLM-ready data** for MCP, Claude, ChatGPT

</td>
</tr>
</table>

If you track JD prices, watch competitors' shops, match listings to your catalogue by barcode or size a category, you can get it all from a single tool.

### What data can I scrape from JD.com?

One row per product, **complete by default**:

- **Price:** *what it costs on JD.* The price in yuan a shopper sees before checkout coupons, never the masked price JD shows signed-out visitors on product pages; the installment offer and bank promotion.
- **Product:** *what it is.* Title and short title, brand, model, UPC barcode, category ids, sale and listing dates, photos, size, weight and VAT rates.
- **Variants:** *what a shopper can pick.* This SKU's color, size and spec, every option JD offers for each, and every variant SKU of the product with its photo.
- **Stock and delivery:** *whether it ships.* JD's stock code and quantity, the delivery promise, shipping rule, return policy, warranty, and services with JD's own description.
- **Shop and badges:** *who sells it.* Shop name and id, seller id, and JD's badges: self-operated (京东自营), JD Supermarket, billion subsidy (百亿补贴), lowest price, flash sale, presale, cross-border.
- **Reviews and rank:** *what buyers think.* JD's review count ("20万+"), good rate and review tags, and the JD sales list the product ranks on.

Fill rates over a 100-product search, complete: price, variants, stock, listing date and badges 99-100%; delivery promise 99%; brand 93%; review tags 93%; shipping 88%; review count and good rate 86-87%; model 81%; videos 71%; barcode 57%; installments 57%; sales rank 35%.

> Need one job only? These dedicated scrapers cover JD.com tasks on their own:
>
> - 🔎 [JD.com Product Details Scraper](https://apify.com/sleepmodesystems/jd-com-product-details-scraper): product links or SKU ids only
> - 🏪 [JD.com Shop Scraper](https://apify.com/sleepmodesystems/jd-com-shop-scraper): a shop's whole catalogue

### How much will scraping JD.com cost?

JD.com Scraper uses **pay-per-event** pricing: you pay for each product written to the dataset, and nothing else. The start fee is a fraction of a cent, platform usage is included, and SKU ids JD no longer has are not charged.

| Event | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|
| Product, complete: real price, barcode, every variant, stock, delivery, reviews (per 1,000) | $2.99 | $2.84 | $2.69 | $2.54 |
| Product, search or shop list fields only: price, shop, review count, good rate, badges, with **Product page details** off (per 1,000) | $0.99 | $0.94 | $0.89 | $0.84 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

The tiers are Apify's discount tiers; the PLATINUM and DIAMOND tiers pay the GOLD price. Every field is in the product price: no add-ons. Products from SKU ids always come complete.

#### Cost examples

| Scenario | Products | Cost (FREE) | Cost (GOLD) |
|---|---|---|---|
| Try it: 20 products for a keyword, complete | 20 | $0.06 | $0.05 |
| 100 products of a search, complete | 100 | $0.30 | $0.25 |
| 100 SKUs tracked every day for a month | 3,000 | $8.97 | $7.62 |
| A category sweep, search fields only | 10,000 | $9.90 | $8.40 |

Set the run's maximum charge in Apify to cap spend: the actor stops cleanly and says how many products it delivered.

### How do I use JD.com Scraper?

<a href="https://console.apify.com/actors/rPqsDVdI7hOvZBTEt/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/jd-com-scraper/jd-com-scraper-how-it-works.png" alt="How JD.com Scraper works: keywords, links or shops in, complete JD.com products out" style="width:100%;"></a>

1. [Create](https://console.apify.com/sign-up) a free Apify account.
2. Open **[JD.com Scraper](https://console.apify.com/actors/rPqsDVdI7hOvZBTEt)** in Apify Console.
3. Add **search terms**, **product links or SKU ids**, or **shops**, and set **Maximum products**.
4. Click **Save & Start**: 100 complete products take about 30 seconds.
5. Download the dataset as **JSON, CSV, Excel or XML**, or read it through the Apify API.

### ⬇️ Input

Search terms, products and shops add up: each search term and each shop gives up to **Maximum products**, each product link or SKU id gives its one row. JD's filters narrow searches; the price range also applies to shops.

<a href="https://console.apify.com/actors/rPqsDVdI7hOvZBTEt/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/jd-com-scraper/jd-com-scraper-input.png" alt="JD.com Scraper input form: search terms, products and shops" style="width:100%;"></a>

| Paste this | And you get |
|---|---|
| A word in Chinese or English: `华为手机`, `iphone 17` | JD's search, in JD's order |
| A JD search link | The same search, with its price range |
| A SKU id or link: `100320690657`, item.jd.com, mobile, JD Worldwide | That product, complete |
| A shop link, brand store or shop id: `mall.jd.com/index-1000004259.html`, `huawei.jd.com` | The shop's catalogue, one row per product |

#### 🔎 Search JD by keyword

```json
{
    "searchTerms": ["华为手机"],
    "maxItems": 100
}
```

#### 🎯 Use JD's own filters

```json
{
    "searchTerms": ["空调"],
    "minPrice": 2000,
    "maxPrice": 5000,
    "jdLogisticsOnly": true,
    "subsidyOnly": true
}
```

#### 🔗 Get products by link or SKU id

```json
{
    "products": ["https://item.jd.com/100320690657.html", "100066291366"]
}
```

#### 🏪 Read a shop's catalogue

```json
{
    "shops": ["https://mall.jd.com/index-1000004259.html"],
    "maxItems": 1000
}
```

#### 💸 Sweep a category for less

Turn **Product page details** off for search fields only (price, shop, review count, good rate, badges) at $0.99 per 1,000.

```json
{
    "searchTerms": ["奶粉"],
    "maxItems": 2000,
    "details": false
}
```

#### Input fields

| Field | Type | Default | Meaning |
|---|---|---|---|
| Search terms (`searchTerms`) | list | – | Words in Chinese or English, or JD search links |
| Products (SKU ids or links) (`products`) | list | – | JD product links or SKU ids |
| Shops (`shops`) | list | – | Shop links, brand stores or shop ids |
| Maximum products (`maxItems`) | number | 1,000 | Per search term and per shop |
| Lowest and highest price (¥) (`minPrice`, `maxPrice`) | number | none | In yuan; JD's own filter on searches, also on shops |
| JD Logistics only (京东物流) (`jdLogisticsOnly`) | true or false | false | Only products JD ships itself |
| National subsidy only (国家补贴) (`subsidyOnly`) | true or false | false | Only products eligible for China's trade-in subsidy |
| Product page details (`details`) | true or false | true | Off: search and shop list fields only, $0.99 per 1,000 |
| Minimum products (`minItems`) | number | 0 | Fail the run when fewer products come back (for monitoring) |

### ⬆️ Output

<a href="https://console.apify.com/actors/rPqsDVdI7hOvZBTEt/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/jd-com-scraper/jd-com-scraper-output.png" alt="JD.com Scraper output: products with photo, price, shop, reviews and stock" style="width:100%;"></a>

Results land in the run's dataset: view them as a table, download them as JSON, CSV, Excel or XML, or read them through the API. Texts are in Chinese, as JD shows them.

#### 📦 JD.com product data sample

The first result of a search for 蓝牙耳机 (lists and long text shortened):

```json
{
  "skuId": "100245134044",
  "title": "柏林之声第1名【全国补贴立减15%】火爆疯抢中！",
  "price": 127.8,
  "currency": "CNY",
  "url": "https://item.jd.com/100245134044.html",
  "imageUrl": "https://img14.360buyimg.com/n0/jfs/t1/410976/12/8605/567842/69ca503fF1b0a8cfc….jpg",
  "brand": "唯立德",
  "brandId": "1283499",
  "model": "DZ-S30",
  "upc": "6975374775660",
  "shopId": "1000528745",
  "shopName": "唯立德京东自营旗舰店",
  "venderId": "1000528745",
  "reviewCountText": "20万+",
  "goodRate": 98,
  "reviewTags": ["佩戴舒适", "十分舒服"],
  "installments": "6期免息",
  "badges": { "selfOperated": true, "jdSupermarket": false, "billionSubsidy": false, "lowestPrice": true, "presale": false, "crossBorder": false },
  "stockState": 33,
  "stockQuantity": -1,
  "deliveryPromise": "11:10前付款，预计<b>今天(11月17日)</b>送达",
  "returnPolicy": "7天无理由退货",
  "warranty": "1年质保",
  "services": [{ "name": "7天价保", "description": "在下单后7天内，商品出现降价可享受价保服务…" }],
  "serviceTags": [{ "name": "今日达", "tip": "指定时间前下单，最快今日达", "code": "sendpay_today" }],
  "salesRank": { "list": "唯立德蓝牙耳机榜", "position": 1, "listId": "4265184" },
  "color": "【Ultra艺术版】京榜爆款-星空黑",
  "variantOptions": { "颜色": ["【Ultra艺术版】京榜爆款-星空黑", "【Ultra艺术版】京榜爆款-钛空灰", "…"] },
  "variants": [{ "skuId": "100268415302", "color": "【Ultra艺术版】京榜爆款-玫瑰金", "imageUrl": "https://img14.360buyimg.com/n0/jfs/t1/…" }],
  "spuId": "100245134044",
  "categoryIds": ["652", "828"],
  "listedAt": "2025-06-18T12:43:06Z",
  "weightKg": 0.155,
  "vat": { "input": 13, "output": 13, "consumption": 0 },
  "videoIds": ["4450501964", "2918288562"],
  "details": true,
  "searchTerm": "蓝牙耳机",
  "position": 1,
  "scrapedAt": "2026-11-16T18:25:11Z"
}
```

#### Fields

Source: **JD** = JD's value unchanged. **Decoded** = JD's value turned into a number, date or full link. **Fixed** = the same in every row. Missing values are `null`, never an empty string.

| Field | Source | Meaning |
|---|---|---|
| `skuId` | JD | JD's SKU id; never changes |
| `title`, `shortTitle` | JD | Title and short title as JD shows them |
| `price` | Decoded | Price in yuan a shopper sees; checkout coupons not included |
| `currency` | Fixed | `CNY` |
| `url` | Decoded | The product page on JD.com |
| `imageUrl`, `images` | Decoded | Photos, full size |
| `brand`, `brandId`, `model` | JD | Brand and model |
| `upc` | JD | Barcode JD records for the SKU |
| `shopId`, `shopName`, `venderId` | JD | Shop and seller (the seller id is not always the shop id) |
| `reviewCountText` | JD | Review count as JD writes it ("1万+") |
| `goodRate` | Decoded | Share of good reviews, percent |
| `stockState` | JD | JD's stock code: 33 in stock, 40 available to order, 34 out of stock, 36 pre-order |
| `stockQuantity` | JD | Stock quantity JD shows; -1 when JD doesn't count it |
| `deliveryPromise`, `shippingText`, `returnPolicy`, `warranty` | JD | Delivery promise (none on pre-order products), shipping rule, return policy, warranty |
| `services` | JD | Services with JD's description |
| `serviceTags` | JD | Service badges with JD's tip and code |
| `salesRank` | JD | The sales list, the position on it and its id |
| `color`, `size`, `spec`, `variantAttributes` | JD | The values of the variant in the row |
| `variantOptions` | JD | Every option JD offers for each attribute |
| `variants` | JD | Every variant SKU of the product with its color, size, spec and photo |
| `spuId`, `productId`, `seriesId`, `categoryIds` | JD | Product group, series and category ids |
| `saleDate`, `skuStatus` | JD | Sale date (China time) and JD's status (1 on sale) |
| `weightKg`, `lengthMm`, `widthMm`, `heightMm` | Decoded | Weight and package size |
| `vat` | Decoded | VAT rates: input, output, consumption |
| `flags` | Decoded | sevenDayReturn, overseasPurchase, newGoods, prescription, otc, dangerousGoods, canUseDongQuan, canUseJingQuan |
| `purchaseLimit`, `maxOrderQuantity` | JD | Per-customer limit and most units per order |
| `bankPromotion`, `videoIds` | JD | Bank promotion text, JD video ids |
| `reviewTags`, `installments`, `promoTags`, `sellingPoint` | JD | Review tags, installment offer ("6期免息"), promotion tags, selling point, as JD's search and shop lists show them |
| `badges` | Decoded | selfOperated (京东自营), jdSupermarket, billionSubsidy (百亿补贴), lowestPrice, flashSale, presale, live, newArrival, superNewLaunch, crossBorder |
| `listedAt` | Decoded | When JD listed the product (UTC) |
| `searchTerm`, `fromShop`, `position` | Fixed | The search term or shop the row came from, and its place in JD's order |
| `details` | Fixed | `true`: complete row; `false`: search or shop list fields only |
| `scrapedAt` | Fixed | When the run read the product (UTC) |

#### Run summary

Every run saves a `SUMMARY` record in its key-value store. This one is a 100-product search:

```json
{
  "products": 100,
  "productsWithProductPage": 100,
  "productsSearchFieldsOnly": 0,
  "productPageNotShownByJD": 0,
  "priceNotShownByJD": 0,
  "skuIdsNotOnJD": [],
  "jdCountPerSearchTerm": { "蓝牙耳机": 7598 },
  "jdCountPerShop": {},
  "durationSec": 29
}
```

`jdCountPerSearchTerm` and `jdCountPerShop` are JD's own counts. `skuIdsNotOnJD` lists SKU ids JD no longer has: they are not charged. A run is suspect when `productPageNotShownByJD` or `priceNotShownByJD` is high: JD did not show those pages this time, and the rows came without those fields. Set `minItems` to make a short run fail outright.

#### 📝 Notes and limits

- **The price is the real one.** JD masks prices for signed-out visitors on product pages (`6??8`); every row carries the price JD's own pages show, before checkout coupons.
- **A SKU is one variant.** The same phone in another color or storage size is another SKU; `variants` lists them and `variantOptions` names every option.
- **Review counts are JD's rounded text** ("20万+"), kept as JD writes it; `goodRate` is JD's share of good reviews. Review texts are shown to signed-in shoppers only; this actor never logs in.
- **Stock codes are JD's.** 33 is in stock, 40 available to order, 34 out of stock, 36 pre-order; a stock quantity of -1 means JD doesn't count it.
- **JD repeats products across search pages**, so a search can end before **Maximum products** when JD has nothing new to show.
- **A shop comes one row per product**, its other colors and sizes inside the row; JD orders a shop slightly differently from one visit to the next, so two runs of a big shop can differ by a few percent.
- **Prices move during promotions** (618 in June, Double 11 in November): schedule runs as often as you need a fresh price.

### What can you do with JD.com data?

#### 📈 [Track the price and stock of your SKUs](https://apify.com/sleepmodesystems/jd-com-scraper/examples/jd-price-stock-tracker)

Brands and resellers follow the SKUs they care about: their own listings, their resellers', their competitors'.

**Recipe:**

1. Paste the SKU ids or links in **Products** and save it as an Apify task.
2. Schedule it daily, and send each run's dataset to Google Sheets, your database or Slack.
3. Compare `price`, `stockState` and `deliveryPromise` by `skuId` with the previous day.

100 SKUs tracked every day for a month cost about $9.

#### 🏪 [Watch a competitor's shop](https://apify.com/sleepmodesystems/jd-com-scraper/examples/jd-competitor-shop-tracker)

Brands and marketplace sellers follow what a competitor sells on JD: new products, prices, sales rank and stock.

**Recipe:**

1. Paste the competitor's shop link and save it as an Apify task.
2. Schedule it weekly.
3. Compare by `spuId` with the previous run: new products (`listedAt`), price moves, `salesRank`.

A 200-product shop every week for a month costs about $2.40.

#### 📊 [Sweep a category's prices](https://apify.com/sleepmodesystems/jd-com-scraper/examples/jd-category-price-sweep)

Brands and analysts read a category's prices, shops and badges, around 618 and Double 11 above all.

**Recipe:**

1. Search the category's words with **Product page details** off, at $0.99 per 1,000.
2. Group by `price`, `shopName` and `badges`, and read JD's own count in the summary.
3. Read the products that matter complete with [JD.com Product Details Scraper](https://apify.com/sleepmodesystems/jd-com-product-details-scraper).

500 products of a category cost about $0.50.

### JD.com scrapers compared

| | JD.com Scraper | silentflow | zen-studio | bakos_bence | piotrv1001 |
|---|---|---|---|---|---|
| Price per 1,000, complete (FREE) | $2.99 | $2.19 | $11.98 | $2.19 | $3.50 |
| Price per 1,000, search fields only | $0.99 | $2.19 | $5.99 | – | $2.00 |
| Real price, not `6??8` | ✅ | ✅ | ✅ | ❌ | ✅ |
| Searches, products and shops in one run | ✅ | ✅ | ❌ one keyword | ❌ products | ❌ shops |
| JD Logistics and national subsidy filters | ✅ | ❌ | ❌ | ❌ | ❌ |
| A big shop's whole catalogue | ✅ | – | ❌ | ❌ | ✅ |
| Services with JD's descriptions, every variant option | ✅ | ❌ | partly | partly | – |
| VAT, OTC, prescription and dangerous-goods flags | ✅ | VAT | ✅ | VAT | – |
| Review texts | ❌ (signed-in shoppers only) | ❌ | ✅ | ❌ | ❌ |

Prices from each actor's Apify page; the other facts from runs with the same products and from their pages. "–" means not stated.

### Want to get other data from JD.com?

You can use the other dedicated JD.com scrapers below for one job each:

<table>
<tr>
<td>🔎 <a href="https://apify.com/sleepmodesystems/jd-com-product-details-scraper">JD.com Product Details Scraper</a></td>
<td>🏪 <a href="https://apify.com/sleepmodesystems/jd-com-shop-scraper">JD.com Shop Scraper</a></td>
</tr>
</table>

> Want more Chinese marketplaces? [Taobao & Tmall Scraper](https://apify.com/sleepmodesystems/taobao-scraper) for Taobao and Tmall, [1688 Scraper](https://apify.com/sleepmodesystems/1688-scraper) for factory prices, [AliExpress Scraper](https://apify.com/sleepmodesystems/aliexpress-scraper) and [Alibaba Scraper](https://apify.com/sleepmodesystems/alibaba-scraper) for export, [Goofish Scraper](https://apify.com/sleepmodesystems/goofish-scraper) for second-hand (闲鱼).

### 🤖 AI agents and MCP

JD.com Scraper is a ready tool for AI agents through the [Apify MCP server](https://mcp.apify.com/). Add this server to Claude (desktop, web or Code), ChatGPT, Cursor or any MCP client:

```
https://mcp.apify.com/?tools=sleepmodesystems/jd-com-scraper
```

For a client that takes a JSON config:

```json
{
  "mcpServers": {
    "jd-com": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.apify.com/?tools=sleepmodesystems/jd-com-scraper"]
    }
  }
}
```

Then ask, for example:

- *"Find the 20 best-reviewed air conditioners on JD between ¥2,000 and ¥5,000 that JD ships itself."*
- *"What does JD SKU 100320690657 cost today, and is it in stock?"*
- *"List every laptop in Huawei's JD shop with its price and barcode."*

The video shows how to connect Apify to Claude with MCP:

https://www.youtube.com/watch?v=BKu8H91uCTg

#### Why agents should choose JD.com Scraper

- **Complete in one call.** The real price, barcode, every variant, stock, delivery and reviews for each product.
- **Fast enough for a chat.** 20 products in about 10 seconds; the run starts in about 0.1 seconds.
- **Keywords, links or shops.** Whatever the user pastes, with JD's own filters.
- **Errors an agent can act on.** SKU ids JD no longer has are listed in the summary with nothing charged.
- **Clear price.** $2.99 per 1,000 complete products, $0.99 for search fields only (FREE tier).

#### Quick reference for AI agents

- **Actor:** `sleepmodesystems/jd-com-scraper`
- **Does:** one dataset row per JD.com product from searches, product links or SKU ids, and shops, prices in Chinese yuan (CNY).
- **Smallest input:** `{"searchTerms": ["华为手机"], "maxItems": 20}`.
- **Each row has:** `skuId`, `url`, `title`, `price`, `brand`, `model`, `upc`, `stockState`, `deliveryPromise`, `variants`, `shopName`, `reviewCountText`, `goodRate`, `badges`, `position`.
- **Fields that can be `null`:** `upc`, `model`, `warranty` and `salesRank` where JD has none; with details off, every product page field.
- **The run summary** is the `SUMMARY` record in the run's key-value store: products, products with their product page, SKU ids not on JD, JD's own counts.

### ❓ Frequently Asked Questions

#### Do I need a JD account, a Chinese phone number or proxies?

No. The actor reads what any signed-out shopper sees and handles access to JD.com itself; there is nothing to set up.

#### Is the price the real one?

Yes. JD shows signed-out visitors a masked price on product pages (`6??8`); every row carries the price JD's own pages show. Checkout coupons are not included.

#### Is there an official JD.com product API?

JD's open platform is for its sellers and partners. This actor works as a product API: send search words, links or SKU ids to the Apify API and get the products back as JSON.

#### Can I search in English?

Yes. JD matches English words against its titles (`iphone 17`, `dyson v15`); Chinese words match the way JD shoppers search and usually give more results.

#### Can I get every product of a JD shop?

Yes, one row per product: Huawei's self-operated shop gave 537 products, where JD counts 512. A shop whose name other shops share comes with the products JD lists first on its pages. `jdCountPerShop` in the summary gives JD's own count.

#### Can I get review texts?

JD shows individual reviews only to signed-in shoppers, and this actor never logs in. Each row has what JD shows everyone: the review count, the good rate and, on searches and shops, the review tags.

#### How fast is it?

20 complete products in about 10 seconds, 100 in about 30 seconds, 200 search-only products in about 20 seconds. A run starts in about 0.1 seconds.

#### Can I schedule it and send results somewhere?

Yes. Use Apify Schedules, and an integration or webhook to send each run's dataset to Google Sheets, Make, Zapier, n8n, Slack, Notion or your database.

#### Can I use JD.com Scraper with the Apify API?

Yes. Any Apify client (JavaScript, Python, REST) can start the actor and read the dataset; the API tab of this actor has ready code.

#### Is it legal to scrape JD.com?

This actor reads product data JD.com shows publicly to anyone, without logging in. It collects no personal data about shoppers or reviewers. You are responsible for how you use the data, including JD's terms and any law that applies to you; see Apify's [guide to web scraping legality](https://blog.apify.com/is-web-scraping-legal/). JD.com Scraper is an independent tool by Sleep Mode Systems, not affiliated with, endorsed by or sponsored by JD.com; JD.com and 京东 are trademarks of their owner.

#### JD.com Scraper not working?

Write the run's link in the Issues tab of this actor, or to sleepmodesystems@proton.me; questions, a missing field or a custom pipeline on top of this data are welcome too. Did JD.com Scraper save you time? A review on its [Apify page](https://apify.com/sleepmodesystems/jd-com-scraper) takes a minute and helps other people find it. Thank you!

# Actor input Schema

## `searchTerms` (type: `array`):

Words to search on JD.com, Chinese or English, one per line: <code>华为手机</code>, <code>iphone 17</code>, <code>茅台</code>, <code>lego</code>. Each gives the products JD lists for it (华为手机: about 7,600), up to <b>Maximum products</b>. You can also paste a JD search link (<code>https://search.jd.com/Search?keyword=茅台</code>): its price range is kept. Up to 100 per run.

## `products` (type: `array`):

Product links copied from JD.com (<code>https://item.jd.com/100320690657.html</code>) or their SKU ids (<code>100320690657</code>), one per line. One complete row each, with the real price, review count, good rate and every product page field. Up to 10,000 per run.

## `shops` (type: `array`):

Shop links copied from JD.com (<code>https://mall.jd.com/index-1000004259.html</code>), brand stores (<code>https://huawei.jd.com</code>) or shop ids (<code>1000004259</code>): the shop's products in its own order, each complete. Up to 100 per run.

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

Products per search term and per shop. A product id or link always gives its row.

## `minPrice` (type: `integer`):

JD's own price filter, in yuan: <code>1000</code> keeps products from ¥1,000.

## `maxPrice` (type: `integer`):

JD's own price filter, in yuan: <code>3000</code> keeps products up to ¥3,000.

## `jdLogisticsOnly` (type: `boolean`):

Only products JD ships itself, as JD's own filter.

## `subsidyOnly` (type: `boolean`):

Only products eligible for China's national trade-in subsidy, as JD's own filter.

## `details` (type: `boolean`):

On (default): each product's page too: brand, model, barcode (UPC), every variant SKU, stock and quantity, delivery promise, shipping, returns, warranty, services, sales rank, size, weight, VAT and photos. Off: search and shop list fields only (price, shop, review count, good rate, badges) at the lower price, for large price sweeps. Products by link or SKU id always come complete.

## `minItems` (type: `integer`):

Fail the run when fewer products come back (for monitoring). 0 = never fail for a small result.

## Actor input object example

```json
{
  "searchTerms": [
    "华为手机"
  ],
  "maxItems": 50,
  "jdLogisticsOnly": false,
  "subsidyOnly": false,
  "details": true,
  "minItems": 0
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "searchTerms": [
        "华为手机"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("sleepmodesystems/jd-com-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 = {
    "searchTerms": ["华为手机"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("sleepmodesystems/jd-com-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 '{
  "searchTerms": [
    "华为手机"
  ],
  "maxItems": 50
}' |
apify call sleepmodesystems/jd-com-scraper --silent --output-dataset

```

## MCP server setup

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