{
  "openapi": "3.0.1",
  "info": {
    "title": "JD.com Products Scraper — Search by Keyword (京东)",
    "description": "Scrape JD.com (京东) products by keyword: title, price in CNY, shop, brand, categories, review count, good-review rate, image and links. No login. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "EBmM4cu9ebLTgxuFA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~jd-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-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/nice_dev~jd-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-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/nice_dev~jd-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-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": {
          "query": {
            "title": "Search keyword",
            "maxLength": 200,
            "type": "string",
            "description": "Keyword to search on JD.com, as you would type it in the search box. English words work (e.g. `laptop`), and so do Chinese ones (e.g. `手机` = mobile phone)."
          },
          "searchQueries": {
            "title": "More search keywords",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several keywords in one run: one search per keyword. Added to **Search keyword**; a product found by several searches is saved once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "JD.com search links",
            "maxItems": 100,
            "type": "array",
            "description": "JD.com search links, such as `https://search.jd.com/Search?keyword=laptop` or `https://so.m.jd.com/ware/search.action?keyword=laptop`. Only the keyword of each link is read: a sort, a filter or a page number set in the link is ignored (use the **Filters** below). The keyword is searched like one typed in **Search keyword**, and added to it. Product links (`item.jd.com/…`) and shop links (`mall.jd.com/…`) are not accepted: this Actor searches by keyword. Max 100 links.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of products to save for the whole run (after deduplication and filters). Results are read page by page: the run stops reading pages as soon as this number is reached. 0 = no limit.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max products per keyword",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for EACH keyword, so that the first keyword cannot use up the whole **Max products** budget. 0 = no per-keyword cap.",
            "default": 0
          },
          "maxPagesPerQuery": {
            "title": "Max pages per keyword",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Most result pages read for EACH keyword. One page holds up to 48 products (a product listed twice in a page is saved once), and every page read is charged, whatever the filters keep. 0 = no cap: the run reads pages until **Max products** is reached or the keyword has no more results.",
            "default": 0
          },
          "minPrice": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Only products from this price, in Chinese yuan (CNY). Products without a price are dropped."
          },
          "maxPrice": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Only products up to this price, in Chinese yuan (CNY). Empty or 0 = no maximum. Products without a price are dropped."
          },
          "shopIds": {
            "title": "Shop IDs",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Only products sold by one of these shops. A shop ID is the number in the `shopId` column of the results (e.g. `1000164941`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "shopNames": {
            "title": "Shop names",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Only products whose shop name CONTAINS one of these texts (case ignored), e.g. `华为` for every Huawei shop. Shop names are in Chinese.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryIds": {
            "title": "Category IDs",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Only products in one of these categories. A category ID is one of the 3 numbers in the `categoryIds` column of the results (top level, middle level, lowest level): a product matches when ANY of its three equals one of your IDs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brandIds": {
            "title": "Brand IDs",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Only products of one of these brands. A brand ID is the number in the `brandId` column of the results.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "jdSelfOperatedOnly": {
            "title": "Sold by JD only",
            "type": "boolean",
            "description": "Keep only the products sold and shipped by JD itself (京东自营, `isSelfOperated` = true), and drop those of third-party shops.",
            "default": false
          },
          "minGoodRate": {
            "title": "Min good-review rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only products whose share of positive reviews (`goodRate`) is at least this percentage, from 0 to 100. Products that show no rate (no review yet) are dropped."
          },
          "minReviewCount": {
            "title": "Min number of reviews",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only products with at least this many reviews. JD shows an approximate count (`500+`, `1万+`): the figure compared is the one in the `reviewCountMin` column (500, 10000). Products that show no count are dropped."
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Drop the products whose title contains one of these WHOLE words (case and accents ignored): `case` drops \"Phone case\" but keeps \"Showcase\". Several words in one entry (`power bank`) must appear together, in that order. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the title (no spaces there), e.g. `手机壳` drops every title containing it.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postedAfter": {
            "title": "Listed after",
            "type": "string",
            "description": "Only products put on sale on or after this date (the `listedAt` column): `2026-09-01` (a day is read in Beijing time, UTC+8), or a period before now such as `7 days`, `2 weeks`, `1 month` (API: `24 hours` and full ISO date-times work too). Products without a listing date are dropped."
          },
          "postedBefore": {
            "title": "Listed before",
            "type": "string",
            "description": "Only products put on sale on or before this date (a day is read in Beijing time, UTC+8; the `listedAt` column; the whole day is included), or older than a period such as `30 days`."
          },
          "onlyNew": {
            "title": "Only new products",
            "type": "boolean",
            "description": "Skip the products that a previous run (same **Memory key**) already delivered: they are not saved and not charged as products. The result pages that contain them are still read, and charged as pages. First run = everything is new.",
            "default": false
          },
          "stateKey": {
            "title": "Memory key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Name of the memory used by **Only new products**. Give each schedule / task its own key (e.g. `laptops-daily`) so that they do not share their memory. Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "resetState": {
            "title": "Reset the memory",
            "type": "boolean",
            "description": "Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every product again. Untick it afterwards.",
            "default": false
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries of a failed request before the page is given up.",
            "default": 5
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Include debug messages in the run log.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}