# Image Search Scraper: 1688, Alibaba.com and AliExpress (`scrapewise/sourcing-image-search-scraper`) Actor

Scrape similar products from 1688, Alibaba.com and AliExpress for product photos in one run: prices in US$, store, title, link, image, minimum order and supplier name, side by side and sorted by price. Error rows are free.

- **URL**: https://apify.com/scrapewise/sourcing-image-search-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 image searcheds

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

## Sourcing Image Search Scraper: find similar supplier offers from a product photo

Scrape **similar supplier offers from a product photo** on 1688, Alibaba.com and AliExpress in one run, with prices in US$, minimum order and supplier name. **US$ 0.02 for one photo with up to 60 offers**, no login.

### What does this image search scraper do?

- Takes product photos as links or one uploaded file, and searches **1688** (China wholesale), **Alibaba.com**
  (international B2B) and **AliExpress** (retail) at once.
- Returns every similar offer as one row: price converted to US$, store, title (with an English title for 1688),
  link, image, minimum order when the store shows it, and the supplier company name for 1688 and Alibaba.com.
- Sorts the offers by price inside each photo, so the three stores sit side by side, and adds a summary row with the
  median price per store.

### Who uses it

- **Importers and Amazon or Shopify sellers:** the landed cost of a product they found somewhere else.
- **Sourcing agents:** wholesale sources for a photo a customer sent them.
- **Buyers comparing channels:** what 1688, Alibaba.com and AliExpress charge for the same item.
- **Sourcing sheets and AI agents:** supplier candidates from an image, ready to filter by price and minimum order.

### How much does it cost to search suppliers by image?

| What | Price |
|---|---|
| Each photo searched (with at least one offer) | **US$ 0.00525** (covers up to 60 offers of that photo) |
| Each offer beyond 60 in the same photo | **US$ 0.001** |
| Run start | US$ 0.005 per run |

- One photo with 60 offers = US$ 0.00525 + US$ 0.005 = **US$ 0.01**.
- Three photos with up to 60 offers each = 3 x US$ 0.00525 + US$ 0.005 = **US$ 0.02**.
- One photo with 120 offers = US$ 0.00525 + 60 x US$ 0.001 + US$ 0.005 = **US$ 0.07**.
- A photo with no match, error rows and duplicates are free. A store that does not answer for one photo does not stop
  the others, and its error row is free.

`maxItems` is a hard cap for the whole run, and a spending limit set on the run stops it cleanly with everything
delivered so far.

### How to search 1688, Alibaba.com and AliExpress by image

1. Paste one or more public photo links in **Product photo links**, or use **Or upload one photo**.
2. Keep the three stores on, or turn off the ones you do not need, and set **Max offers per store and photo**.
3. Click **Start**. Offers appear in the Output tab, cheapest first, and export to JSON, CSV or Excel.

One photo, default settings (20 offers per store, up to 50 offers in total):

```json
{
  "imageUrls": ["https://ae-pic-a1.aliexpress-media.com/kf/Sebab286d68ac4d6183c1a1a8cce21316s.jpg"],
  "maxResultsPerStore": 20,
  "maxItems": 50
}
```

Three photos, all three stores, up to 60 offers per store and a cap of 300 offers for the run:

```json
{
  "imageUrls": [
    "https://example.com/photos/bottle.jpg",
    "https://example.com/photos/lamp.png",
    "https://example.com/photos/backpack.webp"
  ],
  "maxResultsPerStore": 60,
  "maxItems": 300
}
```

You can also upload one photo from your computer with `imageFile`. It is searched like a link.

### Image search scraper input

| Field | What it does |
|---|---|
| `imageUrls` | Public links to product photos (JPG, PNG or WebP), one per line. Each photo is one search. Up to 50 photos per run. `imageUrl` and `images` are accepted too. |
| `imageFile` | Upload one photo instead of pasting a link. |
| `maxResultsPerStore` | Similar offers each store returns for each photo, most similar first. Default 20, up to 120. `0` means the most each store shows (up to 120). |
| `maxItems` | Cap for the whole run, across all photos. Default 50. `0` = no cap. |
| `search1688` | On by default. Wholesale offers from 1688. |
| `searchAliExpress` | On by default. Retail offers from AliExpress. |
| `searchAlibabaCom` | Search Alibaba.com. On by default. |

