# JD.com Scraper & API | EveryInfra (`blushing_parachute/everyinfra-jd-api`) Actor

Unofficial JD.com data via one Actor: search, product_detail, reviews, shop, product_price, skus, description_images. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-jd-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 23.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.80 / 1,000 search requests

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 Scraper & API | EveryInfra

Search JD.com items by keyword to obtain product details, public reviews, pricing, and shop catalogs.

Get one item with its numeric ID. Get every SKU of a product with `skus`, and its description images with `description_images`. An item identifier and a shop identifier are not interchangeable. Prices and availability are request-time observations, not personal checkout or settlement terms.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `search` | Look up JD.com products for a search phrase and get up to five results. Each result has price, sales and review figures as displayed, positive-rating share, shop and promotion tags. Pass the returned `item_id` to the detail, review or price actions. Order and coverage apply to one response, not the full catalog. | keyword | page, page_token | 5 (up to 30) | $0.0068 |
| `product_detail` | Get the full JD.com product record for one `item_id`. It includes brand, model, price and original price, stock state, variants, barcode, warranty and JD Logistics status. When `price_masked` is true, the displayed price is not exact. A null stock means not shown, not zero. | item_id | — | 1 | $0.0033 |
| `reviews` | Read up to 10 buyer reviews of a JD.com product per call, and page through for more. Get rating, follow-up review, variant bought, helpful votes, photos and the reviewer's PLUS status and purchase count. Nicknames appear as JD shows them, possibly partly masked. The batch is not a complete history and is not cleared for republishing. | item_id | page_token | 10 (up to 10) | $0.0688 |
| `shop` | Browse up to 24 products from one JD.com store, each with item ID, title, price, currency and availability. Pass the shop's numeric `shop_id` or its mall.jd.com link. The results do not prove the store's full inventory. | shop_id | page, page_token | 24 (up to 60) | $0.0400 |
| `product_price` | Check the current displayed price and availability of one JD.com product by `item_id`. If the product cannot be bought, you get the stated reason. This is a point-in-time reading, not a personal checkout price, member discount or settled amount. | item_id | — | 1 | $0.0033 |
| `skus` | List every SKU of a JD.com product from any one of its SKUs in `item_id`. You get one row per color, size or capacity, with price, stock state and purchase limit. The first row is the SKU you sent. `price` is what a signed-out buyer sees before checkout coupons. | item_id | — | 100 (up to 100) | $0.0033 |
| `description_images` | Get every image in the description section of a JD.com product, top to bottom. Each full-size link is numbered by `position`, and `image_count` holds the total. Pass any SKU of the product or a product link in `item_id`. The gallery stays in `product_detail`. A product without description images returns an empty result that is not charged. | item_id | — | all the source returns | $0.0033 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "search",
  "keyword": "\u534e\u4e3a\u624b\u673a"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `search`: `item_id`, `url`, `title`, `short_title`, `price`, `currency`, `sold_count`, `review_count`, `good_rate`, `shop_id`, `shop_name`, `shop_url`, `is_jd_self`, `promotion`, `sell_point`, `category_ids`, `image_url`, `platform`
- `product_detail`: `item_id`, `url`, `title`, `price`, `price_display`, `price_masked`, `currency`, `available`, `unavailable_reason`, `shop_id`, `shop_name`, `shop_url`, `category_id`, `category`, `stock`, `stock_state`, `color`, `size`, `weight`, `image_url`, `image_urls`, `is_jd_self`, `brand`, `model`, `original_price`, `upc`, `warranty`, `product_area`, `is_jd_express`, `variant_count`, `variants`, `platform`
- `reviews`: `id`, `item_id`, `text`, `review_append`, `rating`, `rating_scale`, `posted_at`, `color`, `size`, `useful_count`, `images`, `author_name`, `author_avatar_url`, `author_is_plus`, `buy_count`, `platform`, `next_page_token`
- `shop`: `item_id`, `url`, `title`, `price`, `currency`, `shop_id`, `shop_name`, `shop_url`, `image_url`, `available`, `platform`
- `product_price`: `item_id`, `url`, `price`, `currency`, `available`, `unavailable_reason`, `platform`
- `skus`: `item_id`, `url`, `product_id`, `is_requested`, `title`, `properties`, `color`, `size`, `price`, `currency`, `on_sale`, `in_stock`, `stock_state`, `stock`, `purchase_limit`, `delivery_promise`, `is_presale`, `is_government_subsidy`, `is_billion_subsidy`, `is_flash_sale`, `promo_tags`, `upc`, `brand`, `image_url`, `shop_id`, `shop_name`, `is_jd_self`, `variant_count`, `platform`
- `description_images`: `item_id`, `position`, `image_url`, `image_count`, `platform`

#### Field notes

