# 1688 Image Search: Find Wholesale Suppliers by Photo (`automatic/1688-image-search`) Actor

Find 1688.com wholesale offers from a product photo: visually similar offers in similarity order with price, sales and English titles, plus optional supplier company, MOQ, price tiers and every variant's price and stock.

- **URL**: https://apify.com/automatic/1688-image-search.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 photo searches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 1688 Image Search: Find Wholesale Suppliers by Photo

Have a product photo and want to know who makes it? Drop in the picture and
get the **1688.com wholesale offers that look like it**, closest first, with
the price in yuan, recent sales, an English title and the offer link. Turn on
full details and the closest matches also come with the **supplier company,
ships-from city, MOQ, price tiers and every variant's own price and stock**.

- **Search by photo, not by guessing keywords:** an Amazon listing image, an
  AliExpress or Shopify product shot, a competitor's ad or your own photo.
- **Closest match first:** every result has a rank, so the factory's own
  listing and its near twins sit at the top of the list.
- **English titles included:** read Chinese wholesale listings at a glance.
- **Supplier details in the same run:** company name, member id, shop link,
  factory and TrustPass badges, MOQ, price ladder and variant stock for the
  matches you care about.
- **Up to 100 photos per run, up to 200 matches per photo.** Paste the photo
  links, or embed a photo as a base64 `data:` link.
- **You pay only for photos that found matches.** A broken link, a file that
  is not a photo or a photo with no match is skipped and listed in the run
  summary, never charged.

Built for dropshippers, Amazon and Shopify sellers, sourcing agents,
importers and product researchers who want the factory price behind a
product they have seen.

### Use cases

- **Find the factory behind a best seller:** search the main photo of an
  Amazon or TikTok Shop hit and compare 1688 suppliers by price and MOQ.
- **Cut sourcing time:** turn a customer's "find me this" photo into a
  ranked shortlist of suppliers in seconds.
- **Check your margins:** see the wholesale price range for a product before
  you list it.
- **Spot copies and alternatives:** see who else sells the same design and
  at what price.

### Quick start

Search two product photos and get the 20 closest offers for each:

```json
{
  "imageUrls": [
    "https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg",
    "https://example.com/my-product-photo.jpg"
  ],
  "maxResultsPerImage": 20
}
```

Add supplier and variant details for the 5 closest offers of each photo:

```json
{
  "imageUrls": ["https://example.com/my-product-photo.jpg"],
  "includeDetails": true,
  "maxDetailsPerImage": 5
}
```

Run with an empty input to see a small sample (one photo, 10 matches, full
details for the top 2).

### Input

| Field | Default | What it does |
|---|---|---|
| `imageUrls` | none | Up to 100 photo links (JPEG, PNG, WebP, GIF, BMP, TIFF or AVIF). A base64 `data:` link also works. |
| `maxResultsPerImage` | `20` | Matches returned per photo, closest first (up to 200). |
| `includeDetails` | `false` | Also read the full offer and supplier details of the closest matches. |
| `maxDetailsPerImage` | `5` | How many of each photo's closest matches get full details (up to 50). |

A link that cannot be downloaded or is not a photo is skipped and named in
the run summary; every other photo still runs. Very large photos are resized
before searching.

