# JD.com Product Scraper (`mrdoe/jd-com-product-scraper`) Actor

Looks up JD.com products by SKU ID or product URL and returns title, brand, shop, category, images, and price when JD publishes it for that request - fast HTTP, no browser, no login required.

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

## Pricing

from $1.70 / 1,000 product result returneds

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

![JD.com product page - the real site this Actor reads product data from](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/jd-com-product-scraper--site.png)

![JD.com Product Scraper - look up products by SKU ID or link and get title, brand, shop, category, images and price](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/jd-com-product-scraper--hero.png)

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

JD.com Product Scraper looks up JD.com products by SKU ID or product URL and returns one clean row per product: title, brand, brand ID, category path, shop name, shop type, price (when JD.com publishes it for that request), weight, images and the product link. Give it a list of SKU IDs, a list of product URLs, or both, and it looks each one up directly - no search, no login, and it works without a proxy from most regions.

### Why use JD.com Product Scraper?

- Look up dozens of JD.com products in one run from SKU IDs or links.
- Clean structured rows for catalog building, price tracking, sourcing and spreadsheets.
- No account, cookies or login required.
- Works without a proxy from most regions.
- Accepts a mix of SKU IDs and product URLs (desktop or mobile) in the same run.

### What makes this different

Most JD.com tools need you to already have scraped the search page. This one works straight from a SKU ID or a link - paste what you have and get a structured record back, including brand, shop and category data that a basic page scrape usually misses.

### How it works

![JD.com Product Scraper workflow: your input, lookup engine, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/jd-com-product-scraper--how-it-works.png)

1. **Your input** - give one or more SKU IDs and/or product URLs.
2. **The Actor looks each one up** - every SKU is read directly, duplicates between your SKU IDs and URLs are merged, and invalid or removed SKUs are skipped.
3. **Your output** - one row per product with title, brand, shop, category, price and images.

### What data can you extract?

The dataset has 13 fields per row:

| Field       | Type   | Description                                                               |
| ----------- | ------ | -------------------------------------------------------------------------- |
| `skuId`     | string | The JD.com SKU ID that was looked up.                                     |
| `title`     | string | Product title.                                                            |
| `brand`     | string | Brand name.                                                               |
| `brandId`   | string | JD.com's internal brand ID.                                               |
| `category`  | array  | Category path as JD.com lists it, broadest to most specific.              |
| `shopName`  | string | The storefront selling this product.                                     |
| `shopType`  | string | Shop type, e.g. self-run or third-party marketplace.                      |
| `price`     | number | Price in CNY; `null` when JD.com masks the price for this kind of request. |
| `currency`  | string | Always `CNY`.                                                            |
| `weightKg`  | number | Shipping weight in kilograms, when JD.com publishes it.                   |
| `images`    | array  | Full-size product image URLs.                                            |
| `url`       | string | Desktop product page link.                                                |
| `mobileUrl` | string | Mobile product page link.                                                 |
| `scrapedAt` | string | When this row was collected (ISO 8601 UTC).                               |

### How to use JD.com Product Scraper

![JD.com Product Scraper input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/jd-com-product-scraper--input.png)

1. Open the Actor and go to the **Input** tab.
2. Add one or more **SKU IDs**, for example `100012043978`, and/or **Product URLs**.
3. Optionally set **Max results**.
4. Click **Start**. A default run finishes in well under a minute.
5. Open the **Output** tab, then download the dataset or connect it to your tools.

### Input Parameters

| Parameter            | Type    | Required | Default                   | Description                                                                                          |
| --------------------- | ------- | -------- | -------------------------- | ------------------------------------------------------------------------------------------------------ |
| `skuIds`              | array   | No       | `["100012043978"]`         | JD.com numeric SKU IDs to look up.                                                                    |
| `productUrls`         | array   | No       | `[]`                       | JD.com product page URLs (`item.jd.com` or `item.m.jd.com`) - the SKU ID is read from the URL itself. |
| `maxItems`            | integer | No       | `20`                       | Maximum number of products to look up in one run. Set `0` to look up every SKU ID/URL given.          |
| `proxyConfiguration`  | object  | No       | `{"useApifyProxy": false}` | Optional. This Actor works without a proxy from most regions - enable one only if runs start failing in your location. |

At least one SKU ID or product URL is required.

### Output Data

![JD.com Product Scraper dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/jd-com-product-scraper--output.png)

`price` and `weightKg` are numbers, or `null` when JD.com does not publish them for that request. `category` and `images` are arrays and may be empty.