- `item_id`: JD numeric product ID. From search results you can pass it straight to detail, reviews, or price calls.
- `short_title`: Short product title as JD returns it.
- `shop_id`: JD numeric shop ID.
- `shop_name`: Public shop name.
- `shop_url`: Public JD shop page.
- `good_rate`: Public positive-review percentage shown by JD.
- `price_display`: Price string exactly as shown on the JD page; may be masked by login or membership conditions.
- `price_masked`: Whether JD masked the price on the detail page. When true, do not treat price_display as the exact transaction price.
- `available`: Whether the item could be bought when it was read (product_detail, product_price and shop rows); false when out of stock, null when the page did not say.
- `unavailable_reason`: Public reason JD shows when an item is not sellable.
- `is_jd_self`: Whether this is a JD self-operated (JD.com retail) product.
- `image_urls`: Product gallery image URLs (cover included, in the order shown on the JD page). The singular image_url is the first of them. The long images in the product's description section are not here; get them with description_images.
- `image_url`: Image URL: in search, product_detail, shop and skus it is the product's main (cover) image; in description_images it is the description image of that row (the full-size https image on JD's image host).
- `position`: Position of this image in the description section, starting at 1 from the top of the page (description_images).
- `image_count`: How many description images this call returned for the product, the same on every row (description_images); a value larger than the rows you received means limit cut the list short.
- `is_jd_express`: Whether the item ships via JD Logistics.
- `promotion`: Promotion label from the product list.
- `sell_point`: Public selling points from the product list.
- `category_ids`: JD category ID path.
- `stock_state`: Public JD stock status code.
- `review_append`: Buyer's follow-up (appended) review text.
- `author_name`: Reviewer nickname, returned as JD shows it (JD may already partially mask it).
- `author_avatar_url`: Reviewer avatar URL.
- `author_is_plus`: Whether the reviewer is a JD PLUS member.
- `buy_count`: How many times the reviewer bought this item, as the page shows ('purchased N times').
- `brand`: Product brand.
- `model`: Product model number.
- `original_price`: List (original) price shown by JD; may differ from the promotional price. null when the page does not provide one.
- `upc`: Product barcode (UPC/EAN). null when the page does not provide one.
- `warranty`: Warranty terms, as written on the page.
- `product_area`: Place of origin.
- `variant_count`: Number of variants (SKUs). null when there are none or it is not provided. Every skus row carries the same value: when it is larger than the number of rows returned, limit cut the list short or some SKUs were not retrieved this time.
- `variants`: Variant list. Each entry carries name, SKU ID, price, stock, stock state, and image URL where available; null when there are none or it is not provided.
- `color`: This SKU's color (or finish) as shown on the JD page.
- `size`: This SKU's size, capacity or specification value as shown on the JD page.
- `stock`: Stock quantity JD shows publicly; null means the page did not give one, not zero.
- `product_id`: JD product group ID shared by every SKU of the product (skus). It is not a SKU: do not pass it as item_id to detail, reviews or price calls.
- `is_requested`: Whether this row is the SKU named in the request (skus); the product's other SKUs are false.
- `properties`: This SKU's sale attributes as attribute name → value, in JD's own wording, which is usually Chinese (for example the color and the storage capacity of that SKU) (skus).
- `on_sale`: Whether this SKU is listed for sale (skus). Listed is not the same as in stock: read in_stock and stock_state for that.
- `in_stock`: Whether this SKU can be ordered for immediate delivery (skus). Pre-order and reservation SKUs are false; see stock_state.
- `purchase_limit`: Maximum quantity per buyer; null means the page states no limit (skus).
- `delivery_promise`: Delivery or shipping promise as JD words it, such as an expected ship-by date (skus); given for JD's default region when signed out and may differ by region.
- `is_presale`: Whether the product is on presale (skus).
- `is_government_subsidy`: Whether JD marks this SKU with a national government subsidy (skus); the mark alone does not say whether price already deducts the subsidy. null means the mark was not obtained this time.
- `is_billion_subsidy`: Whether JD marks this SKU as part of its Billion Subsidy program (skus); null means the mark was not obtained this time.
- `is_flash_sale`: Whether this SKU is in a flash sale (skus); null means the mark was not obtained this time.
- `promo_tags`: Promotion labels JD shows for this SKU, in JD's wording (skus); null when there are none or they were not obtained.
- `category_id`: JD leaf category ID of the product (product_detail).
- `sold_count`: Sales figure as shown in search results (search): display text such as 100k+, not an exact unit count.
- `review_count`: Review count as shown in search results (search): display text that may be rounded, not an exact count.
- `weight`: Product weight as written on the JD page (product_detail); null when the page gives none.
- `next_page_token`: Page token: pass it back unchanged as `page_token`, with the other parameters the same, to fetch the next page; valid for 24 hours and only for the same product. Every row of a page carries the same value, which also appears at the top level of the response. Absent on the last page; with `limit` below 10 a page can hold fewer than `limit` reviews, so only this field's absence marks the end.
- `useful_count`: How many other shoppers marked this review as useful (reviews).

