# JD.com products & shop catalog scraper (`data_dino/jd-products-scraper`) Actor

Scrape JD.com (京东) product data — real CNY prices, shops, categories, variants and images — from JD's open search and mobile product pages. No login or captcha required.

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

## Pricing

from $2.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.

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 products & shop catalog scraper

Scrape product data from **JD.com (京东)** — one of the world's largest e-commerce
platforms — without an account, login, or captcha. This actor reads JD's open search
landing page (which carries the **real CNY price**) and each product's mobile page
(brand, category, variants, images), plus shop catalogs.

### What you get

One dataset item per product (SKU) with up to 72 fields:

- **Identity** — SKU id, product id, URLs, title, short title
- **Product** — brand, category (3-level), color/size, variant matrix
- **Seller** — shop id / name, vender id, self-operated / JD-supermarket flags
- **Price** — real CNY price (via the search surface), installment offers, promo tags,
  subsidies
- **Reviews** — review count, good-rate, review tags, selling points
- **Availability** — on-sale / in-stock status, shipping fee, free-shipping flag,
  services, return policy
- **Media** — main image, image gallery, rich-description images
- **Context** — search query, position, scraped-at timestamp

> **Note:** Some fields JD gates behind login are returned as `null` (e.g. UPC barcode,
> model number, weight/dimensions, stock quantity, delivery promise). The price on the
> product page itself is masked by JD; prices come from the search surface.

### Input

| Field | What it does |
|---|---|
| **keywords** | Search keywords, one per line. Each is scraped separately. |
| **startUrls** | JD product / search / shop URLs to scrape (ids are auto-extracted). |
| **productIds** | Specific JD SKU ids to fetch. |
| **shopIds** | JD shop ids whose catalogs you want scraped. |
| **maxItems** | Stop after this many products per source. |
| **minPrice / maxPrice** | Optional CNY price band for keyword searches. |
| **includeDetails** | Fetch each product's detail page (brand, category, variants, images). |
| **includeDescription** | Also pull the rich-description images. |
| **delay** | Seconds between requests. |

A run with no input scrapes the prefilled example keyword `华为手机` and returns up to
10 products.

### Output

Results are written to the **default dataset** — one item per product. Open them from
the run's **Output** tab or via the dataset API.

# Actor input Schema

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

JD search keywords, one per line. Each is scraped separately on JD's open search landing page (real CNY price included). Example: 华为手机, dyson, 茅台.

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

JD product (item.jd.com / item.m.jd.com), search (search.jd.com / re.jd.com) or shop (mall.jd.com) URLs to scrape. The relevant id is extracted from each URL.

## `productIds` (type: `array`):

JD SKU ids to fetch directly, e.g. 100320690657. Prices for bare ids are resolved through the search surface.

## `shopIds` (type: `array`):

JD shop (vender) ids whose catalog you want scraped, e.g. 1000004259.

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

Stop after this many products per keyword, URL or shop. A search page holds ~27 new products, so ask for more if you want a full page.

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

Lowest price kept by keyword searches. Leave empty for no lower bound.

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

Highest price kept by keyword searches. Leave empty for no upper bound.

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

Fetch each product's mobile page for brand, 3-level category, variant matrix and image gallery. Turning this off makes runs faster but returns fewer fields.

## `includeDescription` (type: `boolean`):

Also pull the rich-description images (750px) for each product. Slower; off by default.

## `delay` (type: `number`):

Pause between requests. Raise it only if JD starts challenging the session.

## Actor input object example

```json
{
  "keywords": [
    "华为手机"
  ],
  "startUrls": [],
  "productIds": [],
  "shopIds": [],
  "maxItems": 10,
  "minPrice": null,
  "maxPrice": null,
  "includeDetails": true,
  "includeDescription": false,
  "delay": 0.5
}
```

# Actor output Schema

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

All scraped JD products, one dataset item per SKU. Full row shape (72 fields) is documented in clients/jd-products/apify-output-schema.json.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/jd-products-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/jd-products-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 '{}' |
apify call data_dino/jd-products-scraper --silent --output-dataset

```

## MCP server setup

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