{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Wholesale Products & Supplier Scraper",
    "description": "Scrape 1688.com wholesale products by keyword or offer ID: tiered and per-variant prices, MOQ, SKU stock, reviews, supplier scores, factory data and shipping.",
    "version": "0.1",
    "x-build-id": "kzqr2JEFguLLHxmad"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zapticx~1688-wholesale-products-supplier-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zapticx-1688-wholesale-products-supplier-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/zapticx~1688-wholesale-products-supplier-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zapticx-1688-wholesale-products-supplier-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/zapticx~1688-wholesale-products-supplier-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zapticx-1688-wholesale-products-supplier-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": "Chinese or English search terms, for example <code>手机壳</code>, <code>蓝牙耳机</code> or <code>wireless earbuds</code>. Each keyword is searched on its own and every product records the keyword that found it. Chinese terms usually return far more matches than English ones, because most 1688 titles are written in Chinese.",
            "items": {
              "type": "string"
            }
          },
          "offerIds": {
            "title": "Offer IDs or product URLs",
            "type": "array",
            "description": "Scrape specific products instead of searching. Paste offer IDs (<code>800248492172</code>) or product links such as <code>https://detail.1688.com/offer/800248492172.html</code>. When this list has entries, keyword search is skipped.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max products per keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many products to save for each keyword. 1688 lists up to about 2,000 matches per search, so very large numbers are capped by what 1688 shows. Ignored in offer-ID mode.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort search results",
            "enum": [
              "relevance",
              "bestSelling",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Order in which 1688 returns search results.",
            "default": "relevance"
          },
          "priceMin": {
            "title": "Minimum price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep products whose search price is at least this many yuan. Leave empty for no minimum."
          },
          "priceMax": {
            "title": "Maximum price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep products whose search price is at most this many yuan. Leave empty for no maximum."
          },
          "province": {
            "title": "Supplier province",
            "type": "string",
            "description": "Chinese province name, for example <code>广东</code> (Guangdong), <code>浙江</code> (Zhejiang) or <code>江苏</code> (Jiangsu). Sent to 1688 and checked again on every result."
          },
          "city": {
            "title": "Supplier city",
            "type": "string",
            "description": "Chinese city name, for example <code>深圳市</code> (Shenzhen), <code>义乌市</code> (Yiwu) or <code>广州市</code> (Guangzhou). Works best together with a province."
          },
          "minOrderQuantity": {
            "title": "Highest acceptable MOQ",
            "minimum": 1,
            "type": "integer",
            "description": "Only keep products whose minimum order quantity is at or below this number, to find suppliers that sell small batches. Leave empty for no limit."
          },
          "merchantType": {
            "title": "Supplier tier",
            "enum": [
              "any",
              "superFactory",
              "verifiedMerchant"
            ],
            "type": "string",
            "description": "Keep only products from <b>super factories</b> (超级工厂) or <b>verified merchants</b> (实力商家, which also includes super factories). Checked on each product page, so the scraper keeps reading search pages until enough matching suppliers are found.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude titles containing",
            "type": "array",
            "description": "Skip products whose title contains any of these words (Chinese or English, not case sensitive). Skipped products are never charged, and the scraper keeps searching for replacements.",
            "items": {
              "type": "string"
            }
          },
          "includeSkuDetails": {
            "title": "Include full SKU variant matrix",
            "type": "boolean",
            "description": "Adds every colour, size and model combination with its own price, stock, image and weight. Adds one request per product.",
            "default": false
          },
          "includeReviews": {
            "title": "Include review summary",
            "type": "boolean",
            "description": "Adds the product rating, positive-review rate, review count, buyer impression tags and the latest sample reviews.",
            "default": true
          },
          "includeSupplierIntelligence": {
            "title": "Include supplier intelligence",
            "type": "boolean",
            "description": "Adds product certificates and inspection reports, customization (OEM) support and bestseller-ranking standing. No extra charge; it adds a few requests per product.",
            "default": false
          },
          "includeDescriptionHtml": {
            "title": "Include raw description HTML",
            "type": "boolean",
            "description": "Adds the seller's long description as raw HTML. Description text and image links are always included; the HTML can be large.",
            "default": false
          },
          "proxyCountryMode": {
            "title": "Proxy location",
            "enum": [
              "rotate",
              "CN",
              "HK"
            ],
            "type": "string",
            "description": "Where requests exit from. All options use Apify residential proxies. Rotate is recommended.",
            "default": "rotate"
          },
          "maxConcurrency": {
            "title": "Parallel products",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many products are fetched at the same time.",
            "default": 20
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a blocked or failed request is retried on a fresh connection.",
            "default": 5
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for one 1688 response before retrying on a new connection.",
            "default": 20
          },
          "debugMode": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Log every retry and session change.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}