Photos should be a clear picture of one product on a plain or simple background. A photo with several objects or a
busy scene can bring back offers for the other objects, as any image search does.

### Output

Each run writes three kinds of rows to the dataset. Filter on `type`.

**`product`**: one row per offer.

| Field | Meaning |
|---|---|
| `queryImage` | The photo this offer was found for (the link you sent, or `uploaded image`). |
| `sourceStore` | `1688`, `alibaba.com` or `aliexpress`. |
| `rankInStore` | Position in the store's own similarity order for that photo (1 = most similar). |
| `priceUsd` | Price in US$. The lowest price tier for Alibaba.com and 1688. |
| `priceMaxUsd` | Highest price tier shown by Alibaba.com, when there is more than one. |
| `priceOriginal` and `currency` | The price as the store shows it, and its currency (CNY for 1688, USD for the others). |
| `priceType` | `wholesale` (1688 and Alibaba.com), `regular`, `sale` or `newShopperDeal` (a price shown to new buyers). |
| `priceTiers` | 1688 only: the quantity tiers, with the price in US$ for each. |
| `minOrderQuantity` and `unit` | Minimum order and its unit, when the store shows them. |
| `title` and `titleEn` | Title as the store shows it, and an English translation for 1688 titles. |
| `supplierName` | The supplier company name (1688, Alibaba.com). Empty for AliExpress photo results. |
| `supplierCompany` | Company name when the store shows one separately. |
| `supplierCountry` | Country code when the store shows one (Alibaba.com). |
| `soldCount` and `rating` | Sales count and rating, when the store shows them. |
| `imageUrl`, `url`, `productId` | Image, link to the offer, and the store's product id. |
| `scrapedAt` | When the row was collected (UTC). |

**`summary`**: one row per photo, with the median price in US$ for each store (`medianPriceUsd`), how many offers each
store delivered (`productsByStore`) and the total. It is free and handy to see the gap between stores at a glance:
for example, AliExpress often lists the same kind of item at several times the 1688 median, because its retail prices
are not wholesale prices.

**`error`**: a store or photo that returned nothing. `errorCode` tells why: `NO_RESULTS` (the store found no match),
`BLOCKED` (the store did not accept the search after several attempts; try again later), `IMAGE_UNREADABLE` (the link
is not a JPG, PNG or WebP image, or it is over 15 MB), `INVALID_URL`, `NOT_REACHED` (the run timeout came first) or
`UNEXPECTED`. Error rows are never charged.

Example of a `product` row:

```json
{
  "type": "product",
  "sourceStore": "aliexpress",
  "queryImage": "https://ae-pic-a1.aliexpress-media.com/kf/Sebab286d68ac4d6183c1a1a8cce21316s.jpg",
  "rankInStore": 1,
  "productId": "1005012705341849",
  "title": "TWS Fashion Bluetooth Wireless Earphones 9D Stereo",
  "priceUsd": 1.73,
  "priceOriginal": 1.73,
  "currency": "USD",
  "priceType": "newShopperDeal",
  "soldCount": 232,
  "rating": 4.7,
  "supplierName": null,
  "url": "https://www.aliexpress.com/item/1005012705341849.html"
}
```

### How duplicates and reruns are handled

- The same offer in the same photo is delivered and charged once. The same offer found for two different photos counts
  once for each photo, because each photo is a separate search.
- If the run restarts on the platform, the offers already delivered are not delivered or charged again.
- Each photo is searched in every selected store at the same time, then its offers are sorted by price and delivered.

### Stores

**1688** is the wholesale marketplace of China. Prices are shown in CNY and converted to US$ with a daily reference
rate. The price is per unit at the first quantity tier, before shipping. Titles come back in Chinese with an English
translation in `titleEn`.

**AliExpress** is retail. Prices are in US$ for a buyer in the United States. Some offers show a new-buyer price,
marked with `priceType: "newShopperDeal"`. Compare that row with the `regular` or `sale` rows before you decide.

**Alibaba.com** is the international B2B marketplace. Prices are in US$, usually with quantity tiers (`priceUsd` is the
lowest tier, `priceMaxUsd` the highest), and the supplier company name and country come with each offer.

