# JD Products Scraper: Search, Prices, Shops | $0.438/1K (`architekture/jd-products-scraper`) Actor

JD product search with titles, CNY prices when shown, shops and review summaries. Public first-page results without login; optional own-session cookies for explicit detail and deeper search URLs, unverified. Pay per result: $0.438 per 1,000 products.

- **URL**: https://apify.com/architekture/jd-products-scraper.md
- **Developed by:** [architek.earth](https://apify.com/architekture) (community)
- **Categories:** E-commerce, Agents, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 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

## JD Products Scraper | $0.438 per 1,000

### What's new, 2026-11-18

Public desktop search returned **1,000 distinct products across 29 queries** in recorded run `QxaaXWQPNKNRqlRR1`. There were 994 numeric prices and six missing prices. **Without login:** first-page keyword search, usually up to 48 products per query, with titles, CNY prices when shown, shops and review summaries. **With your own session cookies:** you may supply explicit product-detail or deeper search URLs. Authenticated access is **unverified** because no test session was available. Cookies do not guarantee access or unlock automatic pagination.

A login, slider, verification screen or blocked response stops the run with one free status row. There are no wall retries, captcha services or shared accounts. Previously delivered products remain available; a blocked request adds no product charge.

architek.earth ([architekture](https://apify.com/architekture)) · code like concrete

### Tested this week

| Check | Recorded result |
|---|---|
| Public feasibility run | 1,000 unique IDs, 29 queries, 994 numeric prices, no login |
| Product runtime cost check | 1,000 rows across 40 queries in run `CNu6pdWnBrkM6COch`, $0.04637 cost; $0.438 customer charge |
| Leader's public 30-day health, 2026-11-18 | 0.1853% non-success across 65,830 runs; no ratings or open issues |
| Release requirement | Three successful paid volume checks at distinct UTC hours and a full 24-hour observation window before listing |

The leader's 30-day aggregate and our one recorded run are different samples. We do not claim better reliability. [Leader data](https://api.apify.com/v2/acts/silentflow~jd-products-scraper).

### Why choose this scraper?

Collect bounded daily keyword snapshots at $0.438 per 1,000 delivered products, compared with the checked leader's $2.19 primary product price. Each row has a stable product ID and a source URL. Missing prices remain null. Login and verification stops are explicit, free status rows.

### Worth knowing up front

- The public route is JD's desktop search HTML, not a mobile API. It returns the first page for each query. Requesting 1,000 does not create 1,000 results for one query.
- Search can include promoted or off-topic products. The unrelated recommendation module is excluded, but JD controls ranking.
- Supply several distinct queries for broader coverage. Duplicate IDs are removed within each input. A product appearing under two different queries can appear twice, with its query context.
- Detail URLs and exact deeper search URLs are optional, require your own cookies, and remain unverified. There is no automatic authenticated pagination, stock guarantee, barcode guarantee or whole-shop collection claim.
- Session cookies go only to approved JD HTTPS hosts. Redirects are not followed. The secret is removed from this run's saved input after loading and is never copied into logs, output or continuation state. Do not save it in a public task, repository or shared workflow. Supply it afresh when resuming an authenticated run.
- A preview gives up to 20 free products per run. Paid mode charges for delivered product rows, including rows with missing optional fields. Status rows are always free.

### Try the example

```json
{"keywords":["lego"],"maxResults":20,"preview":true}
```

Turn `preview` off to collect paid results. A 20-product paid run costs $0.00876. A 1,000-product collection costs $0.438. With the free preview off, **$5 free credit ≈ 11,415 rows** at the launch price. This is usage-credit arithmetic, not a separate subscription or a promise of available source results.

### Six input recipes

1. **Preview a product query:** `{"keywords":["lego"],"maxResults":20,"preview":true}`
2. **Daily phone prices:** `{"keywords":["华为手机","苹果手机"],"maxResults":48,"preview":false}`. Schedule `0 7 * * *` in UTC. Two full 48-row snapshots cost $0.042048 per day, about $1.26 for 30 days.
3. **Compare home-product searches:** `{"keywords":["冰箱","洗衣机","空调"],"maxResults":48,"preview":false}`.
4. **Find new product IDs:** `{"keywords":["lego"],"maxResults":48,"preview":false,"incrementalMode":true,"stateKey":"lego-new-products"}`. This finds new IDs, not price changes.
5. **Resume a bounded collection:** `{"keywords":["笔记本电脑","显示器"],"maxResults":48,"preview":false,"stateKey":"computers-weekly"}`. Repeat exactly these inputs and the same continuation name after a budget/time stop.
6. **Your own session for a detail URL, unverified:** `{"keywords":[],"startUrls":["https://item.m.jd.com/product/100320690657.html"],"maxResults":1,"preview":true}`. Enter your own Cookie header separately in the secret `cookies` field. No cookie value is included in this recipe.

Use these JSON inputs in [the input form](https://console.apify.com/actors/architekture~jd-products-scraper/input). Public example-task capacity is currently full; recipes are provided directly instead of links to nonexistent tasks.

### Input

| Field | Default | Meaning |
|---|---|---|
| keywords | `["lego"]` | Up to 50 search phrases; public first page each |
| startUrls | `[]` | Up to 100 exact JD product/search URLs; authenticated paths unverified |
| maxResults | `20` | Per-input cap, 1 to 1,000; does not unlock extra pages |
| preview | `true` | At most 20 free products across the whole run |
| cookies | empty, secret | Your own JD Cookie header; never a shared account |
| incrementalMode | `false` | Only IDs not previously delivered for this continuation name |
| stateKey | empty | Reuse exactly the same inputs to resume; not a credential |
| feedback | empty | Optional feedback; never include credentials |

### Stable output fields

Product rows: `recordType`, `productId`, `title`, `url`, `keyword`, `page`, `position`, `price`, `currency`, `shopId`, `shopName`, `reviewCountText`, `goodRate`, `brand`, `categoryIds`, `isSelfOperated`, `sourceUrl`, `route`, `scrapedAt`. Incremental rows also include `changeType: "new"`. Fields are add-only; optional values are null or empty arrays when JD does not provide them.

Free status rows: `recordType: "status"`, `inputRef`, `status`, `message`. Do not count them as products. The run summary contains delivered and charged counts, free status count, stop reason and source-request metrics. A successful process exit can still represent a clean login/block stop; inspect the status rows and summary.

### Output examples

```json
{"recordType":"product","productId":"100309589315","title":"HUAWEI Pura X View 12GB+512GB","price":6999,"currency":"CNY","url":"https://item.jd.com/100309589315.html","route":"public-search-html"}
```

```json
{"recordType":"status","inputRef":"lego","status":"LOGIN_OR_VERIFICATION_REQUIRED","message":"JD blocked this request; stopped without retry or charge"}
```

The product excerpt is shortened for readability; current source values can change.

### Advanced usage and recovery

Use the same nonempty `stateKey` to continue the same collection after a budget or deadline stop. The state is separated by the run's authenticated account and this scraper. Concurrent runs with the same name are refused. Delivered batches are journaled before charging. An uncertain write or charge stops for reconciliation rather than charging again. `incrementalMode` retains up to 20,000 delivered IDs per query; older IDs can eventually be delivered again.

Leave incremental mode off for price monitoring: it would hide previously seen product IDs. Cookies are excluded from state. Changing a cookie value does not change the collection identity, but switching between authenticated and unauthenticated mode requires a fresh continuation name. Do not run a collection under someone else's session.

### Integrations

For Claude and Cursor, add an MCP server entry using your client’s secure environment handling:

```json
{"mcpServers":{"jd-products":{"command":"npx","args":["-y","@apify/actors-mcp-server","--actors","architekture/jd-products-scraper"],"env":{"APIFY_TOKEN":"${APIFY_TOKEN}"}}}}
```

Client environment interpolation differs; use its secret setting rather than committing a token. Treat this configuration as integration guidance, not a separately tested client compatibility claim.

**n8n:** Schedule Trigger at `0 7 * * *`, HTTP Request POST to `https://api.apify.com/v2/acts/architekture~jd-products-scraper/runs`, Authorization `Bearer` from a saved credential, JSON body from recipe 2. Poll the returned run ID until terminal, then fetch its default dataset. Route status rows to an alert; product rows to your table. Polling failures must not start a duplicate run.

**Make:** Scheduler, HTTP POST with the same URL/body and a private credential, wait/poll the run, then GET the default dataset and iterate product rows. Filter `recordType == product`. No JD cookies are needed for recipe 2. Authenticated recipes should receive cookies from your own secure secret storage, never a public scenario.

### Pricing

| Event | Price | When charged |
|---|---:|---|
| product | $0.000438 each, $0.438/1,000 | After a product row is delivered in paid mode |
| Free preview | $0 | First 20 products per preview run |
| Status, login wall, slider, failed request | $0 | Never charged as products |
| Startup | $0 | No start event |

Launch price through 2026-12-31. A return price has not been approved and is not silently scheduled. Monitor your run spending limit; increasing it cannot bypass a JD login or verification wall.

### FAQ

1. **Do I need a login for keywords?** No on the verified public route. JD can change access, which is why canaries and explicit wall detection are required.
2. **Can one query return 1,000 products?** Not on the verified first-page route. The recorded 1,000 came from 29 queries.
3. **Why is a price null?** JD did not supply a numeric price. A masked amount such as `6??9` is never guessed.
4. **Does a login wall cost anything?** The wall adds one free status row and stops further collection. Already delivered paid products remain charged.
5. **Will you solve a slider?** No. There are no captcha services or automatic attempts to solve it.
6. **Whose cookies may I use?** Only your own JD login session. Do not use borrowed, purchased or shared accounts.
7. **Is authenticated access tested?** No. The optional input and extraction paths are implemented, but no real session was available to verify details or deeper pages.
8. **Where are cookies saved?** The input is secret and removed from this run's saved input after loading. The scraper does not log it or retain it in its continuation state. Your own task or automation may retain input if you choose to save it there.
9. **Are these all products in a shop?** No. No complete shop-catalog coverage is claimed.
10. **Why do unrelated products appear?** JD can rank promoted products among keyword results. The separate recommendation feed is excluded.
11. **Can I track price changes daily?** Yes, take repeat public snapshots with incremental mode off, then compare prices by product ID downstream.
12. **Does a successful run status mean data arrived?** Not necessarily. A clean login/block stop exits successfully with a free status row. Check delivered data counts and the run summary.

The checked leader had no open issues; these are product-guidance answers, not invented customer complaints.

### For AI agents

Start with `keywords`, `maxResults: 20`, and `preview: true`. Inspect `recordType` and the run summary before using results. Do not retry a login/verification stop in a loop, invent a missing price, infer deeper-page coverage, or supply credentials from another user. Use the input and output schemas as the contract. Paid collection requires an explicit budget and `preview: false`.

### More from architek.earth

[Google Shopping](https://apify.com/architekture/google-shopping-scraper) · [AliExpress search](https://apify.com/architekture/aliexpress-search-scraper) · [NZ grocery prices](https://apify.com/architekture/nz-grocery-prices-api)

architek.earth · code like concrete

### Support and legal

Report reproducible problems on this listing's issues tab with a run link and non-secret input. Never include cookies, passwords or tokens. Independent software, not affiliated with JD. Use data and your own account only where you have permission and comply with applicable terms and law.

### Changelog

- 2026-11-18, 0.1.1: Public first-page search, 20-row preview, paid delivery journaling, immediate free login/slider stops, optional ephemeral own-session input and explicit authenticated-access limits. Authenticated access remains unverified.
- 2026-11-18, 0.1.2: Recorded the 1,000-row runtime cost and documented the timed release requirement.
- 2026-11-18, 0.1.3: Clarified the change history; the release requires three successful paid checks over 24 hours.
- 2026-11-18, 0.1.4: The timed release checks exercise 1,000-row collections; daily health checks remain small.
- 2026-11-18, 0.1.5: Bound the timed evidence to the exact public query workload, with no login or saved continuation.

# Actor input Schema

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

First-page public search. Up to 50 phrases; usually up to 48 products each.

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

Optional exact HTTPS JD product or search URLs. Login-protected pages need your own cookies. Authenticated access is unverified.

## `maxResults` (type: `integer`):

Public pages usually contain at most 48; this setting does not unlock pagination.

## `preview` (type: `boolean`):

Up to 20 product rows per run, without charges. Turn off for paid results.

## `cookies` (type: `string`):

Cookie header value from your own JD login only. Never use shared accounts. Used only for JD HTTPS requests; no redirects. Removed from this run input after loading, never logged or saved in continuation state. Authenticated access is unverified.

## `incrementalMode` (type: `boolean`):

Requires stateKey. Filters already delivered IDs; it does not track price changes.

## `stateKey` (type: `string`):

Reuse with the same inputs to resume; not a credential.

## `feedback` (type: `string`):

Optional feedback; never include cookies or credentials.

## Actor input object example

```json
{
  "keywords": [
    "lego"
  ],
  "startUrls": [],
  "maxResults": 20,
  "preview": true,
  "incrementalMode": false,
  "stateKey": "",
  "feedback": ""
}
```

# 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 = {
    "keywords": [
        "lego"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("architekture/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 = { "keywords": ["lego"] }

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

```

## MCP server setup

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