### Pricing

Pay per event, charged only when a run delivers data:

- `search`: $0.0068, one event per started block of 5 results.
- `product_detail`: $0.0033, one event per non-empty request, whatever the row count.
- `reviews`: $0.0688, one event per non-empty request, whatever the row count.
- `shop`: $0.0400, one event per started block of 24 results.
- `product_price`: $0.0033, one event per non-empty request, whatever the row count.
- `skus`: $0.0033, one event per non-empty request, whatever the row count.
- `description_images`: $0.0033, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by JD.com or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `keyword` (type: `string`):

Used by `search` (required). Specifies the search query for JD.com `search`. This must be a search phrase, not an item ID or shop selector, and matching results do not imply exhaustive catalog coverage.

## `page` (type: `integer`):

Used by `search`, `shop`. Page number of the results, an integer; leave it out or send 1 for the first page. It runs from 1 to 150 ÷ `limit`, rounded up: 1–5 at `limit` 30, 1–30 at the default `limit` 5, 1–15 at `limit` 10. With `page`, the page size is the `limit` of this request (1–30). Every page is billed at the price of page 1, tiered by the rows on that page alone, one call per 5 rows: at `limit` 30 a page of 30 rows is 6 calls, at `limit` 5 a page is 1 call. Asking for `page` N directly bills N pages, the same as paging from page 1 to page N (the N − 1 pages before it as full pages, plus page N itself): `limit` 30 with `page` 5 is 30 calls in one request. Blocks for rows of page N that did not come back are refunded, and nothing is charged for the request if page N is empty (for example, the list is not that long). A `page` that is out of range, 0, negative, fractional, a string such as "2" or a boolean is rejected with 422 before charging. A sync call reaches the deepest page, row 150; you do not need `"mode": "async"`. The deepest page (page 5 at `limit` 30) has no `next_page_token` and `pagination.stop_reason` is `depth_limit`; a list that is simply shorter ends with `end_of_list`. Page 1 is fetched fresh on every request. From page 2 on, rows are cut in order from one saved full list (up to 150 rows), and when you first ask for page 2 or later that list is at most one hour old. A page requested with `page` is cut from that list by its original position (page N is the `limit` rows starting at row (N − 1) × `limit` + 1); it does not know what the page 1 you got earlier looked like, so between a separately fetched page 1 and it, or between pages requested across an hour boundary, a few products can repeat or be missing: dedupe by `item_id` when merging. To read the whole list with no repeats, start at page 1 and follow `next_page_token`. `pagination.page` is the page number of this page, and `pagination.has_more` true means there is a next page: ask for `page` + 1, or pass `next_page_token` back as `page_token`. When both `page` and `page_token` are sent, `page_token` wins. A page requested with `page` also returns a `next_page_token`; the next call can use it with or without `page`.

## `page_token` (type: `string`):

Leave empty for the first page. To continue, copy next_page_token from the previous run's OUTPUT.

## `item_id` (type: `string`):

Used by `product_detail` (required), `reviews` (required), `product_price` (required), `skus` (required), `description_images` (required). Identifies one JD.com product for `product_detail`, `reviews`, or `product_price`. Pass the digit string returned by `search` or the canonical legacy URL `https://item.jd.com/<digits>.html` without a query or fragment; arbitrary, opaque, or cross-host URLs are not accepted as equivalent item identifiers.

## `shop_id` (type: `string`):

Used by `shop` (required). Identifies the shop used by the `shop` action. Pass a digit string or the canonical legacy URL `https://mall.jd.com/index-<digits>.html` without a query or fragment; cross-host URLs are rejected, and this selector does not accept a product `item_id`.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `search` 5 (max 30); `reviews` 10 (max 10); `shop` 24 (max 60); `skus` 100 (max 100). Billing: `search` one event per started block of 5 results; `reviews` one event per non-empty request, whatever the row count; `shop` one event per started block of 24 results; `skus` one event per non-empty request, whatever the row count.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "search",
  "keyword": "华为手机"
}
```

# Actor output Schema

## `records` (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 = {
    "keyword": "华为手机"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-jd-api").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 = { "keyword": "华为手机" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-jd-api").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 '{
  "keyword": "华为手机"
}' |
apify call blushing_parachute/everyinfra-jd-api --silent --output-dataset

```

## MCP server setup

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

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/0Bm0Rp9ibs1zb55hc/builds/oXkReN6J9g7JzDjIg/openapi.json
