{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Image Search Scraper: Suppliers by Photo, $0.49/1K",
    "description": "$0.49/1K matches, no start fee. Find 1688 suppliers by photo, no login. Paste product image links (Amazon, AliExpress, Taobao, TikTok Shop; JPEG, PNG, WebP) or a 1688 offer: look-alike offers closest first, price in CNY and USD, MOQ, sales, supplier and factory badges, optional SKUs and English.",
    "version": "0.4",
    "x-build-id": "1Ga0tRXBKd09Xsved"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~1688-image-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-1688-image-search-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/laptime~1688-image-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-1688-image-search-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/laptime~1688-image-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-1688-image-search-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": {
          "imageUrls": {
            "title": "Product photo links (以图搜货)",
            "type": "array",
            "description": "Links to product photos, one per line. On Amazon, AliExpress, Taobao, TikTok Shop or any shop: right-click the product photo, choose \"Copy image address\", paste it here. JPEG, PNG, WebP or GIF, any size. Google Images and Dropbox share links work too, and a 1688 offer link finds offers similar to that offer. $0.49 per 1,000 matches; a photo with no matches is free. A product shot on a plain background matches best.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Matches per photo",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many look-alike offers each photo returns, closest first (up to about 600 per photo; keywords up to 2,000). Default 20. The first 20–60 are the useful ones for most photos.",
            "default": 20
          },
          "includeDetails": {
            "title": "Include offer details: SKUs, stock, tiers (商品详情)",
            "type": "boolean",
            "description": "Opens each match's offer page: every SKU with its price and stock, quantity tiers, attributes, all images and video, weight, ship-from city, shipping fee and the review summary (see the \"Offer details\" view). +$0.99 per 1,000 matches and a few seconds more. Off: the match fields only (similarity, price, MOQ, sales, supplier).",
            "default": false
          },
          "translateToEnglish": {
            "title": "Translate results to English",
            "type": "boolean",
            "description": "Adds English copies next to the Chinese text: titleEn (the \"English title\" column), supplierNameEn and, with offer details, attribute and SKU names. +$0.50 per 1,000 translated rows (free plan: 100 rows per run). US dollar prices are on every row without this option.",
            "default": false
          },
          "merchantType": {
            "title": "Supplier type (商家类型)",
            "type": "string",
            "description": "All suppliers; factories (manufacturers, Super Factories and 1688-audited factories, 源头工厂); Super Factories only; 实力商家 (verified power merchants, checked on the offer page); or traders (wholesalers, and suppliers that show no factory credentials). Default: all. Offers dropped by the filter are free.",
            "default": "all"
          },
          "priceMin": {
            "title": "Min price, yuan (最低价)",
            "minimum": 0,
            "type": "number",
            "description": "Only matches priced at or above this many yuan (CNY), e.g. 5. Matches without a price are kept. Empty: no minimum."
          },
          "priceMax": {
            "title": "Max price, yuan (最高价)",
            "minimum": 0,
            "type": "number",
            "description": "Only matches priced at or below this many yuan (CNY), e.g. 50. Matches without a price are kept. Empty: no maximum."
          },
          "maxMinOrderQuantity": {
            "title": "Max MOQ (起批量上限)",
            "minimum": 1,
            "type": "integer",
            "description": "Only matches you can order in this quantity or less (MOQ ≤ this), e.g. 10. When the match shows no MOQ, its offer page is checked (free). Empty: any MOQ."
          },
          "minSupplierYears": {
            "title": "Min years on 1688 (诚信通年限)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only suppliers that have traded on 1688 (TrustPass) for at least this many years; suppliers without a known history are dropped. Dropped offers are free. Empty: any. Also accepts supplierYears."
          },
          "province": {
            "title": "Supplier province (省份)",
            "type": "string",
            "description": "Only suppliers in this province, in Chinese or pinyin: 广东 or Guangdong, 浙江 or Zhejiang, 江苏, 福建, 山东. Empty: anywhere."
          },
          "city": {
            "title": "Supplier city (城市)",
            "type": "string",
            "description": "Only suppliers in this city, in Chinese or pinyin (义乌 or Yiwu, 深圳 or Shenzhen, 东莞...). Empty: anywhere."
          },
          "excludeKeywords": {
            "title": "Exclude titles containing (排除词)",
            "type": "array",
            "description": "Drop offers whose title contains any of these words (case-insensitive), e.g. 二手 (second-hand), 定制 (custom-made).",
            "items": {
              "type": "string"
            }
          },
          "excludeAds": {
            "title": "Skip paid placements (排除广告)",
            "type": "boolean",
            "description": "Drop the sponsored (P4P) offers 1688 mixes into search results.",
            "default": false
          },
          "includeSupplierProfile": {
            "title": "Supplier profile: shop card (店铺信息)",
            "type": "boolean",
            "description": "With details: adds the supplier's 1688 shop card to each row: star level (1-5), quality pass rate, fulfilment rate, shop repeat-buyer rate, followers, main category and shop type. One small request per supplier, no extra charge. Also accepts includeFactoryProfile.",
            "default": false
          },
          "includeDescription": {
            "title": "Long description: text and images (详情描述)",
            "type": "boolean",
            "description": "With details: adds the offer's long description below the listing: its text (descriptionText) and image links (descriptionImages). One CDN request per offer, no extra charge.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name (price tracking)",
            "type": "string",
            "description": "A name for a scheduled watch (e.g. \"phone-cases-daily\"). The Actor remembers the offers and prices it delivered under this name: later runs add isNewOffer, previousPrice, priceChange, priceChangePct and soldCountChange to every row, and with onlyNew deliver only offers it has not seen. Also accepts snapshotName, or compareWithPreviousRun: true (a name derived from the input). Empty: no memory."
          },
          "onlyNew": {
            "title": "Only new offers",
            "type": "boolean",
            "description": "With a monitor name: skip matches delivered by earlier runs of the same monitor, so a weekly run delivers only new look-alikes. A run with nothing new ends successfully and costs nothing.",
            "default": false
          },
          "similarToOffers": {
            "title": "Offers similar to these 1688 offers (找同款)",
            "type": "array",
            "description": "1688 offer links or ids: each offer's main photo is searched by image and its look-alikes are returned (the offer itself is left out), e.g. to find cheaper suppliers of the same product. Charged as image matches. Optional.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Search keywords (关键词)",
            "type": "array",
            "description": "Optional: also search these products by keyword in the same run, one per line, Chinese (手机壳) or English (phone case). Charged as offers ($0.99 per 1,000).",
            "items": {
              "type": "string"
            }
          },
          "searchInChinese": {
            "title": "Search in Chinese (翻译成中文搜索)",
            "type": "boolean",
            "description": "For keywords only: translates keywords that aren't Chinese into the term 1688 sellers use (phone case → 手机壳) before searching. Free. Photos are not affected.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by (排序)",
            "type": "string",
            "description": "For keywords only: relevance, sales (best sellers first), cheapest first or most expensive first. Photo matches always come closest first.",
            "default": "relevance"
          },
          "deepScan": {
            "title": "Deep scan past the ~100-offer search limit",
            "type": "boolean",
            "description": "For keywords only: when a keyword needs more offers than one search returns (about 240), also search other sort orders and price bands.",
            "default": true
          },
          "offerIds": {
            "title": "Offer links or ids (商品链接)",
            "type": "array",
            "description": "Optional: 1688 offers to read in full in the same run, one per line (694308108048 or https://detail.1688.com/offer/694308108048.html). Charged as offer + offer details ($1.98 per 1,000).",
            "items": {
              "type": "string"
            }
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Country of the residential IPs (1688 serves logged-out visitors outside mainland China). US is the fastest in our tests; HK, SG, JP and others work too, and the run switches country by itself when one is refused. CN is replaced with US. Default US.",
            "default": "US"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}