{
  "openapi": "3.0.1",
  "info": {
    "title": "JD Products Scraper | JD.com Prices, Brands and Barcodes",
    "description": "JD.com (京东) products scraper: search 京东商品 by keyword, shop page or SKU id and get the real CNY price, brand, model, UPC barcode, shop, review count and good rate, variants, stock and delivery promise. No JD account needed, export to CSV, Excel or JSON.",
    "version": "0.1",
    "x-build-id": "DTUjjgzOwf7nPeS6r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aimen_ch~jd-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aimen_ch-jd-products-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/aimen_ch~jd-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-aimen_ch-jd-products-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/aimen_ch~jd-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-aimen_ch-jd-products-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "What to search on JD.com, one search per line, in Chinese or English: 华为手机, iphone 17, lego, 奶粉. Chinese words match the way JD shoppers search and give the widest results. A JD SKU number typed here is read as a product id.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 JD addresses",
            "type": "array",
            "description": "Or paste addresses copied from JD: a product page (https://item.jd.com/100320690657.html, https://item.m.jd.com/product/100320690657.html, https://npcitem.jd.hk/…) gives that product; a search page (https://search.jd.com/Search?keyword=茅台, https://re.jd.com/search?keyword=lego) gives its results, keeping the price range of the address; a shop page (https://mall.jd.com/index-1000004259.html, https://shop.m.jd.com/shop/home?shopId=1000004259, a brand domain such as https://huawei.jd.com/) gives the shop's catalog.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "productIds": {
            "title": "🏷️ Product SKU ids",
            "type": "array",
            "description": "Or give JD product SKU ids, one per line: the number in a product address (100320690657 in item.jd.com/100320690657.html), the same as the id column of the results. Each id gives one row.",
            "items": {
              "type": "string"
            }
          },
          "shopIds": {
            "title": "🏬 Shop ids",
            "type": "array",
            "description": "Or give JD shop ids, one per line, to get each shop's catalog: the number in a shop address (1000004259 in mall.jd.com/index-1000004259.html), the same as the shopId column of the results. The cap below applies to each shop.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max products per search or shop",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many products to save for each keyword, search address or shop. A product id or product address always gives one row. Up to 5,000 per search or shop.",
            "default": 50
          },
          "minPrice": {
            "title": "💰 Min price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price to keep, in yuan, for keyword searches and shops. Leave empty for no floor."
          },
          "maxPrice": {
            "title": "💰 Max price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price to keep, in yuan, for keyword searches and shops. Leave empty for no ceiling."
          },
          "includeDetails": {
            "title": "📦 Product page details",
            "type": "boolean",
            "description": "Open each search result's product page to add the brand, model, UPC barcode, color and size, all variants, photos, stock, delivery promise, shipping fee, return policy, warranty, service guarantees, sales rank, size and weight. Turn off for the price, shop and review fields only: faster. Products asked for by SKU id or found on a shop page always open their product page.",
            "default": true
          },
          "selfOperatedOnly": {
            "title": "🧹 JD self-operated only (京东自营)",
            "type": "boolean",
            "description": "Keep only products sold and shipped by JD itself. Applies to keyword searches and shops; SKU ids are always returned.",
            "default": false
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Keep only these brands: a brand id (8557, the brandId column) or part of the brand name as JD writes it (华为, HUAWEI, apple).",
            "items": {
              "type": "string"
            }
          },
          "includeShops": {
            "title": "Only these shops",
            "type": "array",
            "description": "Keep only products of these shops: a shop id (1000004259) or part of the shop name (旗舰店, 华为京东自营).",
            "items": {
              "type": "string"
            }
          },
          "excludeShops": {
            "title": "Not these shops",
            "type": "array",
            "description": "Drop products of these shops: a shop id or part of the shop name (二手, 专营店).",
            "items": {
              "type": "string"
            }
          },
          "minReviews": {
            "title": "Min reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products with at least this many reviews (JD's rounded count: 5万+ counts as 50,000)."
          },
          "minGoodRate": {
            "title": "Min good rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only products whose good rate is at least this (98 keeps 98% and up)."
          },
          "billionSubsidyOnly": {
            "title": "百亿补贴 only",
            "type": "boolean",
            "description": "Keep only products in JD's billion-yuan subsidy program.",
            "default": false
          },
          "interestFreeOnly": {
            "title": "Interest-free installments only",
            "type": "boolean",
            "description": "Keep only products JD offers with interest-free installments (免息).",
            "default": false
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products in stock or available to order. Needs the product page, so it turns product page details on.",
            "default": false
          },
          "withBarcodeOnly": {
            "title": "With barcode only",
            "type": "boolean",
            "description": "Keep only products with a UPC/EAN barcode, for catalogue matching. Needs the product page.",
            "default": false
          },
          "governmentSubsidyOnly": {
            "title": "国补 only",
            "type": "boolean",
            "description": "Keep only products eligible for China's national trade-in subsidy (国补). Needs the product page.",
            "default": false
          },
          "trackChanges": {
            "title": "📈 Track price changes",
            "type": "boolean",
            "description": "Remember each product's price between runs and add previousPrice, priceChange, priceChangePercent, isNew and firstSeenAt to every row. Schedule the same input daily to follow prices.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only new and repriced products",
            "type": "boolean",
            "description": "With tracking: save only products new since the last run or whose price changed. Unchanged products are not saved and not charged. Max products still counts every product checked.",
            "default": false
          },
          "trackingStoreName": {
            "title": "Tracking store name",
            "type": "string",
            "description": "Name of the key-value store in your account that keeps the price history. Use one name per schedule you track.",
            "default": "jd-price-history"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave empty: search and shop pages go direct and move up to Apify datacenter, then residential proxy, only when JD blocks them; product pages always use Apify residential proxy, because JD blocks datacenter IPs on them. Set a proxy to use it for every request."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of JD pages fetched in parallel. Each page mostly waits on the proxy, so more in parallel is faster and cheaper; lower it only if JD starts blocking. 50 needs the default 4 GB of memory (more memory gives the run more CPU).",
            "default": 50
          },
          "qualityCheck": {
            "title": "Quality check (monitoring)",
            "type": "object",
            "description": "For monitoring runs: the run fails when its data falls below these thresholds, so a scheduled run alerts you when JD changes. Keys: minRows, minPricedShare (0–1), minDetailedShare (0–1), minFieldsFilled (fields filled on half the rows). Pages with an unknown layout always fail the check. Leave empty for normal runs."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}