{
  "openapi": "3.0.1",
  "info": {
    "title": "JD Scraper: Prices, Stock & Barcodes, $0.99/1K",
    "description": "$0.99/1K JD.com (京东) products, $1.69 with the full product page, no start fee. 50 products with details in 9 s. No login. Keywords (Chinese or English), SKU links or shops: CNY and USD prices, stock by city, barcodes, variants, reviews, rank. Price-drop alerts, English, AI risk labels.",
    "version": "0.1",
    "x-build-id": "31XRN5IQ0JdX3Ja1J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~jd-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-jd-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/laptime~jd-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-jd-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/laptime~jd-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-jd-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": "Search keywords (关键词)",
            "type": "array",
            "description": "Words to search on JD.com, Chinese or English: <code>华为手机</code>, <code>iphone 17</code>, <code>戴森吹风机</code>. Products whose title has every word come first; accessories made for them (<code>isAccessory</code>) and loose matches follow, so nothing is lost. A JD search link works too (its price filter is kept); a 6-15 digit number is read as a SKU id.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product links or SKU ids (商品链接/SKU)",
            "type": "array",
            "description": "Optional. JD SKU ids (<code>100012043978</code>) or product links: item.jd.com, item.m.jd.com, JD Worldwide/HK (npcitem.jd.hk, item.jd.hk). One row each with the live price; an unknown or removed id gives a free status row.",
            "items": {
              "type": "string"
            }
          },
          "shopIds": {
            "title": "Shops (店铺)",
            "type": "array",
            "description": "Optional. A shop id (<code>1000004259</code>), a shop link (mall.jd.com/index-…, shop.m.jd.com), a brand domain (<code>https://huawei.jd.com/</code>) or the shop's exact name (<code>Apple产品京东自营旗舰店</code>): its products, best-known first. Tip: a brand's 京东自营 shop gives its official JD prices.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Any JD links (optional)",
            "type": "array",
            "description": "Optional. Paste JD links of any kind: product, search and shop pages are recognised automatically. Same as the three fields above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max products per keyword or shop (每个关键词最多)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Products saved per keyword, search link or shop: 1 to 5,000, 0 = all JD shows. SKU ids always give one row each. Default 20, a fast first run.",
            "default": 20
          },
          "includeDetails": {
            "title": "Product page details (商品详情)",
            "type": "boolean",
            "description": "On (default, +$0.70/1K): brand, model, UPC barcode, every variant, stock and quantity, delivery promise, returns, warranty, sales rank, size, weight and all photos. Off: price, shop and reviews only ($0.99/1K).",
            "default": true
          },
          "minPrice": {
            "title": "Min price ¥ (最低价)",
            "minimum": 0,
            "type": "number",
            "description": "Keep products from this price in yuan (¥). Applied to keywords and shops; JD filters the search itself, then every row is checked again."
          },
          "maxPrice": {
            "title": "Max price ¥ (最高价)",
            "minimum": 0,
            "type": "number",
            "description": "Keep products up to this price in yuan (¥). Applied to keywords and shops."
          },
          "selfOperatedOnly": {
            "title": "JD self-operated only (只看京东自营)",
            "type": "boolean",
            "description": "Keep only products JD sells and ships itself (京东自营): official stock, JD returns and warranty. Keywords and shops: a marketplace shop is skipped as a whole.",
            "default": false
          },
          "onlyExactMatches": {
            "title": "Only exact matches (精确匹配)",
            "type": "boolean",
            "description": "Keep only products whose title has every search word, and drop accessories made for them (cases, chargers, filters) unless you searched for one. Off by default: those rows are kept and marked. Dropped rows are free. Typos and pinyin may then return nothing.",
            "default": false
          },
          "excludeSecondHand": {
            "title": "Exclude second-hand (排除二手/官翻)",
            "type": "boolean",
            "description": "Drop listings whose title or shop says used, refurbished, open-box or activated-unused (二手, 99成新, 官翻, 资源机, 仅激活未使用). Dropped rows are free. Applies to keywords and shops.",
            "default": false
          },
          "minGoodRate": {
            "title": "Min good rate % (好评率)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep products whose share of positive reviews (好评率) is at least this, e.g. 97. Products without a rating are dropped. Keywords and shops."
          },
          "minReviews": {
            "title": "Min reviews (评价数)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep products with at least this many reviews; JD rounds counts (\"2000+\", \"5万+\"), so 2000+ counts as 2,000. Keywords and shops."
          },
          "excludeKeywords": {
            "title": "Exclude words (排除词)",
            "type": "array",
            "description": "Drop products whose title contains any of these words (any case), e.g. <code>二手</code> (second-hand), <code>壳</code> (case), <code>refurbished</code>. Keywords and shops.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Stock in other cities (各城市库存)",
            "type": "array",
            "description": "Also check stock, quantity and delivery promise in these cities: see the <b>Stock by city</b> view (regionalStock). Needs Product page details on. Beijing is JD's default and free; each other city is one regional-stock event per product.",
            "items": {
              "type": "string",
              "enum": [
                "beijing",
                "shanghai",
                "guangzhou",
                "shenzhen",
                "hangzhou",
                "nanjing",
                "wuhan",
                "chengdu",
                "chongqing",
                "tianjin",
                "xian",
                "zhengzhou"
              ],
              "enumTitles": [
                "北京 Beijing (JD default)",
                "上海 Shanghai",
                "广州 Guangzhou",
                "深圳 Shenzhen",
                "杭州 Hangzhou",
                "南京 Nanjing",
                "武汉 Wuhan",
                "成都 Chengdu",
                "重庆 Chongqing",
                "天津 Tianjin",
                "西安 Xi'an",
                "郑州 Zhengzhou"
              ]
            }
          },
          "includeSimilar": {
            "title": "Similar products and price vs market (同类商品比价)",
            "type": "boolean",
            "description": "Adds up to 40 similar products JD lists for each product (price, shop, reviews) and its price against their median (priceVsSimilarPct): see the <b>Price vs similar</b> view. Free.",
            "default": false
          },
          "maxSimilar": {
            "title": "Similar products per row",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "With Similar products on: how many to keep in each row (the median uses all of them).",
            "default": 10
          },
          "monitorName": {
            "title": "Monitor name (价格监控名称)",
            "type": "string",
            "description": "Any name, e.g. <code>dyson-resellers</code>. Runs with the same name remember prices: previousPrice, priceChange, priceAlert and isNewProduct on every row, plus an ALERTS record."
          },
          "onlyNew": {
            "title": "Only new products",
            "type": "boolean",
            "description": "With a monitor name: deliver (and charge) only products this monitor has not seen before, among the first Max products of each keyword or shop. A run with nothing new costs $0.",
            "default": false
          },
          "onlyPriceChanges": {
            "title": "Only new products and price changes",
            "type": "boolean",
            "description": "With a monitor name: deliver (and charge) only new products and products whose price changed since the last run.",
            "default": false
          },
          "priceDropAlertPct": {
            "title": "Price-drop alert threshold (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "A product whose price fell at least this many percent since the last run gets priceAlert: true and goes into the ALERTS record and webhook.",
            "default": 5
          },
          "alertWebhookUrl": {
            "title": "Alert webhook URL",
            "type": "string",
            "description": "With a monitor name: an optional https:// URL that receives price drops and new products as JSON (works with Slack and Discord incoming webhooks, Zapier, Make, n8n)."
          },
          "translateToEnglish": {
            "title": "English translation (翻译成英文)",
            "type": "boolean",
            "description": "Off by default, so Chinese titles stay as JD shows them and cost nothing extra. On: English titles, shop names and variant options (titleEn, shopNameEn, variantAttributesEn; colorEn and sizeEn inside variants), shown in the <b>English</b> view; one translation event ($0.50/1K) per translated row.",
            "default": false
          },
          "aiAnalysis": {
            "title": "AI insights (AI 分析)",
            "type": "boolean",
            "description": "Adds quality risk, counterfeit risk and price fairness labels, an English category, buyer highlights, concerns and a one-line summary. One ai-insight event ($0.50/1K) per analysed row.",
            "default": false
          },
          "aiApiKey": {
            "title": "Your own LLM API key (optional)",
            "type": "string",
            "description": "Optional. Your OpenRouter, OpenAI, Anthropic or Gemini key for AI insights: they then run on your own account and are never charged by this Actor."
          },
          "aiModel": {
            "title": "Model for your key (optional)",
            "type": "string",
            "description": "With your own key: the model id, e.g. <code>openai/gpt-5-mini</code>. Empty: a sensible default for your provider."
          },
          "aiBaseUrl": {
            "title": "Custom OpenAI-compatible endpoint (optional)",
            "type": "string",
            "description": "Base URL of an OpenAI-compatible API for your own key, e.g. a self-hosted model. Never charged by this Actor."
          },
          "telemetry": {
            "title": "Anonymous error reports",
            "type": "boolean",
            "description": "Sends the Actor's author an anonymous report when a run hits an error (error type, failing step, HTTP status, counts). Never your input, results, URLs or account. Untick to turn it off.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}