{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper (阿里巴巴1688) - Wholesale Prices, MOQ & Suppliers",
    "description": "Scrape 1688.com (Alibaba China wholesale) by keyword or link: CNY + USD prices, price tiers, MOQ, SKUs with stock, sales, repurchase rate, supplier scores. No login. | 1688商品采集：按关键词或链接获取价格、起订量、SKU库存、销量、回头率和供应商评分，无需登录。",
    "version": "1.0",
    "x-build-id": "h3Bsv4wBPEhgXSUfS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kantolabs~1688-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kantolabs-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/kantolabs~1688-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kantolabs-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/kantolabs~1688-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kantolabs-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": "Search keywords",
            "type": "array",
            "description": "Words to search on 1688.com, one search per line. Chinese gives the most precise results (e.g. 瑜伽垫); English also works (e.g. \"phone case\"). Each keyword returns up to \"Max products per keyword\".",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product links or offer IDs",
            "type": "array",
            "description": "Any 1688 product link (https://detail.1688.com/offer/<id>.html, m.1688.com, ad links) or just the offer ID number. Each one returns the full product page: price tiers, MOQ, every SKU, attributes, weights, supplier.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Product links from another dataset (optional)",
            "type": "string",
            "description": "Pick a dataset whose rows have a 1688 link or offer ID (offerId, url, productUrl, link...) - for example the output of another 1688 scraper - to add the full product page to each row. Up to 20,000 rows."
          },
          "maxItemsPerKeyword": {
            "title": "Max products per keyword",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "1688 lists at most about 2,000 products per search (60 per page). Ads, duplicates and products outside your filters do not count and are not charged.",
            "default": 60
          },
          "maxItems": {
            "title": "Max products in total (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stops the whole run after this many delivered products. You can also set a maximum cost per run in the run options.",
            "default": 0
          },
          "includeDetails": {
            "title": "Add the full product page to search results",
            "type": "boolean",
            "description": "Opens each product found by a keyword and adds: quantity price tiers, MOQ, every SKU (price, stock, weight, size), attributes, rating, review tags, ship-from city, delivery promise, supplier badges. Charged as an extra \"Product page\" event only when the page loaded. Product links always include it.",
            "default": false
          },
          "sortBy": {
            "title": "Sort search results by",
            "enum": [
              "relevance",
              "sales",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Order of the keyword results, as on 1688.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or above this, in Chinese yuan. Sent to 1688 and checked again on every row."
          },
          "maxPrice": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only products priced at or below this, in Chinese yuan."
          },
          "minRepurchaseRate": {
            "title": "Min repurchase rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Keep only products whose repeat-buyer rate (回头率) shown on 1688 is at least this. Products without a rate are skipped when this is set."
          },
          "excludeAds": {
            "title": "Skip sponsored listings",
            "type": "boolean",
            "description": "Leave out the paid placements 1688 mixes into the results (they are flagged isAd: true otherwise). Skipped ads are never charged.",
            "default": false
          },
          "includeUsdPrices": {
            "title": "Add USD prices",
            "type": "boolean",
            "description": "Adds a USD column next to every CNY price, using the day's ECB reference rate (fetched once per run). If the rate cannot be fetched the USD columns stay empty - never a guessed rate.",
            "default": true
          },
          "watchListName": {
            "title": "Watch mode: only new products (named list)",
            "type": "string",
            "description": "Optional name, e.g. \"yoga-mats\". Products delivered in earlier runs with the same name are skipped (no row, no charge), so a scheduled run returns only newly listed products. Stored in a named key-value store in your account."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}