# JD.com Product Scraper — Bulk SKU & URL Details (`bakos_bence/jd-com-products`) Actor

Scrape JD.com product pages by SKU or URL — titles, prices when exposed, images, shop metadata. Unofficial — not affiliated with JD.com.

- **URL**: https://apify.com/bakos\_bence/jd-com-products.md
- **Developed by:** [Bakos Bence](https://apify.com/bakos_bence) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### What does JD.com Product Scraper do?

**Output:** every row has **`name`** and **`source`**. **`price`** is filled whenever a public source exposes it (mobile SSR, then gwdang history/same-SKU, then JD price API). Unpriced products are still emitted — no skip filter.

**Unofficial.** This Actor is **not affiliated with, endorsed by, or maintained by JD.com / Jingdong**. It reads **public** product pages only — no login, no account cookies.

**Dashboards:** connect **Power BI**, **Tableau**, **Looker Studio**, or **Qlik** to the dataset API — see *Export to Power BI, Tableau, Looker Studio & Qlik* near the end. **AI agents:** paste this Actor’s Store page URL into an Apify-capable agent (MCP / Claude / Cursor with Apify), create an Apify account and API token once, and the agent can run the Actor and wire up the output.

**Related:** [Shopify Products Scraper](https://apify.com/bakos_bence/shopify-products-scraper) · [eMAG Product Scraper](https://apify.com/bakos_bence/emag-products)

#### Why use this JD.com scraper?

- ⚡ **Fast HTTP** path (`curl_cffi` TLS impersonation) — no headless browser
- 📦 Bulk SKU lists + `item.jd.com` / mobile product URLs
- 🔑 Input aliases (`skuIds` / `skus`, `startUrls` / `productUrls`) — clone-compatible with `piotrv1001/jd-com-product-scraper` and `automation-lab/jd-com-product-scraper`
- 💴 Prices kept **with currency (CNY)** when the public page exposes them
- 🖼️ Full image gallery URLs normalized to JD CDN

#### What data can you extract?

Public product fields from JD mobile product HTML: SKU ID, title, brand / brand ID, shop ID / name, vendor ID, category IDs, main image + gallery, product area, weight, SKU status, desktop + mobile URLs, scrape timestamp. Live list/sale prices appear only when JD embeds them in the public HTML for that request (geo / session dependent).

#### Use cases

- Catalog enrichment from known JD SKU lists
- Assortment / brand tracking on JD.com
- Competitor product snapshots for China retail research
- Image + metadata feeds for matching pipelines

#### How to scrape JD.com products

1. Open this Actor in [Apify Console](https://console.apify.com/).
2. Click **Start** on the prefilled SKUs (`maxItems` 2). Keep **Residential + JP** proxy.
3. Or paste your own SKU IDs / `https://item.jd.com/{sku}.html` URLs.
4. Export JSON/CSV from the dataset, or open the **Issues** tab on this Store page if a run fails.

```json
{
  "skuIds": ["100012043978", "100026667942"],
  "maxItems": 2,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "JP"
  }
}
```

#### Sample output

```json
{
  "skuId": "100012043978",
  "title": "茅台飞天 53%vol 500ml 贵州茅台酒（带杯）【需预约购买】",
  "shortTitle": "【酒厂直供】茅台飞天53度单瓶装",
  "brand": "茅台",
  "shopName": "贵州茅台",
  "shopType": "KA店铺",
  "price": 1041.0,
  "currency": "CNY",
  "barcode": "6902952880294",
  "sellPoint": "荣耀传承|国货匠心",
  "variantCount": 16,
  "stockStateLabel": "in_stock",
  "stockQuantity": 125,
  "deliveryPromise": "18:00前付款，预计明天(09月01日)送达",
  "weightKg": 1.1,
  "url": "https://item.jd.com/100012043978.html",
  "mobileUrl": "https://item.m.jd.com/product/100012043978.html",
  "source": "jd.com"
}
```

#### Input

| Field | Required | Description |
|-------|----------|-------------|
| `skuIds` / `skus` | one of | Numeric JD SKU IDs |
| `startUrls` / `productUrls` | one of | `item.jd.com` or mobile product URLs |
| `maxItems` | no | Cap rows (prefill 2) |
| `maxRetries` | no | Per-SKU retries (default 3) |
| `proxyConfiguration` | recommended | Residential JP on Apify |
| `expandRelated` | no | Follow related SKUs until `maxItems` |
| `enrichComments` | no | Best-effort public comment aggregates (often blocked) |
| `enrichAggregator` | no | Public 购物党 APIs → `priceCompare` (brand/class + cross-offers) |

#### Pricing

See the **Pricing** tab on this Actor’s Store page (Free vs paid plans differ). Platform usage is configured separately in Console monetization.

#### Limitations

- Desktop `item.jd.com` pages are often JS shells; this Actor uses **mobile product HTML**, which carries the product JSON.
- **Real-time price** microservices are frequently blocked for proxy traffic. When price is not in the public HTML, `price` is `null` — we do **not** bypass login or inject account cookies.
- Aggressive concurrency without residential proxies can trigger JD risk control (local datacenter IPs often get a ~2.7KB verify shell). On Apify **Residential JP**, stress tests held **0 challenges** through **concurrency 24** (~2.5 products/s for 60 SKUs). Prefer `maxConcurrency` **12–24**; drop to **6–8** if `challenges` in OUTPUT.stats rises.
- `expandRelated` only grows within the SKU neighborhood found in product HTML — it is not a full-catalog crawler.
- Review **bodies** / author profiles are never scraped (PII). Optional `enrichComments` tries public count/rate JSON only; club APIs often return busy/blocked.
- Graphic description HTML, live coupon lists, and Q\&A are usually lazy API modules — not in mobile SSR; left null when absent.
- Optional `enrichAggregator` uses public **购物党 (gwdang)** browser endpoints (`brwext/prepare`, `brwext/dp_query_latest`) for brand/class labels and cross-offer prices. Price-history (`tip_new`) is often rate-limited.

#### Legal

Public product facts only. No personal data of natural persons. No login / paywall bypass. Not affiliated with JD.com.

#### Export to Power BI, Tableau, Looker Studio & Qlik

Use the run’s **dataset items API** URL as a web data source in your BI tool. Authenticate with your Apify API token. Schedule the Actor, then refresh the dataset in the BI tool on the same cadence.

# Actor input Schema

## `skuIds` (type: `array`):

Numeric JD product SKU IDs (e.g. 100012043978). Each is fetched as https://item.m.jd.com/product/{sku}.html.

## `skus` (type: `array`):

Alias of skuIds for drop-in compatibility with other JD Actors.

## `startUrls` (type: `array`):

Direct JD item URLs such as https://item.jd.com/100012043978.html or mobile product URLs.

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

Alias of startUrls for drop-in compatibility.

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

Cap how many products to save this run. Keep low for tests.

## `maxRetries` (type: `integer`):

HTTP/parse retries per product before counting it failed.

## `requestDelayMs` (type: `integer`):

Optional pause between SKUs. When >0, concurrency is forced to 1.

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

Parallel product fetches (1–40). Stress-tested to 24 on Residential JP with 0 challenges — sweet spot ~16–24. Drop to 6–8 if OUTPUT.stats.challenges rises.

## `expandRelated` (type: `boolean`):

Follow same-product variant SKUs from newColorSize until maxItems. Does not harvest unrelated page SKUs.

## `enrichComments` (type: `boolean`):

Best-effort public comment aggregates (counts / good-rate). Never fetches review author texts. Often blocked by JD — leaves commentSummary null when unavailable.

## `enrichAggregator` (type: `boolean`):

Call public 购物党 (gwdang) browser APIs for brand/class + price fallbacks when SSR omits price. Adds priceCompare. Soft-fails if rate-limited. Default on.

## `proxyType` (type: `string`):

Use Apify Proxy on platform runs. none is for local experiments only.

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

Keep Residential + JP unless you have a working CN route.

## Actor input object example

```json
{
  "skuIds": [
    "100012043978",
    "100026667942"
  ],
  "maxItems": 2,
  "maxRetries": 3,
  "requestDelayMs": 0,
  "maxConcurrency": 8,
  "expandRelated": false,
  "enrichComments": false,
  "enrichAggregator": true,
  "proxyType": "apify",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "JP"
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Default dataset items.

# 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 = {
    "skuIds": [
        "100012043978",
        "100026667942"
    ],
    "maxItems": 2,
    "maxConcurrency": 8,
    "expandRelated": false,
    "enrichComments": false,
    "enrichAggregator": true,
    "proxyType": "apify",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "JP"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bakos_bence/jd-com-products").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 = {
    "skuIds": [
        "100012043978",
        "100026667942",
    ],
    "maxItems": 2,
    "maxConcurrency": 8,
    "expandRelated": False,
    "enrichComments": False,
    "enrichAggregator": True,
    "proxyType": "apify",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "JP",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bakos_bence/jd-com-products").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 '{
  "skuIds": [
    "100012043978",
    "100026667942"
  ],
  "maxItems": 2,
  "maxConcurrency": 8,
  "expandRelated": false,
  "enrichComments": false,
  "enrichAggregator": true,
  "proxyType": "apify",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "JP"
  }
}' |
apify call bakos_bence/jd-com-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bakos_bence/jd-com-products"
        }
    }
}

```

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/8c0T9am9bzaSm0NhX/builds/XvEZw7ZbHjIorbbRl/openapi.json