### Good to know

- Results are similar offers, not the same product. Two offers from different stores can match the photo and still
  differ in size, material or pack count. Read the title and the minimum order before you buy.
- A store can return fewer offers than you asked for when it has fewer matches for that photo.
- Suppliers appear only as a store or company name. No personal name, contact detail or chat handle is read or
  returned.
- Photos up to 15 MB are accepted. Larger files and links that are not images are returned as free error rows.
- Run it on a schedule to track the price of a product over time: each run returns the current offers, and the
  summary row shows the median for each store on that day.

### Image search scraper FAQ

**Are the rows sorted by similarity or by price?** By price inside each photo, from the lowest to the highest. The
`rankInStore` field keeps the store's own similarity order, so you can sort the other way if you prefer.

**Why is a store empty for a photo?** Either the store has no offer that looks like the photo, or it did not answer
after several attempts. The error row tells which case it was. A `BLOCKED` row costs nothing, so you can run the photo
again later.

**Can I search more than 120 offers per store?** Not in one photo. Each store returns up to 120 for each photo.

**Can I send several photos in one run?** Yes, up to 50 per run. Each photo gets its own set of rows and its own
summary.

**Is the photo kept after the run?** The photo is used to build the search and is not added to the dataset. Only the
offers and the summary are saved.

**What currency is used?** US$ in every price field. The original price and currency are in `priceOriginal` and
`currency`, so you can check the conversion.

**How do I cap the cost?** Set `maxItems`, which stops the run when the cap is reached, and lower `maxResultsPerStore`.
A spending limit on the run works too.

### Try it now

Click **Start** with the example input: one product photo searched in three stores, up to 50 offers, for US$ 0.02.
Need another store, a field or a filter? Open an issue in the **Issues** tab of this page; user requests decide what
the next version adds.

# Actor input Schema

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

Public links to product photos (JPG, PNG or WebP), one per line. Each photo is one search: the offers that look like it from 1688, Alibaba.com and AliExpress come back together, sorted by price in US$. Also accepts 'imageUrl' and 'images'.

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

Upload a product photo (JPG, PNG or WebP) from your computer instead of pasting a link. It is searched like the links above.

## `maxResultsPerStore` (type: `integer`):

How many similar offers each store returns for each photo, most similar first. Up to 60 offers per photo are included in the photo price; from the 61st on, each offer costs the extra product price. 0 = the most each store shows (up to 120).

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

Hard cap for the whole run, across all photos. 0 = no cap.

## `search1688` (type: `boolean`):

Wholesale offers from 1688 (China), with the price in US$ and the minimum order quantity when the store shows it.

## `searchAlibabaCom` (type: `boolean`):

Search Alibaba.com (international B2B suppliers) for each photo.

## `searchAliExpress` (type: `boolean`):

Retail offers from AliExpress in US$. priceType tells the price kind: newShopperDeal is the price shown to a new buyer only.

## Actor input object example

```json
{
  "imageUrls": [
    "https://ae-pic-a1.aliexpress-media.com/kf/Sebab286d68ac4d6183c1a1a8cce21316s.jpg"
  ],
  "maxResultsPerStore": 20,
  "maxItems": 50,
  "search1688": true,
  "searchAlibabaCom": true,
  "searchAliExpress": true
}
```

# Actor output Schema

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

No description

## `resultsCsv` (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://ae-pic-a1.aliexpress-media.com/kf/Sebab286d68ac4d6183c1a1a8cce21316s.jpg"
    ],
    "maxResultsPerStore": 20,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/sourcing-image-search-scraper").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://ae-pic-a1.aliexpress-media.com/kf/Sebab286d68ac4d6183c1a1a8cce21316s.jpg"],
    "maxResultsPerStore": 20,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/sourcing-image-search-scraper").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://ae-pic-a1.aliexpress-media.com/kf/Sebab286d68ac4d6183c1a1a8cce21316s.jpg"
  ],
  "maxResultsPerStore": 20,
  "maxItems": 50
}' |
apify call scrapewise/sourcing-image-search-scraper --silent --output-dataset

```

## MCP server setup

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

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/nibOZLOjODZz6o34N/builds/EgfYWAeeSvsCGDpcQ/openapi.json