**Photo on your computer?** Put it anywhere that gives a public link (your
store, a cloud drive's public link, an image host) and paste that link under
Photo links. Or save it as a record in an Apify key-value store and paste the
record's shareable link (it ends in `?signature=...`): the plain record link
of a private store cannot be read by the run.

### What you get

One row per match. Real example with full details (variants, attributes and
images trimmed):

```json
{
  "imageInput": "https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg",
  "imageIndex": 1,
  "rank": 1,
  "matchesReported": 700,
  "offerId": "1032476014265",
  "url": "https://detail.1688.com/offer/1032476014265.html",
  "title": "工厂直销无线鼠标静音可充电笔记本电脑办公双模蓝牙鼠标现货速发",
  "titleEn": "Factory Direct Sales Wireless Mouse, Silent, Rechargeable, Dual-Mode Bluetooth Mouse for Laptop and Office Use, in Stock for Quick Delivery",
  "priceCny": 5.7,
  "currency": "CNY",
  "monthlySales": 3454,
  "imageUrl": "https://cbu01.alicdn.com/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg",
  "details": {
    "offerId": "1032476014265",
    "url": "https://detail.1688.com/offer/1032476014265.html",
    "title": "工厂直销无线鼠标静音可充电笔记本电脑办公双模蓝牙鼠标现货速发",
    "titleEn": null,
    "currency": "CNY",
    "priceMinCny": 5.7,
    "priceMaxCny": 7.5,
    "priceRangeText": "￥5.7-￥7.5",
    "priceTiers": [
      {
        "minQuantity": 1,
        "priceCny": 5.7
      }
    ],
    "minOrderQuantity": 1,
    "unit": "个",
    "soldCount": 16466,
    "soldCountText": "1万+",
    "stockTotal": 6982997,
    "skuCount": 7,
    "skuProperties": [
      {
        "name": "规格",
        "values": [
          {
            "name": "M256电池版-湖水绿【2.4G无线版】有声按键",
            "imageUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01kndG1z1gzbkmWXgCs_!!2217178994213-0-cib.jpg"
          }
        ]
      }
    ],
    "skus": [
      {
        "skuId": "6212647663720",
        "specId": "c39e43d3bb33cd95365eeeda007c89ba",
        "name": "M127天空蓝-双模【蓝牙+2.4G无线版】静音按键",
        "options": {
          "规格": "M127天空蓝-双模【蓝牙+2.4G无线版】静音按键"
        },
        "priceCny": 7.5,
        "promoPriceCny": null,
        "stock": 996903,
        "imageUrl": "https://cbu01.alicdn.com/img/ibank/O1CN01g7TjMt1gzbkn7dWlo_!!2217178994213-0-cib.jpg",
        "weightKg": 0.09
      }
    ],
    "supplier": {
      "companyName": "东莞市大岭山承鑫电子厂(个体工商户)",
      "accountName": "东莞市承鑫电子",
      "memberId": "b2b-2217178994213d75c3",
      "userId": "2217178994213",
      "shopUrl": "https://winport.m.1688.com/page/index.html?memberId=b2b-2217178994213d75c3&_tabId_=offerlist&upstreamSource=od&offerId=1032476014265",
      "location": "广东东莞",
      "isFactory": true,
      "isTrustPass": true,
      "isSuperFactory": false
    },
    "shipping": {
      "shipsFrom": "广东东莞",
      "deliveryPromise": "承诺48小时发货·常发圆通快递",
      "deliveryDays": 2,
      "unitWeightKg": null
    },
    "attributes": [
      {
        "name": "品牌",
        "value": "科罗米"
      },
      {
        "name": "工作方式",
        "value": "无线蓝牙双模"
      },
      {
        "name": "无线技术",
        "value": "2.4G蓝牙"
      }
    ],
    "services": [
      "严选品质不符包赔",
      "极速开票"
    ],
    "mainImage": "https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg",
    "images": [
      "https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg",
      "https://cbu01.alicdn.com/img/ibank/O1CN019mQlUe1IOvEa5dH0R_!!2616970884.png"
    ],
    "videoUrl": "https://cloud.video.taobao.com/play/u/2217178994213/p/2/e/6/t/1/738965672282805.mp4",
    "descriptionUrl": "https://itemcdn.tmall.com/1688offer/icoss3208836141f4c861a735bd0b5b",
    "categoryId": "124734050",
    "topCategoryId": "7"
  },
  "detailsStatus": "ok",
  "collectedAt": "2026-11-16T21:56:01+00:00",
  "detailsError": null
}
```

Without full details, `details` is `null` and `detailsStatus` is
`not_requested`. Prices are in Chinese yuan (CNY) as the suppliers list them.
The run summary (`OUTPUT` in the key-value store) lists every photo with its
match count, plus skipped photos with the reason and why the run stopped.

### Use it as an API

Find the 1688 wholesale offers behind one product photo: titles, CNY prices, sales and links, closest first. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

```bash
curl --get 'https://automatic--1688-image-search.apify.actor/' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --data-urlencode 'imageUrl=https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg' \
  --data-urlencode limit=10
```

Send the same fields as a JSON object with `POST /`. Results are in `data`. See `GET /openapi.json` for the request and response definitions.

### Pricing

Pay per photo that found matches, with no start fee. Full details are an
optional extra per offer:

| | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Photo search (all its matches, up to 200) | $3.00 / 1,000 | $2.70 / 1,000 | $2.40 / 1,000 | $2.10 / 1,000 |
| Offer with full details | $3.00 / 1,000 | $2.70 / 1,000 | $2.40 / 1,000 | $2.10 / 1,000 |

Set a maximum cost per run and the run stops cleanly at it, keeping every
photo already searched.

### Good to know

- Matches are visually similar offers, not proof of the same product or the
  original factory: compare photos, specs and the supplier before you order.
- Titles, specifications and variant names are in Chinese as the supplier
  wrote them; each match also carries an English title.
- HEIC photos (the iPhone default) are not read; export them as JPEG first.
- Shipping cost depends on your address and is not included; the ships-from
  city, delivery promise and variant weights are, with full details on.
- Reviews and supplier ratings are not included.
- 100 photos with 20 matches each take about 4 minutes; full details add a
  few seconds per offer. The run warns up front when its timeout is too short
  for everything asked.

# Actor input Schema

## `imageUrls` (type: `array`):

Up to 100 photos: a direct link to a JPEG, PNG, WebP, GIF, BMP, TIFF or AVIF image, such as an Amazon, AliExpress, Shopify or supplier product photo. A base64 data: link (data:image/jpeg;base64,...) also works. To use a photo from your computer, upload it somewhere public and paste its link, or use an Apify key-value store record's shareable link (it ends in ?signature=...). A link that is not a photo, or one that cannot be downloaded, is skipped and named in the run summary; the others still run. An empty run input searches a small sample.

## `maxResultsPerImage` (type: `integer`):

How many visually similar 1688 offers to return for each photo, closest first.

## `includeDetails` (type: `boolean`):

For the closest matches, also read each offer's full details: supplier company, ships-from city, MOQ, price tiers, every variant with its own price and stock, specs and photos. Charged per offer with details.

## `maxDetailsPerImage` (type: `integer`):

How many of each photo's closest matches get full details when the option above is on.

## Actor input object example

```json
{
  "imageUrls": [
    "https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg"
  ],
  "maxResultsPerImage": 10,
  "includeDetails": true,
  "maxDetailsPerImage": 2
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg"
    ],
    "maxResultsPerImage": 10,
    "includeDetails": true,
    "maxDetailsPerImage": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/1688-image-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "imageUrls": ["https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg"],
    "maxResultsPerImage": 10,
    "includeDetails": True,
    "maxDetailsPerImage": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/1688-image-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://cbu01.alicdn.com/img/ibank/O1CN019DCaw11gzbkn9eqsG_!!2217178994213-0-cib.jpg"
  ],
  "maxResultsPerImage": 10,
  "includeDetails": true,
  "maxDetailsPerImage": 2
}' |
apify call automatic/1688-image-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/1688-image-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ShvSxSs9giUJGdFGE/builds/C5TswaWRsGlrwspIO/openapi.json
