{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper (Alibaba China): Products, Wholesale Prices & MOQ",
    "description": "Scrape 1688.com, Alibaba's wholesale marketplace for China, by keyword or offer link. No login or proxy. Filters: price, MOQ, province, city, factory or wholesaler, sort; up to 5,000 results per keyword. Get price tiers, variants with stock, sales, supplier and ratings, USD prices, English titles.",
    "version": "0.1",
    "x-build-id": "zbfxi2WkawNzamwD9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maksim_lazouski~1688-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maksim_lazouski-1688-product-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/maksim_lazouski~1688-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maksim_lazouski-1688-product-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/maksim_lazouski~1688-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maksim_lazouski-1688-product-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": {
          "offers": {
            "title": "Offer links or ids",
            "type": "array",
            "description": "1688 offers to read. Each line is a link such as https://detail.1688.com/offer/762640272016.html or just the number from it.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search 1688 for, in Chinese or in English (or another language): a keyword with no Chinese characters is translated into Chinese first, as 1688 finds far more in Chinese. Every page of results holds 60 offers.",
            "items": {
              "type": "string"
            }
          },
          "translateKeywords": {
            "title": "Search in English (or any language)",
            "type": "boolean",
            "description": "On: a keyword with no Chinese characters is searched in Chinese (\"phone case\" as 手机壳). Each row keeps your keyword and shows what was searched in search_query. Free. Off: the keyword is searched as you wrote it, for model numbers or brand names.",
            "default": true
          },
          "maxPagesPerKeyword": {
            "title": "Result pages per keyword",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many pages of search results to read for each keyword. 1688 shows a visitor who is not logged in three pages (up to 180 offers) per search, so 3 is the most. An offer that 1688 shows on more than one page is returned once. For more than 180, use Results per keyword.",
            "default": 1
          },
          "maxResultsPerKeyword": {
            "title": "Results per keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many different search results to return for each keyword, up to 5,000; used instead of Result pages per keyword. One search on 1688 shows at most 180, so for more the actor splits each keyword into price ranges and reads each range as a search of its own (the field price_range says which). Each offer is returned once per keyword. A keyword that has fewer offers gives what it has. About 25 seconds per 180 results."
          },
          "scrapeDetails": {
            "title": "Open every search result",
            "type": "boolean",
            "description": "Off: one short row per search result (title, price, sales, supplier, link). On: the actor opens the offer page of every result and returns the full offer row instead.",
            "default": false
          },
          "minPrice": {
            "title": "Lowest price, yuan",
            "minimum": 0,
            "type": "number",
            "description": "Only offers that cost at least this much (CNY)."
          },
          "maxPrice": {
            "title": "Highest price, yuan",
            "minimum": 0,
            "type": "number",
            "description": "Only offers that cost at most this much (CNY)."
          },
          "maxMoq": {
            "title": "Largest minimum order (MOQ)",
            "minimum": 1,
            "type": "integer",
            "description": "Only offers you can order in this quantity or less: their minimum order is at most this many pieces (read from the offer's price tiers in the result)."
          },
          "provinces": {
            "title": "Supplier provinces",
            "type": "array",
            "description": "Only suppliers from these provinces of China, in Chinese (广东, 浙江) or pinyin (Guangdong, Zhejiang). Several are any of them.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Supplier cities",
            "type": "array",
            "description": "Only suppliers from these cities, as 1688 lists them, in Chinese (深圳, 东莞) or in pinyin for the big trade cities (Shenzhen, Guangzhou, Ningbo...). Trade towns 1688's filter does not list work too: Yiwu (义乌), Jinjiang, Kunshan, Yongkang and a few more. Several are any of them.",
            "items": {
              "type": "string"
            }
          },
          "supplierType": {
            "title": "Supplier type",
            "enum": [
              "any",
              "manufacturer",
              "wholesaler"
            ],
            "type": "string",
            "description": "Manufacturer: suppliers that make the goods (生产加工). Wholesaler: suppliers that resell (经销批发).",
            "default": "any"
          },
          "supplierBadge": {
            "title": "Supplier badge",
            "enum": [
              "any",
              "superFactory",
              "sourceFlagship",
              "strengthMerchant"
            ],
            "type": "string",
            "description": "Only suppliers 1688 marks with this badge.",
            "default": "any"
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only offers with free shipping within China (包邮).",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "sales",
              "priceLowToHigh",
              "priceHighToLow"
            ],
            "type": "string",
            "description": "The order of the results, as on 1688.",
            "default": "relevance"
          },
          "onePerSupplier": {
            "title": "One offer per supplier",
            "type": "boolean",
            "description": "Returns each supplier once per keyword (1688's 合并供应商), to compare suppliers rather than offers.",
            "default": false
          },
          "excludeAds": {
            "title": "Leave out ads",
            "type": "boolean",
            "description": "Leaves out the results 1688 shows as paid placements (is_ad). They are not charged.",
            "default": false
          },
          "excludeWords": {
            "title": "Leave out titles with these words",
            "type": "array",
            "description": "Leaves out a result whose Chinese title holds any of these words (any case), for example 贴纸 or 二手. They are not charged.",
            "items": {
              "type": "string"
            }
          },
          "includeExtras": {
            "title": "Supplier card, ratings, dropshipping terms and description",
            "type": "boolean",
            "description": "Adds to every offer the blocks its page loads beside the main data: the supplier card, the offer's ratings, the dropshipping terms and the description (text and pictures). Turn off to get only what the offer page itself carries.",
            "default": true
          },
          "translateTitles": {
            "title": "English titles (add-on)",
            "type": "boolean",
            "description": "Adds title_en to every offer and search result: an English machine translation of the Chinese title. Charged as one more event per row that gets an English title; rows without one are not charged for it.",
            "default": false
          },
          "maxItems": {
            "title": "Stop after this many results",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops once it has stored this many rows. Leave empty for no limit."
          },
          "maxConcurrency": {
            "title": "Offers read side by side",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many offers and search pages are read at the same time, each from its own address. More is faster; the default suits most jobs.",
            "default": 10
          },
          "watchName": {
            "title": "Watch list name",
            "type": "string",
            "description": "For runs on a schedule. Give the same name every time: each run then stores only the offers and search results that are new or changed (price, title, state) since the last run with that name, marked in the field change. Rows that did not change are not stored and not charged. Leave empty to get every row."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}