# JD.com Products Scraper (`fetch_cat/jd-com-products-scraper`) Actor

Export JD.com product details and public prices by SKU or URL. Get brands, models, shops, images and variants, with truthful masked-price status.

- **URL**: https://apify.com/fetch_cat/jd-com-products-scraper.md
- **Developed by:** [Fetch Cat](https://apify.com/fetch_cat) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 85.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.94 / 1,000 products

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

Discover JD.com products by keyword or public shop catalog, or refresh a known SKU watchlist. Export deduplicated products, publicly visible CNY prices, review labels, shop information and optional product details for comparison in a spreadsheet or your application.

**Prices are not always public.** A product can have a masked or unavailable current price. This scraper never guesses hidden prices or substitutes a list price for a current price.

### Quick start

1. Add JD SKU numbers/product URLs, keywords, shop IDs or supported search/shop URLs.
2. Start with a small sample and choose **Include product details** for richer output, or switch it off for listing-only discovery.
3. Run the Actor, then open the dataset to compare product details and price availability.

```json
{
  "skuIds": [
    "100320716471",
    "100003604775"
  ],
  "maxItems": 2
}
```

Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.

https://youtu.be/1OW8gOqlZbY?t=25

### What you get

- **Product identity:** requested SKU, product title, brand, model and canonical product URL.
- **Catalog detail:** public images, selected size/color, related variants, barcodes and category identifiers when exposed.
- **Shop and delivery context:** public shop information, source-region stock code, delivery wording and warranty information.
- **Truthful prices:** an unmasked current price in CNY when verified for that exact SKU, a separate reference price when exposed, and explicit price availability.
- **Discovery and pagination:** keyword/search URLs and shop IDs/URLs, with actual source-page attribution and count-checked shop discovery completeness.
- **Public quality/offer signals:** rounded review labels, good-review percentages, review tags and source-rendered listing badges such as installment offers, when exposed.
- **Scoped enrichment:** named service offers and product ranks with their original scope, not invented site-wide sales counts.
- **Run diagnostics:** a summary explaining unavailable targets, filters, pagination end/cap conditions, skipped price lookups and run limits.

### Who is it for?

- **Ecommerce analysts** comparing a known assortment on JD.com.
- **Sellers and sourcing teams** refreshing product identity, variants and public price observations.
- **Data teams** matching JD SKUs with their own product catalog.

Price comparisons, historical tracking and alerts belong to your downstream workflow. This Actor collects one snapshot per run.

### Input settings

| Setting / API field | What to enter | Limits / default |
| --- | --- | --- |
| Product SKU numbers / `skuIds` | JD numeric SKU strings | Up to 100 entries |
| Public product URLs / `productUrls` | Desktop or mobile JD product-page URLs | Up to 100 entries |
| Keywords / `keywords` | Public JD product-search queries | Up to five, each 1–100 characters |
| Shop IDs / `shopIds` | Public numeric JD shop IDs | Up to three |
| Discovery URLs / `startUrls` | Supported product, keyword search or shop URLs | Up to ten |
| Maximum products / `maxItems` | Global saved-row limit after filtering/deduplication | Default 10; 1–100 with details, 1–300 without |
| Pages per source / `maxPages` | Pages per query/shop, not per run | 1–10, default 3 |
| Product details / `includeDetails` | Join mobile product details and one price lookup when necessary | Default true |
| CNY price range / `minPrice`, `maxPrice` | Inclusive verified current-price limits | Optional, nonnegative; min must not exceed max |

Provide at least one non-empty target input. Targets are combined and deduplicated before detail requests and billing. Supplied SKUs come first, followed by new keyword and shop candidates. Existing watchlist inputs keep their meanings: up to 100 distinct supplied SKUs; the watchlist is truncated to maxItems before extraction as before.

`startUrls` accepts `https://re.jd.com/search?keyword=iphone`, `https://search.jd.com/Search?keyword=iphone`, `https://mall.jd.com/index-1000082863.html`, and canonical HTTPS product pages on `item.jd.com` or `item.m.jd.com`. No other query parameters, arbitrary subdomains or remote lists are accepted. Combined source limits are five distinct keywords and three shops. No login, cookies or proxy settings are required.

With `includeDetails=false`, discovered rows contain listing information only. Supplied watchlist SKUs still need a product-page request for identity. Shop listings usually have no public numeric price; use details to attempt a price join. Either active price filter excludes unknown prices rather than treating them as zero. The output limit is not a promise of that many matching products.

For paginated keyword discovery with price filtering:

```json
{"keywords":["iphone"],"maxPages":4,"maxItems":100,"includeDetails":false,"minPrice":5000,"maxPrice":8000}
```

For a public shop catalog snapshot without detail fanout:

```json
{"shopIds":["1000082863"],"maxPages":3,"maxItems":300,"includeDetails":false}
```

Discovery retains at most 300 distinct candidates across the run. `RUN-SUMMARY.discovery` reports actual pages, source totals and stopping reasons. Shop `catalogComplete=true` means **discovery** reached the source's last page and distinct candidate counts matched; filtering, maxItems and event-budget limits may still reduce the saved dataset. A capped subset is never a whole catalog.

For a single public page, use this input recipe:

```json
{
  "productUrls": [
    "https://item.jd.com/100003604775.html"
  ],
  "maxItems": 1
}
```

### Output data

Each saved dataset row represents one source-verified product, whether supplied directly or discovered. This shortened **observed output example** comes from a public watchlist check on 27 October 2026. Prices may change.

```json
{
  "skuId": "100003604775",
  "title": "回力经典男女低帮帆布鞋春秋板鞋休闲鞋跑步情侣运动鞋391黑色42",
  "brand": "回力",
  "model": "WXY-391T",
  "currentPrice": 65,
  "currency": "CNY",
  "priceStatus": "observed",
  "priceSource": "jd-public-search",
  "url": "https://item.jd.com/100003604775.html"
}
```

| Fields | Meaning | Missing values |
| --- | --- | --- |
| `skuId`, `url`, `title` | Verified product identity | A row is not saved without verified identity |
| `brand`, `model`, `barcodes` | Public catalog identifiers | Null or an empty barcode list |
| `currentPrice`, `currency`, `priceStatus` | Public current price in CNY and `observed`, `masked` or `unavailable` status | Current price is null when not verified |
| `referencePrice` | Explicit reference/list price, not a current-price substitute | Null when absent |
| `priceSource`, `priceSourceUrl`, `scrapedAt` | Price evidence source and observation time | Price-source fields are null without a numeric price |
| `shopId`, `shopName`, `vendorId` | Public shop/vendor identifiers | Null when absent |
| `images`, `variants`, `selectedVariant` | Public image URLs, related SKU options and requested variant | Empty lists or nullable properties |
| `weightKg`, `dimensionsMm` | Public physical specifications | Null values for missing dimensions |
| `reviewCountText`, `goodRatePercent`, `reviewTags` | Displayed review label, positive-review percentage and public tags | Null/empty when not exposed; rounded text is never an exact count |
| `listingLabels`, `selfOperated` | Source-rendered listing offers/badges and explicit self-operated indicator | Empty/null when not exposed; advertised conditions are not checkout guarantees |
| `salesRanks`, `services` | Exact-product ranks with source scope, named public service offers/conditions | Empty arrays when absent |
| `discovery`, `detailOutcome` | Source mode, query/shop/page/URL and detail retrieval outcome | Watchlists have mode only; not-requested detail is explicit |
| `stockStateCode`, `availabilityRegionId`, `deliveryPromise`, `shippingDescription`, `warranty` | Raw source-region availability/delivery context | Null when absent |

The full dataset schema includes additional public brand, product-group and category identifiers. `RUN-SUMMARY` in the key-value store records request/output counts and a per-input outcome. An unavailable target produces no synthetic product row. Useful records from other targets are retained.

#### Download your results

Open your run's dataset, choose **Export** and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.

See [Apify's download and export guide](https://docs.apify.com/storage/dataset#apify-console) for the available formats and field options.

### Pricing

This Actor uses pay-per-event pricing. The **Actor start** event is charged when a run starts, even if it produces no products.

The **Product** event is charged for each verified product record saved. A useful product with a masked or unavailable price is still a product record. Unavailable targets without a saved product and summary/diagnostic entries do not incur a Product event.

`maxItems` bounds the product count. Set a platform maximum charge for an additional spending limit.

Per-product prices decrease from FREE through Bronze and Silver to Business. Gold, Platinum and Diamond share the same Business price. The FREE-tier product price and Actor start charge remain unchanged. The start charge is separate from product charges; tier discounts do not change which saved products are billed.

See the [live Pricing tab](https://apify.com/fetch_cat/jd-com-products-scraper/pricing) for currently effective rates and discounts.

### Tips for best results

- **Start with two or three SKUs.** Check that they are the products and variants you need before expanding the watchlist.
- **Compare matching identities.** Use `skuId` rather than titles to join snapshots across runs.
- **Check price status.** Keep null current prices out of numeric comparisons instead of treating them as zero.
- **Keep region context.** Delivery and stock wording describe the region selected by JD for the public response, not a delivery guarantee for your address.

### Limits and caveats

- **Bounded public discovery.** No 5,000-item or universal whole-shop guarantee. Keyword feeds can report inconsistent page counts; useful later pages are retained but completeness is not inferred. Individual review text, exact review totals, exact inventory quantities and undocumented order limits are not claimed.
- **Public prices only.** No member prices, customer accounts, login cookies, personalized coupons or purchase history are collected. Supplemental price lookups for unpriced details use the first search page and must contain the exact SKU; keyword-discovery prices may come from later verified pages. Other variants and generic recommendations are never substituted.
- **Availability varies.** Genuine no matches, removed/unavailable targets or zero filter matches succeed with a truthful summary. Useful mixed-batch rows survive. Blocking, parser defects and transport failures retain actionable diagnostics and fail the run; empty output alone never proves no matches. Essential storage, billing and input failures remain fatal.
- **Bounded runs.** Each run keeps up to 300 products, reads up to ten pages per keyword or shop and stops after three minutes. Page limits or the run’s overall processing budget can leave a partial result set; the run summary records the stopping reason and products already saved are retained. The independent three-minute safety deadline still fails rather than presenting incomplete extraction as complete. Customer spending caps and shorter platform timeouts stop gracefully with saved rows, a warning and `RUN-SUMMARY.limitStop`; allow at least 20 seconds for useful work. Start with a few sources before combining many sources with detailed product information.
- **No affiliation.** This is an independent tool, not an official JD.com API.

### Automation and integrations

#### Save your settings for next time

Once you have an input that works for you, [save it as an Apify task](https://docs.apify.com/actors/running/tasks). This keeps your settings together so you can use them again without filling in the form from scratch.

#### Run on a schedule

Need fresh results regularly? You can [schedule the Actor or a saved task](https://docs.apify.com/actors/running/schedules) to run at a time that suits you.

Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.

#### Send results to your other tools

Use **n8n, Make or Zapier** to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the [Apify integration guides](https://docs.apify.com/integrations) for your chosen tool.

For a custom connection, an [Apify webhook](https://docs.apify.com/integrations/webhooks) can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.

### API usage

Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.

The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its `defaultDatasetId` to fetch the results.

For setup instructions, see Apify's [JavaScript client guide](https://docs.apify.com/api/client/js), [Python client guide](https://docs.apify.com/api/client/python) and [Actor runs API reference](https://docs.apify.com/api/v2/acts-runs-post).

#### cURL

```bash
curl --request POST \
  'https://api.apify.com/v2/acts/fetch_cat~jd-com-products-scraper/runs?memory=256&timeout=210&maxTotalChargeUsd=0.02' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"skuIds":["100320716471","100003604775"],"maxItems":2}'
```

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/jd-com-products-scraper').call(
  {"skuIds":["100320716471","100003604775"],"maxItems":2},
  { memory: 256, timeout: 210, maxTotalChargeUsd: 0.02 },
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('fetch_cat/jd-com-products-scraper').call(
    run_input={"skuIds":["100320716471","100003604775"],"maxItems":2},
    memory_mbytes=256, timeout_secs=210, max_total_charge_usd=0.02,
)
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)
```

### MCP and AI agents

You can ask your AI assistant to collect data with **JD.com Products Scraper** and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.

Connect your assistant through the [Apify MCP server](https://mcp.apify.com/). MCP gives your assistant a way to find this scraper, run it and read the results. Follow the [official setup and sign-in guide](https://docs.apify.com/mcp) for your app.

#### Easier setup with an Apify plugin

If you use a supported coding assistant, the [official Apify plugin](https://docs.apify.com/agents/plugins) can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.

#### Use Apify AI in Console

Prefer to keep everything in Apify? Open [Apify AI in Console](https://docs.apify.com/account/apify-ai) and ask it to find Fetch Cat's **JD.com Products Scraper**. You can describe the data you want and ask questions about the results.

Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.

#### Choose your assistant

- **Claude and Claude Code (Anthropic):** [Apify setup guide](https://docs.apify.com/integrations/claude).
- **ChatGPT and Codex (OpenAI):** [Apify setup guides](https://docs.apify.com/integrations/openai).
- **Grok Bot (xAI):** [Apify plugin guide](https://docs.apify.com/integrations/grok-bot).
- **Gemini CLI (Google):** [MCP server setup guide](https://geminicli.com/docs/tools/mcp-server/). Use the server URL below with the HTTP configuration supported by Gemini CLI.

#### Connect just this scraper

To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=fetch_cat/jd-com-products-scraper"
    }
  }
}
```

Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.

#### Use Apify's general server

Already connected to the general Apify MCP server at `https://mcp.apify.com`? You can use it to find this scraper without adding another server. Ask your assistant to use **JD.com Products Scraper** by Fetch Cat, or give it the identifier `fetch_cat/jd-com-products-scraper`.

Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.

#### Example requests

- “Get the public details and current prices for JD products 100320716471 and 100003604775, then put the results in a comparison table.”
- “Collect the product at https://item.jd.com/100003604775.html and show me its selected size, color, shop and available images.”
- “Get fresh details for these three JD products: 100320716471, 100003604775 and 12417265. Separate verified prices from masked prices in your summary.”

Normal Apify charges apply. Check the [live Pricing tab](https://apify.com/fetch_cat/jd-com-products-scraper/pricing) before asking your assistant to run a larger batch.

### Pay with x402

If your AI agent has a funded wallet, it can pay for Apify usage through [x402](https://docs.apify.com/integrations/x402). This experimental option lets an agent use Apify without a conventional account.

[Apify AGI](https://agi.apify.com/) provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.

Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.

Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.

#### Other ways for agents to pay

Apify also supports **MPP** for prepaid access through AGI and **Skyfire** for eligible Actors. If your agent already uses one of these, see the [agentic payment guide](https://docs.apify.com/agents/payments) to choose the right setup.

### FAQ

#### Why is the current price null?

JD does not always expose a public current price. If the product page masks it and a public search has no matching priced SKU, the Actor keeps `currentPrice` null. A reference price is never substituted.

#### Does it require a JD account?

No. It uses anonymous public data and does not accept customer login credentials or cookies. Login-gated targets are reported as unavailable for this data lane.

#### Can it return every product found by a keyword?

It supports paginated keyword discovery, but not an unlimited or guaranteed full result set. Use `keywords` or a supported search URL, set `maxPages`, and inspect the summary's cap/end conditions. At most 300 candidates and 300 listing rows (100 with details) are supported.

#### Can I use it as a JD products API alternative?

You can run this scraper through Apify’s API and retrieve structured records. It is not an official JD API, and public source access and available fields can change.

#### Is price monitoring built in?

Each run returns a snapshot. Save your own snapshots and compare matching SKUs in your application to detect changes or send alerts.

### Related Actors

- [Amazon Products & Search Scraper](https://apify.com/fetch_cat/amazon-products-search-scraper) — Extract Amazon product search results, pricing, availability, sellers, ratings, and product details across marketplaces.
- [Ecommerce Product Page Scraper](https://apify.com/fetch_cat/ecommerce-product-page-scraper) — Extract product title, price, availability, SKU, UPC, images, ratings, and metadata from public ecommerce product URLs.
- [Google Shopping Results Scraper](https://apify.com/fetch_cat/google-shopping-results-scraper) — Export Google Shopping result cards with prices, merchants, ratings and visible shipping or sale signals. Search by keyword, country and language for product research.
- [AliExpress Products Scraper](https://apify.com/fetch_cat/aliexpress-products-scraper) — Scrape AliExpress search and category pages for product prices, ratings, sales signals, shipping details, and seller URLs.
- [eBay Marketplace Scraper](https://apify.com/fetch_cat/ebay-marketplace-scraper) — Export active eBay listings from keywords or public URLs across eight marketplaces, including prices, shipping, auctions, sellers, returns, images, and optional product details.

### Support and feedback

For custom additions or integrations, email <hello@fetchcat.dev>.

Found an error or have a feature request? [Open an issue](https://apify.com/fetch_cat/jd-com-products-scraper/issues) with the run URL, a non-sensitive input example and what you expected.

Need help sharing it? See [Apify’s guide to sharing a run when reporting an issue](https://docs.apify.com/account/collaboration/general-resource-access#automatically-sharing-runs-via-actor-issues). Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.

Tried this scraper? We'd love to hear how it worked for you. [Leave a review](https://apify.com/fetch_cat/jd-com-products-scraper/reviews) to help others choose the right tool and help us improve it. Your feedback means a lot to us.

Made with care for curious people, AI agents and the possibilities in data. ♥

# Changelog

This Actor's version history is a separate document: https://apify.com/fetch_cat/jd-com-products-scraper/changelog.md

# Actor input Schema

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

Enter up to 100 positive numeric JD SKU strings. Optional when another target input is provided; duplicates are removed.

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

Enter public HTTPS item.jd.com/ID.html or item.m.jd.com/product/ID.html URLs without query strings. Optional when another target input is provided. No remote lists or other websites are accepted.

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

Maximum saved products across all inputs. Detailed mode supports 1–100; listing mode (includeDetails=false) supports 1–300. Filtering may produce fewer rows; discovery retains at most 300 distinct candidates.

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

Up to five public JD search queries; paginated targeted results, not recommendations. Optional with other inputs.

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

Up to three numeric public JD shop IDs. Catalog completeness is reported only at source exhaustion with matching counts; caps can truncate it.

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

HTTPS re.jd.com/search?keyword=QUERY, search.jd.com/Search?keyword=QUERY, mall.jd.com/index-SHOPID.html or canonical product URLs. No other parameters, remote lists, login or arbitrary subdomains. Combined limit: five queries, three shops and 100 supplied SKUs.

## `maxPages` (type: `integer`):

1–10 pages per discovery source, default 3. A page cap or 300-candidate cap is not complete-catalog proof. Watchlists do not use this setting.

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

Default true joins public mobile details and, when needed, one exact-SKU price search. False uses listing fields for discoveries; supplied watchlist SKUs still need a detail request for identity. Listing-only shop prices may be unavailable. No review text or authentication.

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

Optional inclusive minimum verified current price. Products without a public numeric price are excluded when either price filter is active. Must not exceed maxPrice.

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

Optional inclusive maximum verified current price. Filters apply after price joins and do not guarantee maxItems matches.

## Actor input object example

```json
{
  "skuIds": [
    "100320716471",
    "100003604775"
  ],
  "maxItems": 2,
  "maxPages": 3,
  "includeDetails": true
}
```

# Actor output Schema

## `products` (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 = {
    "skuIds": [
        "100320716471",
        "100003604775"
    ],
    "maxItems": 2
};

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

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

```

## MCP server setup

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