{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper: Wholesale Products, SKUs & Suppliers",
    "description": "Scrape 1688 wholesale products by keyword or product link, in the Chinese or English catalog. Get prices, MOQ, sales, supplier, location and images, plus SKU prices, stock and supplier profile on demand. Filter by price, region and factory badges. No login. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "1rx9KLL3gyuMZtE5B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wiseus-labs~1688-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wiseus-labs-1688-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/wiseus-labs~1688-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wiseus-labs-1688-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/wiseus-labs~1688-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wiseus-labs-1688-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": "Search words, one per line, in Chinese (手机壳) or English (phone case). Each keyword is searched on 1688 and its products are saved. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "searchShelf": {
            "title": "🌐 Search in",
            "enum": [
              "chinese",
              "english"
            ],
            "type": "string",
            "description": "Chinese catalog: Chinese titles, prices in CNY. English catalog: English titles and USD prices from 1688's English catalog; it shows a different set of products. All filters work on both catalogs.",
            "default": "chinese"
          },
          "maxItemsPerKeyword": {
            "title": "🔢 Max products per keyword",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many products to save for each keyword. 1688 shows up to 2000 results per search and filter combination.",
            "default": 50
          },
          "includeDetails": {
            "title": "📋 Include full product details",
            "type": "boolean",
            "description": "Open each product found by keyword: SKUs with their own price, stock and photo, the full gallery and video, attributes with English names, price tiers, stock, logistics, the description and the supplier profile (response rate, repeat-buyer rate, service score, factory facts). Product links always include these details.",
            "default": false
          },
          "outputFormat": {
            "title": "🧾 Rows",
            "enum": [
              "product",
              "sku"
            ],
            "type": "string",
            "description": "One row per product (SKUs as a list inside the row), or one row per SKU with the product fields repeated, ready for a spreadsheet. One row per SKU needs full details (or product links). Each product is charged once in both formats.",
            "default": "product"
          },
          "productUrls": {
            "title": "🔗 Product links or IDs",
            "type": "array",
            "description": "1688 product links, one per line: detail.1688.com/offer/123456789012.html, m.1688.com links, links with extra parts after the ID, or bare product IDs. Products from links always come with full details (SKUs, gallery, attributes, supplier profile).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "💰 Min price",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at least this much. Chinese catalog: in CNY (Chinese yuan). English catalog: in USD. Decimals allowed (0.5).",
            "default": 0
          },
          "maxPrice": {
            "title": "💰 Max price",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at most this much. Chinese catalog: in CNY (Chinese yuan). English catalog: in USD. Decimals allowed (12.5).",
            "default": 0
          },
          "province": {
            "title": "📍 Supplier province",
            "type": "string",
            "description": "Only suppliers from this province, in English or Chinese: Guangdong, Zhejiang, 广东, 浙江 and so on.",
            "default": ""
          },
          "city": {
            "title": "📍 Supplier city",
            "type": "string",
            "description": "Only suppliers from this city, in Chinese (深圳) or in English for major sourcing cities (Shenzhen, Yiwu, Guangzhou, Dongguan...). The province is filled in for you when it is empty.",
            "default": ""
          },
          "superFactoryOnly": {
            "title": "🏭 Super factories only",
            "type": "boolean",
            "description": "Only suppliers 1688 marks as super factories (超级工厂). With Powerful merchants only also on, a supplier must have both badges.",
            "default": false
          },
          "powerfulMerchantOnly": {
            "title": "🏭 Powerful merchants only",
            "type": "boolean",
            "description": "Only suppliers 1688 marks as powerful merchants (实力商家). With Super factories only also on, a supplier must have both badges.",
            "default": false
          },
          "maxMoq": {
            "title": "📦 Max minimum order",
            "minimum": 0,
            "type": "integer",
            "description": "Skip products whose minimum order quantity is above this number, for example 10 for small test orders. 0 means no limit. Skipped products are not charged.",
            "default": 0
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "relevance",
              "price_asc",
              "sales"
            ],
            "type": "string",
            "description": "Order of the search results.",
            "default": "relevance"
          },
          "includeAds": {
            "title": "📣 Include sponsored products",
            "type": "boolean",
            "description": "Keep the sponsored products 1688 mixes into the results. They are marked with isAd.",
            "default": true
          },
          "maxItems": {
            "title": "🛑 Max products in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many saved products, across all keywords and links. 0 means no limit.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "⚙️ Products in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "At most this many products are opened at the same time when full details are on. The scraper lowers it on its own when 1688 slows it down and raises it again afterwards. The default suits most runs.",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}