{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Wholesale Scraper & China B2B Supplier Extractor",
    "description": "Extract 75+ real wholesale, SKU, review & factory intelligence fields from 1688.com without login. Search Chinese or English keywords or scrape offerIds for tiered prices, stock, MOQ, shipping, ratings & supplier certifications — fast structured output ready for sourcing & dropship.",
    "version": "0.0",
    "x-build-id": "r1pNU9c1fdZqsue29"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilot~1688-wholesale-scraper-china-b2b-supplier-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilot-1688-wholesale-scraper-china-b2b-supplier-extractor",
        "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/scrapepilot~1688-wholesale-scraper-china-b2b-supplier-extractor/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilot-1688-wholesale-scraper-china-b2b-supplier-extractor",
        "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/scrapepilot~1688-wholesale-scraper-china-b2b-supplier-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilot-1688-wholesale-scraper-china-b2b-supplier-extractor",
        "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": "Search terms in Chinese or English (e.g., 'wireless earbuds', '手机壳'). Each keyword is searched separately up to maxResults. Ignored when Offer IDs are provided.",
            "default": [
              "wireless earbuds"
            ],
            "items": {
              "type": "string"
            }
          },
          "offerIds": {
            "title": "Offer IDs or Product URLs",
            "type": "array",
            "description": "Specific 1688 product offer IDs or detail URLs (e.g., '927875250705' or 'https://detail.1688.com/offer/927875250705.html'). Overrides Search Keywords when provided.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results per Keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of products to extract per keyword (or total Offer IDs). Apify Free plan runs are strictly capped at 20 total products; Paid plans support up to 10,000 results per keyword.",
            "default": 10
          },
          "excludeKeywords": {
            "title": "Exclude Keywords",
            "type": "array",
            "description": "Filter out products whose title contains any of these Chinese or English terms.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum Price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum product price in CNY (optional)."
          },
          "priceMax": {
            "title": "Maximum Price (CNY)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum product price in CNY (optional)."
          },
          "province": {
            "title": "Supplier Province",
            "type": "string",
            "description": "Filter products shipping from a Chinese province (e.g., '广东', '浙江', '义乌')."
          },
          "city": {
            "title": "Supplier City",
            "type": "string",
            "description": "Filter products shipping from a Chinese city (e.g., '深圳市', '佛山市', '义乌市')."
          },
          "minOrderQuantity": {
            "title": "Max MOQ Filter",
            "minimum": 1,
            "type": "integer",
            "description": "Keep products whose minimum order quantity (MOQ) is at or below this value (e.g., 50 for low-MOQ factories)."
          },
          "merchantType": {
            "title": "Supplier Verification Tier",
            "enum": [
              "all",
              "verifiedFactory",
              "superFactory",
              "powerfulMerchant"
            ],
            "type": "string",
            "description": "Filter suppliers by 1688 verification tier.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "bestSelling",
              "bestSelling7d",
              "priceAsc",
              "priceDesc",
              "newest"
            ],
            "type": "string",
            "description": "Sort search results using native 1688 ranking options.",
            "default": "relevance"
          },
          "freeShippingOnly": {
            "title": "Free Shipping Only",
            "type": "boolean",
            "description": "Return only products that offer free shipping / free dropship delivery.",
            "default": false
          },
          "includeSkuDetails": {
            "title": "Include SKU Variant Details",
            "type": "boolean",
            "description": "Extract complete variant properties, SKU IDs, variant prices, variant stock levels, and per-SKU weight/dimensions when available.",
            "default": true
          },
          "includeSupplierIntelligence": {
            "title": "Include Supplier & Factory Intelligence (Add-on)",
            "type": "boolean",
            "description": "Extract deep supplier & factory verification data including SGS audit certifications, founded year, OEM brands, patent counts, enterprise scale, 5-dimensional service scores, and factory ranking.",
            "default": true
          },
          "includeReviews": {
            "title": "Include Rating & Review Metrics",
            "type": "boolean",
            "description": "Extract overall rating score, positive rate percentage, review breakdown counts, buyer impression tags, and recent buyer comments.",
            "default": true
          },
          "includeDescriptionHtml": {
            "title": "Include Description Images & HTML",
            "type": "boolean",
            "description": "Fetch full product description images, extracted text, and raw HTML when product detail metadata is available.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Detail Fetch Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum parallel workers when enriching product details, reviews, and supplier intelligence.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for 1688 detail pages. Chinese residential proxies provide the highest throughput for full SKU and supplier detail extraction on large batches.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}