{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper: Wholesale Products, Suppliers & Image Search",
    "description": "Scrape 1688.com wholesale products by keyword, offer link or photo: every SKU with price and stock, price tiers, MOQ, delivery promise, dropshipping data and the supplier profile. Find suppliers from a product photo. $4.49 per 1,000 products, supplier profile +$0.99, no start fee.",
    "version": "0.1",
    "x-build-id": "wluxeEWkYVCXW1rwP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insanedev~1688-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insanedev-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/insanedev~1688-scraper/runs": {
      "post": {
        "operationId": "runs-sync-insanedev-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/insanedev~1688-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-insanedev-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": {
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search on 1688 (Chinese works best, e.g. 手机壳 = phone case). Each keyword returns up to 'Max products per keyword'.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerKeyword": {
            "title": "Max products per keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Up to 10,000 per keyword. 1688 shows at most 2,000 offers for one search; above that the Actor splits the search by price range for you and removes duplicates.",
            "default": 20
          },
          "offers": {
            "title": "Offer URLs or IDs",
            "type": "array",
            "description": "1688 product pages (https://detail.1688.com/offer/<id>.html), mobile links or bare offer IDs.",
            "items": {
              "type": "string"
            }
          },
          "imageUrls": {
            "title": "Search by image (photo or product page URLs)",
            "type": "array",
            "description": "Find suppliers by photo. Each line is a picture URL (jpg, png, webp, from any site: Amazon, Shopify, AliExpress, your own CDN) or a product page URL (a Shopify product page, or any page with an og:image): its main picture is used. Every picture returns up to \"Max matches per image\" 1688 offers, ordered by visual similarity, in the same row format as keyword search. A picture that cannot be downloaded or returns no match gives a free error row.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerImage": {
            "title": "Max matches per image",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "How many 1688 offers to return per picture (1688 ranks up to ~700 matches).",
            "default": 20
          },
          "similarToOffers": {
            "title": "Same product from other suppliers (offer URLs or IDs)",
            "type": "array",
            "description": "1688 product pages (https://detail.1688.com/offer/<id>.html), mobile links or bare offer IDs, same as in \"Offer URLs or IDs\". For each offer, find other listings of the same product (1688's own same-picture match, up to 20 per offer) to compare prices and suppliers. Each row carries similarToOfferId and the source offer's price.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Full product details",
            "type": "boolean",
            "description": "On: every SKU, price tiers, MOQ, stock, attributes, logistics and seller from the product page. Off: only the search row (title, price, supplier scores), faster.",
            "default": true
          },
          "includeReviews": {
            "title": "Review summary",
            "type": "boolean",
            "description": "Rating, positive rate, review count, impression tags and a few recent review texts (no reviewer names). Needs full details.",
            "default": true
          },
          "includeDescription": {
            "title": "Description text and images",
            "type": "boolean",
            "description": "The seller's product description as plain text plus its image URLs. Needs full details.",
            "default": true
          },
          "includeSupplier": {
            "title": "Supplier / factory profile",
            "type": "boolean",
            "description": "Factory address and coordinates, staff, area, machines, OEM/ODM, medal and category rank, response, repurchase and on-time rates, third-party audit, factory videos. Fetched once per supplier. Billed as the supplier add-on ($0.99 per 1,000 rows) only when the profile is filled.",
            "default": true
          },
          "includePackaging": {
            "title": "Category name and package size per SKU",
            "type": "boolean",
            "description": "Reads the desktop product page too: the category name and each SKU's package length, width, height, volume and weight.",
            "default": true
          },
          "translateTitles": {
            "title": "English titles",
            "type": "boolean",
            "description": "Adds `titleEn`: the product title machine-translated from Chinese to English (free, batched; null when the translation service does not answer). The original `title` stays as it is.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Products fetched at the same time.",
            "default": 60
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "1688 answers real data only to rotating residential IPs; keep RESIDENTIAL.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}