{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper & API: Factory Prices & MOQ 🇨🇳",
    "description": "⚡ $0.90/1k ($0 proxy): Scrape 1688 USD/CNY factory prices, EN titles, MOQ, SKU stock & FBA specs on REST & MCP API. Reverse image search & zero login.",
    "version": "1.0",
    "x-build-id": "nf0xSpbRZL7cEUtuY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unitbytes~1688-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unitbytes-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/unitbytes~1688-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unitbytes-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/unitbytes~1688-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unitbytes-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": {
          "queries": {
            "title": "Search Queries (English or Chinese)",
            "type": "array",
            "description": "Product keywords in English or Chinese (e.g. ['phone case', 'wireless earbuds', '蓝牙耳机']). English queries are automatically translated to native 1688 factory keywords when Auto-Translate is enabled below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (1688 Offer, Search, or Product Image URLs)",
            "type": "array",
            "description": "Optional: Paste direct 1688 product offer URLs ('https://detail.1688.com/offer/685176373959.html'), 1688 search URLs, or product image URLs (.jpg, .png, .webp, .avif).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of wholesale offers to extract (1 to 10,000).",
            "default": 30
          },
          "detailLevel": {
            "title": "Detail Level",
            "enum": [
              "full",
              "summary"
            ],
            "type": "string",
            "description": "Choose 'Full B2B Mode' for complete tiered CNY/USD volume prices, SKU stock matrices, MOQ, Amazon FBA packaging weights/dimensions, and factory audit scores, or 'Summary Mode' for fast search cards.",
            "default": "full"
          },
          "translateKeywords": {
            "title": "Auto-Translate English Queries to Chinese",
            "type": "boolean",
            "description": "Automatically converts English sourcing queries (e.g. 'phone case' -> '手机壳', 'wireless earbuds' -> '蓝牙耳机') into native Mainland China 1688 factory keywords for maximum catalog coverage while preserving model numbers.",
            "default": true
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "normal",
              "booked",
              "repurchase",
              "priceAsc",
              "priceDesc",
              "newest"
            ],
            "type": "string",
            "description": "Native 1688 server-side sort order.",
            "default": "normal"
          },
          "verticalProductFlag": {
            "title": "Sourcing Channel (垂直市场)",
            "enum": [
              "",
              "factory",
              "superFactory",
              "kuajing",
              "spot"
            ],
            "type": "string",
            "description": "Select 'All Channels' for maximum product coverage across 1688.com, or narrow strictly to Direct Factories, Super Factories, Cross-Border Export, or Ready-to-Ship Spot inventory.",
            "default": ""
          },
          "superFactory": {
            "title": "Super Factory Only (超级工厂)",
            "type": "boolean",
            "description": "Filter strictly to verified 1688 Super Factories with audited high-capacity OEM/ODM production lines.",
            "default": false
          },
          "factoryInspection": {
            "title": "Inspected Factories Only (深度验厂)",
            "type": "boolean",
            "description": "Filter strictly to manufacturers verified by third-party on-site factory inspection (SGS / BV / TÜV).",
            "default": false
          },
          "priceMin": {
            "title": "Min Price (¥ CNY)",
            "type": "integer",
            "description": "Minimum unit wholesale price in Chinese Yuan (CNY ¥), filtered natively by 1688."
          },
          "priceMax": {
            "title": "Max Price (¥ CNY)",
            "type": "integer",
            "description": "Maximum unit wholesale price in Chinese Yuan (CNY ¥), filtered natively by 1688."
          },
          "province": {
            "title": "Manufacturing Province",
            "enum": [
              "",
              "广东",
              "浙江",
              "江苏",
              "山东",
              "福建",
              "河北",
              "河南",
              "安徽",
              "湖北",
              "湖南",
              "四川",
              "江西"
            ],
            "type": "string",
            "description": "Filter by Chinese manufacturing province (e.g. '广东' for Shenzhen/Guangzhou/Dongguan, '浙江' for Yiwu/Hangzhou/Ningbo).",
            "default": ""
          },
          "offerIds": {
            "title": "Direct Offer IDs",
            "type": "array",
            "description": "Optional list of numeric 1688 product offer IDs (e.g. ['685176373959', '851610724109']) for direct B2B offer & SKU extraction.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs (Optional)",
            "type": "array",
            "description": "Optional list of 1688 search listing URLs (you can also paste them into Start URLs above).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "keyword": {
            "title": "Single Search Keyword (Legacy)",
            "type": "string",
            "description": "Optional single keyword or numeric 1688 offer ID (use 'Search Queries' above for multi-keyword runs)."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Included at $0 Extra Cost)",
            "type": "object",
            "description": "Residential Proxy is 100% included in the per-item price at $0 extra cost — leave as default unless bringing custom proxies.",
            "default": {
              "useApifyProxy": true
            }
          },
          "resumptionToken": {
            "title": "Resumption Token",
            "type": "string",
            "description": "Optional encrypted resumption token (valid for 7 days) from a previous run to continue deep pagination seamlessly."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}