{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper",
    "description": "[💰 $2.99 / 1K products] Scrape 1688 (阿里巴巴) products by keyword, photo, supplier or link: every variant's price, stock and units sold, price tiers, MOQ, supplier ratings, dispatch promise, reviews, English titles. Search fields only at $0.99 / 1K. No account, no proxy. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "7blHQlBDA7IUy4j7i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~1688-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-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/sleepmodesystems~1688-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-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/sleepmodesystems~1688-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-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": {
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 100,
            "type": "array",
            "description": "Words, one per line: <code>蓝牙耳机</code>, <code>手机壳</code>, <code>保温杯</code>, or a 1688 search link. Chinese words find the most (蓝牙耳机: 2,000+ products against a few hundred for the English words). Each gives products in 1688's order, up to 10,000 per term. Up to 100 terms.",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "Products (ids or links)",
            "maxItems": 10000,
            "type": "array",
            "description": "Product ids or links, one per line, any shape: <code>1038655407910</code>, <code>https://detail.1688.com/offer/1038655407910.html</code>, mobile links, and shopping-agent links that carry a 1688 product. One complete row each. Up to 10,000.",
            "items": {
              "type": "string"
            }
          },
          "shops": {
            "title": "Suppliers",
            "maxItems": 100,
            "type": "array",
            "description": "A supplier's whole catalogue, one per line: one of its product links (<code>https://detail.1688.com/offer/1038655407910.html</code>), its memberId (<code>b2b-3305320190fee3d</code>) or its <code>m.1688.com/winport/…</code> link. Up to <i>Maximum products</i> per supplier, 100 suppliers.",
            "items": {
              "type": "string"
            }
          },
          "imageUrls": {
            "title": "Photos (image search)",
            "maxItems": 100,
            "type": "array",
            "description": "Find suppliers by photo: public photo links, one per line (any JPG, PNG or WebP: an Amazon, AliExpress or Shopify product photo works). Each gives the most similar 1688 products, up to <i>Maximum products</i> per photo (about 700 at most). Up to 100 photos.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Products per search term, supplier and photo (up to 10,000). A product you named always gives its row.",
            "default": 200
          },
          "sort": {
            "title": "Order",
            "enum": [
              "relevance",
              "bestSellers",
              "priceLowToHigh",
              "priceHighToLow"
            ],
            "type": "string",
            "description": "1688's own orders for searches and suppliers.",
            "default": "relevance"
          },
          "market": {
            "title": "Marketplace",
            "enum": [
              "consumer",
              "industrial"
            ],
            "type": "string",
            "description": "Which 1688 marketplace a search reads: consumer goods (default) or industrial goods, machinery and raw materials.",
            "default": "consumer"
          },
          "minPrice": {
            "title": "Lowest price (¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products from this price, in yuan: <code>5</code>."
          },
          "maxPrice": {
            "title": "Highest price (¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products up to this price, in yuan: <code>50</code>."
          },
          "maxOrderQuantity": {
            "title": "Maximum order quantity (MOQ)",
            "minimum": 1,
            "type": "integer",
            "description": "Only products you can buy from this many units: <code>1</code> or <code>2</code> to buy samples."
          },
          "factoriesOnly": {
            "title": "Factories only",
            "type": "boolean",
            "description": "Only suppliers 1688 marks as a super factory (超级工厂) or a factory it inspected (验厂).",
            "default": false
          },
          "province": {
            "title": "Supplier province",
            "type": "string",
            "description": "Only suppliers in one province, in Chinese: <code>广东</code>, <code>浙江</code>, <code>福建</code>."
          },
          "details": {
            "title": "Product details",
            "type": "boolean",
            "description": "On (default): the complete row: every variant with its price, stock and units sold, quantity price tiers, attributes in Chinese and English, the supplier's followers, ratings and years on 1688, the dispatch promise, the latest reviews and dropshipping figures. Off: search rows only (id, title, price, units sold, supplier, image) at the lower price.",
            "default": true
          },
          "minItems": {
            "title": "Minimum products",
            "minimum": 0,
            "type": "integer",
            "description": "Fail the run when fewer products come back (for monitoring). 0 = never fail for a small result.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}