# 1688 Image Search API - Find Wholesale Suppliers by Photo (`topapi/image-search-1688-api`) Actor

Search 1688.com by photo in one HTTP request: send an image URL or base64 and get the matching wholesale offers back with price, MOQ, units sold, repeat-buyer rate, similarity and supplier. Optional SKUs, stock, specs, weight. For code, n8n, Make and AI agents (MCP).

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

## Pricing

from $0.20 / 1,000 image matches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 API** searches 1688.com (Alibaba's Chinese wholesale market) **by photo** in **one HTTP
request** and returns the matching wholesale offers in the response: no run to start, no dataset to fetch. Send a
product photo link from anywhere (Amazon, Shopify, AliExpress, TikTok Shop, 1688), the photo's bytes as base64, or a
1688 offer to find look-alikes of. It is an Apify **Server Actor**, so it also works as a **tool for AI agents (MCP)**
and as one **HTTP Request** step in n8n, Make or Zapier.

Each match carries 1688's rank and similarity score, the title in Chinese and English, the price in CNY and USD, the
minimum order, units sold, repeat-buyer rate, ad flag, attributes and category, and the supplier: company, years on
1688, province and city, business type (manufacturer or wholesaler), factory badges and composite score. Filter by
price, province, verified factories, dropshipping, free shipping, supplier type, years, MOQ, similarity, ads and one
offer per supplier, and add the **offer-page details** (price tiers, SKUs with stock, specs, weight, shipping, rating,
dropship stats, landed cost) when you need them. **You pay per match returned**; a photo with no matches costs nothing.

### ✨ What you get

- 🔎 **The match**: rank in 1688's order, `similarityScore`, 1688's total match count for the photo
- 🏷️ **The offer**: id, offer URL (desktop and mobile), title (Chinese) + `titleEn`, photo, price in CNY + `priceUsd`
  (today's rate), MOQ and unit, units sold, orders, repeat-buyer rate, ad flag, tags, attributes (+ English),
  ranking badges, category path, the "same design" search link
- 🏭 **The supplier**: member id, login id, company name, shop URL, years on 1688, business type (Chinese + English),
  province, city, factory inspection / business inspection / super factory flags, composite score, inspection report
- 📋 **Details add-on** (`includeDetails`): every photo, video, price tiers, SKU matrix with price and stock, specs
  (+ English), stock, total sold, weight and package size, shipping origin and fee, services, rating, dropship stats,
  supplier followers / fulfillment / review rates, `estLandedCostUsd` for US, EU, UK, AU or global, the seller's
  description (`includeDescription`)
- 🧭 **Filters**: price range, provinces, verified factories, dropshipping, free shipping (applied by 1688), supplier
  type, inspected factories, minimum years, maximum MOQ, minimum similarity, no ads, one per supplier
- 📄 **Paging**: `meta.nextOffset` reads the next matches of the same photo (1688 orders up to ~700 per photo)
- 🔑 No 1688 account, no login, no API key of yours (only your Apify token)

### 🚀 How to call it

Every request needs your **Apify API token** in the `Authorization` header.

#### GET

```bash
curl "https://topapi--image-search-1688-api.apify.actor/search?image=https%3A%2F%2Fcbu01.alicdn.com%2Fimg%2Fibank%2FO1CN01Xpr968aWheJ3thOC_%21%212212762542575-0-cib.jpg&maxResults=20" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>"
```

URL-encode the photo link when it goes in a query string.

#### POST

```bash
curl -X POST "https://topapi--image-search-1688-api.apify.actor/search" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d '{"image": "https://m.media-amazon.com/images/I/61Cev2aFG5L._AC_SX695_.jpg", "maxResults": 30, "priceMax": 20, "verifiedFactoryOnly": true, "onePerSupplier": true}'
```

#### POST a photo file (base64)

```bash
curl -X POST "https://topapi--image-search-1688-api.apify.actor/search" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d "{\"imageBase64\": \"$(base64 -w0 product.jpg)\", \"maxResults\": 20}"
```

The whole request body is limited to 1,000,000 bytes (a photo of about 700 KB). Shrink a bigger photo first (1688
searches a 360 px copy anyway) or send its link.

#### Python

```python
import requests

URL = "https://topapi--image-search-1688-api.apify.actor/search"
HEADERS = {"Authorization": "Bearer <YOUR_APIFY_TOKEN>"}
params = {"image": "https://m.media-amazon.com/images/I/61Cev2aFG5L._AC_SX695_.jpg", "maxResults": 50, "excludeAds": True}
matches, seen = [], set()
for _ in range(3):                       # three requests = up to 150 matches
    r = requests.get(URL, params=params, headers=HEADERS, timeout=180)
    data = r.json()
    if r.status_code != 200:
        print(r.status_code, data["error"]["type"]); break
    matches += [m for m in data["items"] if m["offerId"] not in seen]
    seen.update(m["offerId"] for m in data["items"])
    if data["meta"]["nextOffset"] is None:
        break
    params["offset"] = data["meta"]["nextOffset"]
print(len(matches), "matches")
```

#### JavaScript

```javascript
const res = await fetch('https://topapi--image-search-1688-api.apify.actor/search', {
    method: 'POST',
    headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({ offer: '944759232751', maxResults: 10, supplierType: 'manufacturer' }),
});
const { items, meta } = await res.json();
console.log(items.length, items[0]?.titleEn, items[0]?.price, items[0]?.supplier.companyName, meta.nextOffset);
```

#### n8n, Make, Zapier

One **HTTP Request** step: method `GET`, URL `https://topapi--image-search-1688-api.apify.actor/search`, query
parameters `image` and `maxResults`, header `Authorization` = `Bearer <YOUR_APIFY_TOKEN>`. The matches are `items`.
To send a file from an earlier step, use `POST` with a JSON body `{"imageBase64": "<the file as base64>"}`.

#### AI agents (MCP)

MCP server URL: `https://topapi--image-search-1688-api.apify.actor/mcp` (Streamable HTTP, header
`Authorization: Bearer <YOUR_APIFY_TOKEN>`). Tool: `search_by_image`, same parameters as the HTTP endpoint. Use
`compact: true` to give the model only the core fields.

### ⚙️ Parameters

Give exactly one of `image`, `imageBase64` or `offer`.

| Parameter | Type | Default | What it does |
|---|---|---|---|
| `image` | string | | A product photo URL from anywhere (JPG, PNG, WebP, GIF), a 1688 image-search link (with `imageId` or `imageAddress`) or a 1688 offer link. Also `imageUrl`, `url`, `photo`, `photoUrl`, `img`. |
| `imageBase64` | string | | The photo bytes as base64 or a data URI (`data:image/jpeg;base64,...`). POST it. Also `base64`, `imageData`. |
| `offer` | string | | A 1688 offer id or link: its main photo is searched, to find look-alikes. Also `offerId`, `offerUrl`. |
| `maxResults` | integer | `20` | Matches to return, 1-50. Also `limit`, `maxItems`, `maxMatches`, `count`, `num`. |
| `offset` | integer | `0` | Start after this many matches of 1688's answer (0-719): pass the previous `meta.nextOffset`. Also `start`, `skip`. |
| `sortBy` | string | `relevance` | `relevance` (1688's best match), `bestSelling`, `priceAsc`, `priceDesc`. |
| `priceMin`, `priceMax` | number | | Price range in yuan (CNY). |
| `provinces` | list | | Supplier provinces in English or Chinese (`Guangdong,Zhejiang` or `广东`). |
| `verifiedFactoryOnly` | boolean | `false` | Only suppliers 1688 certifies as real factories (真实工厂认证). |
| `dropshippingOnly` | boolean | `false` | Only offers that ship one piece to your customer (一件代发). |
| `freeShippingOnly` | boolean | `false` | Only offers with free shipping inside China (包邮). |
| `supplierType` | string | `any` | `manufacturer` (生产加工) or `wholesaler` (经销批发). |
| `inspectedFactoryOnly` | boolean | `false` | Only suppliers with an on-site factory inspection (深度验厂). |
| `minSupplierYears` | integer | | Only suppliers on 1688 for at least this many years. |
| `maxMoq` | integer | | Only offers whose minimum order is at most this many units. |
| `minSimilarity` | number | | Only matches with at least this 1688 similarity score (relative per photo; 0.02-0.48 measured). |
| `excludeAds` | boolean | `false` | Drop sponsored placements. |
| `onePerSupplier` | boolean | `false` | Keep only each supplier's best-ranked offer. |
| `includeDetails` | boolean | `false` | Read each match's offer page (the details add-on). Also `details`, `enrichDetails`, `fetchDetails`. |
| `includeSkuDetails` | boolean | `true` | With details: the SKU matrix (attributes, price, stock, image). |
| `includeDescription` | boolean | `false` | With details: the seller's description text and images (turns details on). |
| `includeDescriptionHtml` | boolean | `false` | Also the description's raw HTML. |
| `translateTitles` | boolean | `true` | `titleEn`, `attributesEn`, `specsEn` (machine translation, free). |
| `targetMarket` | string | `none` | With details: `estLandedCostUsd` for `US`, `EU`, `UK`, `AU` or `global` (unit price + weight x air freight). |
| `usdPerCny` | number | today's rate | Exchange rate for `priceUsd`. |
| `shippingUsdPerKg` | number | 9-11 | Your freight rate for the landed cost. |
| `compact` | boolean | `false` | Core fields only, for AI agents and spreadsheets. |

`GET /` lists the endpoints; the **Server** tab in Console shows the OpenAPI description.

### 📦 Response

A real answer for the phone-case photo in the GET example (Apify, 2026-11-18, `maxResults=3`), trimmed to the first
match and its main fields (a full row carries every field listed under "What you get"; details fields are empty
without `includeDetails`):

```json
{
  "ok": true,
  "count": 3,
  "items": [{
    "queryImage": "https://cbu01.alicdn.com/img/ibank/O1CN01Xpr968aWheJ3thOC_!!2212762542575-0-cib.jpg",
    "rank": 1,
    "similarityScore": 0.3453,
    "totalMatches": 698,
    "offerId": "927875250705",
    "title": "跨境适用苹果18promax手机壳磁吸16防摔磨砂iphone17pm保护壳批发",
    "titleEn": "Cross-border applicable Apple 18promax mobile phone case magnetic 16 anti-fall matte iphone17pm protective case wholesale",
    "detailUrl": "https://detail.1688.com/offer/927875250705.html",
    "image": "https://cbu01.alicdn.com/img/ibank/O1CN016Epuj21nbybANupYM_!!2850655109-0-cib.jpg",
    "price": 7.5,
    "priceUsd": 1.1228,
    "currency": "CNY",
    "minOrderQuantity": 50,
    "unit": "件",
    "soldCount": 442022,
    "bookedCount": 3271,
    "offerRepurchaseRate": 72,
    "isAd": true,
    "attributesEn": [{ "name": "Material", "value": "High quality TPU" }, { "name": "Craftsmanship", "value": "Frosted" }],
    "categoryPath": ["1042207", "50911", "7"],
    "supplier": {
      "memberId": "b2b-2850655109d72ea",
      "companyName": "佛山市南海区三丰手机配件有限公司",
      "shopUrl": "https://shop1460393846166.1688.com",
      "yearsOnPlatform": 11,
      "bizTypeEn": "manufacturer",
      "province": "广东",
      "city": "佛山市",
      "factoryInspection": true,
      "compositeScore": 4.5
    },
    "detailsStatus": null
  }],
  "meta": {
    "searchedBy": "address", "totalMatches": 698, "sortBy": "relevance", "offset": 0, "pages": 1, "examined": 3,
    "filtered": {}, "withDetails": 0, "stopReason": "maxResults", "nextOffset": 3, "usdPerCny": 0.149705,
    "charged": { "match": 3 }, "ms": 4323
  }
}
```

With `includeDetails=true&targetMarket=US` the same offer also carried (same day, trimmed):
`"detailsStatus": "ok"`, `"quantityPrices": [{"quantityRange": "50~499个", "price": 7.5}, {"quantityRange": "500~2999个", "price": 7.32}, {"quantityRange": "≥3000个", "price": 7.04}]`,
`"stock": 5680570`, `"totalSold": 98389`, `"packageDimensions": {"lengthCm": 17, "widthCm": 7, "heightCm": 1, "weightG": 40}`,
`"shipping": {"location": "广东省佛山市", "freeShipping": true}`, `"rating": {"goodRatePct": 99.9, "reviewCount": 7964}`,
`"dropshipScore": 60`, `"estLandedCostUsd": 1.48`, 19 photo URLs, a video URL, `specs` + `specsEn`, and `skuDetails`
with 339 SKUs (`{"specAttrs": "墨绿色 / iPhone13Pro Max", "price": 7.04, "stock": 16888}`, ...). A SKU matrix can be
large (this one was ~100 KB): `includeSkuDetails=false` drops it.

| Field | Filled |
|---|---|
| `offerId`, `title`, `detailUrl`, `image`, `price`, `similarityScore`, `minOrderQuantity`, `soldCount`, `bookedCount`, `offerRepurchaseRate`, `categoryPath`, `supplier.companyName`, `supplier.memberId`, `supplier.yearsOnPlatform`, `supplier.compositeScore` | 100% (360 matches from 6 live 1688 answers, 2026-11-18) |
| `titleEn`, `priceUsd` | 100% (100 matches from two 50-match requests on Apify) |
| `attributesEn` | 80% of those 100 (matches whose card lists attributes) |
| `supplier.province` | 87-89% (1688 prints no province on the rest) |
| `supplier.bizType` / `bizTypeEn` | 68-81% |
| With details (offer pages read): `images`, `skuDetails`, `specs`, `specsEn`, `stock`, `shipping`, `services`, `rating`, `dropship` | 100% of the pages read (27 of 30 pages read in a live test; 3 answered a check page and were not charged) |
| With details: `quantityPrices` | offers with a quantity ladder (a SKU-priced offer has none: see `priceMin` / `priceMax`) |
| With details: `unitWeightKg` / `estLandedCostUsd` | 48% / 94% of read pages (the landed cost also uses the package weight) |

### 🧾 Status codes (and what is charged)

| HTTP | `error.type` | Meaning | Charged |
|---|---|---|---|
| `200` | | Matches returned | `match` per match, `product-details` per match whose offer page was read |
| `400` | `invalid-input` | No photo or several, a bad parameter, `priceMax` below `priceMin`, bad base64 | No |
| `400` | `private-address` | The photo link points to a private or local network address (directly, through DNS or through a redirect) or a port other than 80 / 443 | No |
| `400` | `image-not-reachable`, `not-an-image`, `image-too-large` | The photo link answered an error, is not a photo, or is over 10 MB / 40 megapixels | No |
| `404` | `no-matches` | 1688 found nothing, or nothing passed your filters (`error.meta` shows what was read and removed) | No |
| `404` | `offer-not-found`, `forbidden-image` | The 1688 offer does not exist, or 1688 refuses to search the photo | No |
| `413` | `payload-too-large` | Request body over 1,000,000 bytes | No |
| `429` | `too-many-requests` | More than 4 of your requests in flight at once | No |
| `503` | `blocked`, `timeout`, `search-failed` | 1688 or the photo's host refused or did not answer; retry | No |

### 💰 Pricing

| Event | Price |
|---|---|
| Match returned (`match`) | **$0.0002** ($0.20 per 1,000) |
| Offer-page details add-on (`product-details`) | $0.0027 per match whose offer page was read |

No start fee, nothing per photo. 20 matches cost $0.004, 50 matches $0.01; with details add $0.0027 per match that
gets them. Nothing is charged for `4xx` or `503` answers, and a match whose offer page could not be read comes back
without details and without the add-on charge.

### 🗃️ Batch runs (input interface)

You can also start the actor as a normal run with many photos at once (image URLs, an uploaded file, base64, 1688
offers), up to 720 matches per photo across 1688's sort orders, monitor mode (only offers not delivered before), and
one dataset row per match. Use the HTTP endpoint for one photo at a time.

### ⏱️ Speed (measured on Apify, 2026-11-18)

Server at 256 MB; client-side times, one request after another unless noted:

- 5 or 20 matches for a photo on Alibaba's CDN: 1.2-1.4 s; 50 matches: 1.8-2.3 s
- 20 matches for an Amazon photo (downloaded, shrunk and uploaded to 1688): 1.8-1.9 s
- First request after a quiet spell (a server run starts): 5.4-8.8 s (once 16.6 s)
- 10 matches with offer-page details: 12-20 s, once 47 s when 1688's offer pages answered slowly
- Look-alikes of a 1688 offer (`offer=...`): 14.6 s (its offer page is read first)
- 4 requests at once (two of them 10 matches with details): matches in 6.5-6.8 s, details in 40-42 s

### ⚠️ Limits

- **Similarity is 1688's.** `similarityScore` is 1688's own relative score (0.02-0.48 measured), not a 0-1 identity
  test. The first matches are usually the same product from many suppliers; sponsored offers (`isAd`) are mixed in.
- **1688's order is live.** Between two paged requests 1688 can move an offer across the page boundary, so a few
  offers may repeat (1 in 20 seen in a test): de-duplicate by `offerId`. 1688 pages one order about 700 deep.
- **Filters on our side read 4 pages at most** (240 offers) per request. When strict filters leave fewer matches than
  asked, the response says so and `meta.nextOffset` continues from there.
- **Details are a separate read per match** (the offer page, through residential exits in China): slower, and a few
  pages per 100 answer with a check page; those matches come back without details and are not charged for them.
- **Photos**: JPG, PNG, WebP, GIF; up to 10 MB and 40 megapixels by link, about 700 KB as base64 in a POST body.
  Photos on Alibaba's own CDN (alicdn.com, aliexpress-media.com) are fetched by 1688 itself; other photos are
  downloaded, shrunk to 360 px and uploaded to 1688's image search. Only public links on ports 80 / 443 are fetched.
- The supplier flags `isTp`, `powerMerchant` and `factoryDealer` are filled only with details (1688's search card
  prints false for every supplier, so they are null without the offer page).

### ❓ FAQ

#### Do I need a 1688 or Alibaba account?

No. The actor uses 1688's image search the way a signed-out visitor does. You only need your Apify token.

#### What does a search cost?

$0.0002 per match returned: 20 matches = $0.004, 50 matches = $0.01. With `includeDetails`, add $0.0027 per match
whose offer page was read. A photo with no matches is free.

#### Which photos work?

Any product photo link: Amazon, Shopify, AliExpress, TikTok Shop, eBay, your own site, 1688 itself. White-background
product shots match best. A 1688 image-search link (`s.1688.com/youyuan/...imageId=...`) and a 1688 offer link work
too.

#### Can I send a photo file instead of a link?

Yes: POST `imageBase64` with the file as base64 or a data URI, up to about 700 KB. For bigger files send a link or
shrink the photo first.

#### How do I get more than 50 matches?

Repeat the request with `offset` set to the previous `meta.nextOffset` (same photo, `sortBy` and 1688-side filters).
1688 orders up to about 700 matches per photo; a batch run walks other sort orders for more.

#### How do I find factories, not resellers?

`supplierType=manufacturer`, `verifiedFactoryOnly=true` or `inspectedFactoryOnly=true`, plus `onePerSupplier=true`
for a shortlist of distinct suppliers.

#### Can I get the price in dollars?

Every match has `priceUsd` at today's published CNY rate (or your `usdPerCny`). With details and `targetMarket`, also
`estLandedCostUsd` (unit price + the offer's weight x air freight).

#### How do I find look-alikes of a 1688 offer?

Send `offer=<offer id or link>`: the offer's main photo is read from its page and searched.

#### How do I use it from an AI agent?

Point an MCP client at `https://topapi--image-search-1688-api.apify.actor/mcp` with your Apify token, or add it
through `mcp.apify.com`. The tool is `search_by_image`; `compact: true` keeps answers short.

#### What if 1688 refuses a request?

You get a `503` and pay nothing. A retry a moment later usually works.

#### Your feedback

Open an issue on the actor page with the request you sent and the response you got.

# Actor input Schema

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

Product photo links from anywhere: Amazon, Shopify, AliExpress, TikTok Shop, 1688 (JPG, PNG, WebP, GIF). A 1688 image-search link (s.1688.com/youyuan/...imageId=...) works too.

## `imageFile` (type: `string`):

A photo from your computer (JPG, PNG, WebP). It is searched like an image URL.

## `imagesBase64` (type: `array`):

Photos as base64 strings or data URIs, e.g. \["data:image/jpeg;base64,/9j/4AAQ..."]. For API and ERP callers that hold the bytes.

## `similarToOffers` (type: `array`):

1688 offer links or ids, e.g. "https://detail.1688.com/offer/944759232751.html" or "944759232751". The offer's main photo is read from its page and searched.

## `sortBy` (type: `string`):

The order 1688 returns matches in. Best match mixes visual similarity, sales and sponsored placement, as on 1688.com.

## `priceMin` (type: `number`):

Only offers priced at or above this many yuan, e.g. 5. Empty = no floor.

## `priceMax` (type: `number`):

Only offers priced at or below this many yuan, e.g. 30. Empty = no ceiling.

## `provinces` (type: `array`):

Only suppliers in these provinces, in English or Chinese, e.g. "Guangdong", "Zhejiang", "浙江". Empty = all of China.

## `verifiedFactoryOnly` (type: `boolean`):

Only suppliers 1688 has certified as real factories (真实工厂认证).

## `dropshippingOnly` (type: `boolean`):

Only offers that ship a single piece to your customer (一件代发).

## `freeShippingOnly` (type: `boolean`):

Only offers with free domestic shipping in China (包邮).

## `supplierType` (type: `string`):

Keep only suppliers of this business type. A match whose card names no type is left out when a type is chosen.

## `inspectedFactoryOnly` (type: `boolean`):

Keep only suppliers with an on-site factory inspection (深度验厂).

## `minSupplierYears` (type: `integer`):

Keep only suppliers trading on 1688 for at least this many years, e.g. 3.

## `maxMoq` (type: `integer`):

Keep only offers whose minimum order is at most this many units, e.g. 50.

## `minSimilarity` (type: `number`):

Keep only matches whose 1688 similarity score is at least this, e.g. 0.3. Scores are relative per photo (0.02-0.48 measured); the closest matches score highest.

## `excludeAds` (type: `boolean`):

Drop paid placements (isAd = true). They are often less similar.

## `onePerSupplier` (type: `boolean`):

For each photo, keep only the best-ranked offer of each supplier: a shortlist of distinct factories.

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

Open each match's offer page: price tiers, MOQ, SKUs with price and stock, specs, images, video, weight and size, shipping, rating, dropship stats, supplier stats. Charged only when the page is read.

## `includeSkuDetails` (type: `boolean`):

With details on: every SKU's attributes, price, stock and image. Off = a shorter row.

## `includeDescription` (type: `boolean`):

With details on: the seller's long description as text plus its images (turns details on).

## `includeDescriptionHtml` (type: `boolean`):

Also keep the description's raw HTML (turns details and description on).

## `translateTitles` (type: `boolean`):

Add titleEn, attributesEn and (with details) specsEn: machine translations of 1688's Chinese text. Free.

## `targetMarket` (type: `string`):

With details on: estLandedCostUsd = unit price in USD + the offer's own weight x air freight per kg for this market.

## `usdPerCny` (type: `number`):

Exchange rate for priceUsd, e.g. 0.14. Empty = today's published rate.

## `shippingUsdPerKg` (type: `number`):

Your freight rate for the landed cost, e.g. 8.5. Empty = 9 (US), 10 (EU, UK, AU) or 11 (rest of world).

## `monitorMode` (type: `boolean`):

Deliver only offers not delivered for the same photo by earlier runs with the same store name. The window is the top N matches (Max matches per photo).

## `monitorStoreName` (type: `string`):

Named key-value store that remembers what was delivered. Use one name per watch list.

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

Matches per photo in 1688's order, 60 per page. 1688 finds up to ~700 per photo (about 630 distinct offers after de-duplication).

## `maxImages` (type: `integer`):

Search at most this many photos; extra photos are listed in RUN_SUMMARY, never searched or charged. Empty = all.

## `maxItems` (type: `integer`):

Hard ceiling on rows (and on the bill) for the whole run. Empty = no ceiling.

## `compact` (type: `boolean`):

Core fields only (match, price, MOQ, sales, supplier basics), trimmed for spreadsheets and AI/MCP pipelines. Details fields stay when details are on.

## `proxyConfiguration` (type: `object`):

Searches go out on the platform's own connection first, then on this proxy if 1688 shows its slider check, then residential. Set your own proxy to use only that one.

## `detailProxyConfiguration` (type: `object`):

Offer pages (details) are read on a fresh residential China session each. Change only to use your own residential proxy.

## `maxConcurrency` (type: `integer`):

How many offer pages are read at once with details on. More is faster but draws more timeouts from the residential proxy.

## Actor input object example

```json
{
  "imageUrls": [
    "https://cbu01.alicdn.com/img/ibank/O1CN01Xpr968aWheJ3thOC_!!2212762542575-0-cib.jpg",
    "https://cbu01.alicdn.com/img/ibank/15418323391_1847764777.jpg"
  ],
  "sortBy": "relevance",
  "verifiedFactoryOnly": false,
  "dropshippingOnly": false,
  "freeShippingOnly": false,
  "supplierType": "any",
  "inspectedFactoryOnly": false,
  "excludeAds": false,
  "onePerSupplier": false,
  "includeDetails": false,
  "includeSkuDetails": true,
  "includeDescription": false,
  "includeDescriptionHtml": false,
  "translateTitles": true,
  "targetMarket": "none",
  "monitorMode": false,
  "monitorStoreName": "1688-image-search-monitor",
  "maxResultsPerImage": 20,
  "compact": false,
  "maxConcurrency": 10
}
```

# Actor output Schema

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

One item per 1688 offer matched to a photo: rank, similarity, price, MOQ, sales, supplier; with details the price tiers, SKUs, specs, shipping, rating and dropship stats.

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

Per photo: how it was searched (address, upload, offer photo), 1688's match count, pages read, delivered, filtered and duplicate matches; offer pages not readable (not charged); calls per egress rung.

# 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/O1CN01Xpr968aWheJ3thOC_!!2212762542575-0-cib.jpg",
        "https://cbu01.alicdn.com/img/ibank/15418323391_1847764777.jpg"
    ],
    "maxResultsPerImage": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("topapi/image-search-1688-api").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/O1CN01Xpr968aWheJ3thOC_!!2212762542575-0-cib.jpg",
        "https://cbu01.alicdn.com/img/ibank/15418323391_1847764777.jpg",
    ],
    "maxResultsPerImage": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("topapi/image-search-1688-api").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/O1CN01Xpr968aWheJ3thOC_!!2212762542575-0-cib.jpg",
    "https://cbu01.alicdn.com/img/ibank/15418323391_1847764777.jpg"
  ],
  "maxResultsPerImage": 20
}' |
apify call topapi/image-search-1688-api --silent --output-dataset

```

## MCP server setup

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

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/M7rhfS4ExNpKKhZV5/builds/5cBWR7u1jzzRlBNWC/openapi.json