![JD.com Product Scraper field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/jd-com-product-scraper--fields.png)

A real dataset item:

```json
{
    "skuId": "100012043978",
    "title": "贵州茅台酒 53度 500ml",
    "brand": "茅台",
    "brandId": "1673",
    "category": ["食品饮料", "酒类", "白酒"],
    "shopName": "茅台官方旗舰店",
    "shopType": "京东自营",
    "price": null,
    "currency": "CNY",
    "weightKg": 0.9,
    "images": ["https://img30.360buyimg.com/n0/jfs/..."],
    "url": "https://item.jd.com/100012043978.html",
    "mobileUrl": "https://item.m.jd.com/product/100012043978.html",
    "scrapedAt": "2026-11-12T08:00:00.000Z"
}
```

### Usage Examples

#### Look up a handful of known SKUs

```json
{
    "skuIds": ["100012043978", "100026667942"]
}
```

#### Look up from product links instead

```json
{
    "productUrls": ["https://item.jd.com/100012043978.html"]
}
```

#### Mix SKU IDs and links, raise the limit

```json
{
    "skuIds": ["100012043978"],
    "productUrls": ["https://item.m.jd.com/product/100026667942.html"],
    "maxItems": 100
}
```

### Tips for Best Results

- SKU IDs are the numeric ID in any JD.com product URL - both desktop and mobile links work.
- Mix SKU IDs and product URLs freely in the same run; duplicates are merged automatically.
- Price can come back `null` for some products on unauthenticated lookups - this is a real JD.com restriction, not a failed run.
- Raise Max results when looking up large batches.

### Known Limitations

- Only data JD.com publishes for an unauthenticated product-page request is returned.
- Price is sometimes masked by JD.com for this kind of request and comes back `null` - this happens on JD.com's side, not every time, and is not something this Actor can override.
- Removed or invalid SKUs are skipped, not reported as errors.
- Category and shop fields reflect what JD.com shows at lookup time.

### Integrations

Run it from the Apify API, on a schedule, or from a webhook. Send results straight to Google Sheets, Make, Zapier, Slack or your own database with Apify's built-in integrations.

### Export Formats

Download the dataset as JSON, CSV, Excel, XML, HTML table or RSS from the **Output** tab or the API.

### Frequently Asked Questions

#### How do I scrape a JD.com product?

Add its SKU ID or product URL to the input and run the Actor. You get back title, brand, shop, category, price and images in one row.

#### Where do I find a SKU ID?

It's the numeric ID in the product's URL, for example `100012043978` in `item.jd.com/100012043978.html`.

#### Why is price sometimes null?

JD.com masks price on some unauthenticated product-page requests. When that happens the row still has every other field; price is reported as `null` rather than guessed.

#### Do I need a proxy?

No, not from most regions. Add one only if your runs start failing.

#### Do I need an account or login?

No. The Actor reads public JD.com product pages and needs no account, cookies or API key.

#### Can I look up many SKUs at once?

Yes. Add as many SKU IDs or product URLs as you need and raise Max results.

#### How fresh is the data?

It is read live from JD.com on every run.

#### Am I charged for failed runs or empty results?

You are only charged for results that are actually written to the dataset.

#### Can I run it on a schedule?

Yes. Create a Task with your input and add a schedule in Apify Console.

### Support

Questions or a missing field? Open an issue from the **Issues** tab on this Actor's page and it will be looked at.

### Legal / Responsible Use

You are responsible for using the collected data in line with JD.com's terms and applicable law. The Actor is not affiliated with JD.com.

# Actor input Schema

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

JD.com numeric SKU IDs to look up, e.g. <code>100012043978</code>. Find these in a product's URL (the number right before <code>.html</code>).

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

JD.com product page URLs (<code>item.jd.com/...</code> or <code>item.m.jd.com/...</code>) - the SKU ID is read straight from the URL, so use this instead of SKU IDs when you only have links.

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

Stop after looking up this many products. Set 0 to look up every SKU ID / URL given.

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

This Actor reads a public JD.com page directly and works without a proxy from most regions - turn one on only if runs start failing from your location.

## Actor input object example

```json
{
  "skuIds": [
    "100012043978"
  ],
  "productUrls": [],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "skuIds": [
        "100012043978"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/jd-com-product-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 = {
    "skuIds": ["100012043978"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/jd-com-product-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 '{
  "skuIds": [
    "100012043978"
  ],
  "maxItems": 20
}' |
apify call mrdoe/jd-com-product-scraper --silent --output-dataset

```

## MCP server setup

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