{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper - Wholesale Products, MOQ, Price, Suppliers",
    "description": "Scrape 1688.com wholesale products by keyword, no login: price range, minimum order (MOQ), supplier, sales, repeat-buyer rate and service tags in English. Up to 2,000 products per keyword, sorted and filtered by price, place and sales. Export to Excel, CSV or API.",
    "version": "0.1",
    "x-build-id": "mD9DSjsWzkzl8FqgE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pshivam~1688-wholesale-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pshivam-1688-wholesale-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/pshivam~1688-wholesale-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pshivam-1688-wholesale-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/pshivam~1688-wholesale-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pshivam-1688-wholesale-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 words",
            "type": "array",
            "description": "What to search for, one per line. Chinese words give the best matches, for example 手机壳 (phone case), 数据线 (cable) or 连衣裙 (dress). Common English words work too, for example phone case.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "1688 catalogue or search links",
            "type": "array",
            "description": "Paste 1688 links, one per line: catalogue pages (www.1688.com/chanpin/-....html) or search pages (s.1688.com/selloffer/offer_search.htm?keywords=...). The search word in the link is used.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "sales",
              "price"
            ],
            "type": "string",
            "description": "The order of the search. Most sold first finds the best sellers, lowest price first the cheapest. Leave empty for the site's own order."
          },
          "minPrice": {
            "title": "Lowest price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at or above this, in yuan (CNY). 1688 applies the filter itself."
          },
          "maxPrice": {
            "title": "Highest price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at or below this, in yuan (CNY). 1688 applies the filter itself."
          },
          "places": {
            "title": "Provinces or cities of the suppliers",
            "type": "array",
            "description": "Only suppliers of these places, in English (Guangdong, Shenzhen, Dongguan) or Chinese (广东, 深圳, 东莞). Each place is searched on its own and has its own 2,000 products, so several places give more products than one. A city must be a prefecture-level city (the site finds nothing for smaller towns such as Yiwu: use Jinhua). Leave empty for all of China.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "guangdong",
                "zhejiang",
                "jiangsu",
                "shandong",
                "fujian",
                "shanghai",
                "beijing",
                "hebei",
                "henan",
                "hubei",
                "hunan",
                "sichuan",
                "chongqing",
                "anhui",
                "jiangxi",
                "liaoning",
                "tianjin",
                "shaanxi",
                "shanxi",
                "guangxi",
                "yunnan",
                "guizhou",
                "jilin",
                "heilongjiang",
                "hainan",
                "gansu",
                "inner mongolia",
                "xinjiang",
                "ningxia",
                "qinghai",
                "tibet",
                "shenzhen",
                "guangzhou",
                "dongguan",
                "foshan",
                "zhongshan",
                "huizhou",
                "shantou",
                "zhuhai",
                "jiangmen",
                "hangzhou",
                "ningbo",
                "wenzhou",
                "jinhua",
                "taizhou",
                "shaoxing",
                "jiaxing",
                "suzhou",
                "nanjing",
                "wuxi",
                "changzhou",
                "nantong",
                "qingdao",
                "jinan",
                "linyi",
                "xiamen",
                "quanzhou",
                "fuzhou",
                "wuhan",
                "chengdu",
                "zhengzhou",
                "hefei",
                "changsha",
                "xian",
                "shijiazhuang",
                "baoding"
              ],
              "enumTitles": [
                "Guangdong (广东)",
                "Zhejiang (浙江)",
                "Jiangsu (江苏)",
                "Shandong (山东)",
                "Fujian (福建)",
                "Shanghai (上海)",
                "Beijing (北京)",
                "Hebei (河北)",
                "Henan (河南)",
                "Hubei (湖北)",
                "Hunan (湖南)",
                "Sichuan (四川)",
                "Chongqing (重庆)",
                "Anhui (安徽)",
                "Jiangxi (江西)",
                "Liaoning (辽宁)",
                "Tianjin (天津)",
                "Shaanxi (陕西)",
                "Shanxi (山西)",
                "Guangxi (广西)",
                "Yunnan (云南)",
                "Guizhou (贵州)",
                "Jilin (吉林)",
                "Heilongjiang (黑龙江)",
                "Hainan (海南)",
                "Gansu (甘肃)",
                "Inner Mongolia (内蒙古)",
                "Xinjiang (新疆)",
                "Ningxia (宁夏)",
                "Qinghai (青海)",
                "Tibet (西藏)",
                "Shenzhen (深圳)",
                "Guangzhou (广州)",
                "Dongguan (东莞)",
                "Foshan (佛山)",
                "Zhongshan (中山)",
                "Huizhou (惠州)",
                "Shantou (汕头)",
                "Zhuhai (珠海)",
                "Jiangmen (江门)",
                "Hangzhou (杭州)",
                "Ningbo (宁波)",
                "Wenzhou (温州)",
                "Jinhua (金华)",
                "Taizhou (台州)",
                "Shaoxing (绍兴)",
                "Jiaxing (嘉兴)",
                "Suzhou (苏州)",
                "Nanjing (南京)",
                "Wuxi (无锡)",
                "Changzhou (常州)",
                "Nantong (南通)",
                "Qingdao (青岛)",
                "Jinan (济南)",
                "Linyi (临沂)",
                "Xiamen (厦门)",
                "Quanzhou (泉州)",
                "Fuzhou (福州)",
                "Wuhan (武汉)",
                "Chengdu (成都)",
                "Zhengzhou (郑州)",
                "Hefei (合肥)",
                "Changsha (长沙)",
                "Xian (西安)",
                "Shijiazhuang (石家庄)",
                "Baoding (保定)"
              ]
            }
          },
          "maxMoq": {
            "title": "Largest minimum order",
            "minimum": 1,
            "type": "integer",
            "description": "Only products you can order in this quantity or less (the minimum order, moq). The Actor applies this filter, so it reads more pages to find enough products."
          },
          "minRepeatRate": {
            "title": "Lowest repeat-buyer rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only products whose supplier has at least this share of buyers who order again (repeatRate, 0 to 100). A good sign of a reliable supplier. The Actor applies this filter."
          },
          "tradeAssuranceOnly": {
            "title": "Trade assurance only",
            "type": "boolean",
            "description": "Only products of suppliers that offer 1688's trade assurance (tradeAssurance is true). The Actor applies this filter.",
            "default": false
          },
          "includeAds": {
            "title": "Include ads",
            "type": "boolean",
            "description": "1688 mixes paid ads into the first pages (about 10 of 60 products). They are left out by default. Turn this on to get them too: isAd tells them apart.",
            "default": false
          },
          "maxItemsPerSearch": {
            "title": "Products per search word",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "Stop each search word after this many products. 1688 shows about 2,000 products for a word (34 pages of 60).",
            "default": 2000
          },
          "onlyNew": {
            "title": "Only new records",
            "type": "boolean",
            "description": "Skip records that earlier runs of this same input already returned, so you get and pay for new ones only. The first run works as usual and remembers what it returned, in your key-value store '1688-wholesale-scraper-only-new'.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "Stop after this many products in total. You are charged per product.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Requests at the same time",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many catalogue pages are read at the same time.",
            "default": 6
          },
          "secondsBetweenRequests": {
            "title": "Seconds between requests",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Pause between requests. 1688 refuses an address that reads too fast: the Actor then lets it rest and lengthens the pause.",
            "default": 0.2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The Actor reads with its own address and uses this proxy only while 1688 refuses that address (a new address for every request). Apify Proxy is used when your account has it; pick another proxy group or your own proxies here. Turn the proxy off to wait instead.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}