# Reverse Image Search: AliExpress & Alibaba Suppliers (`arcadium/image-sourcing`) Actor

Reverse image search on AliExpress and Alibaba.com: find products and suppliers by photo, 60 + 20 offers with price, MOQ and sold count, $5 per 1,000 photos. Free price summary per photo. zen-studio and dev00 input works; crawleast input is read, results come from AliExpress and Alibaba.com.

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

## Pricing

from $3.75 / 1,000 photo 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

## Reverse Image Search: AliExpress & Alibaba Suppliers

Have a photo of a product and want to know who sells it and for how much? Give this actor one or more image links and it runs a reverse image search on AliExpress and Alibaba.com to find the product and its suppliers by photo. You get the matched offers as JSON rows with price, minimum order, sold count and supplier details, plus one free summary row per photo with the price spread on each site and the cheapest offer from a credible seller. $0.01 per photo for both sites ($10 per 1,000 photos), first result page on each site included.

**Why this actor**

- **Two sites, one price.** One photo searches AliExpress (retail, single units, 60 offers) and Alibaba.com (wholesale suppliers with MOQ, 20 offers) for $0.005. Single-site image search actors on the Store charge $0.02 per photo (piotrv1001, free plan, 2026-10-31).
- **Drop-in input.** Input written for `piotrv1001/aliexpress-image-search-scraper` (`imageUrls`, `shipTo`, `currency`, `maxResultsPerImage`), `dev00/alibaba-1688-aliexpress-reverse-image-search-api` (`imageUrl`, `destination`), `crawleast/1688-image-search-scraper` (`imagesBase64`, `maxImages`) or `zen-studio/product-search-by-image` (`targets`, `aliexpressCountry`, `alibabaMinPrice`) works as it is.
- **An answer, not only rows.** The free `photo-summary` row gives price quartiles per site, the cheapest credible offer and the AliExpress / Alibaba.com price ratio, so an agent can answer "where is this cheapest?" without reading 80 rows.

Built by Arcadium Data: public data, dated and agent-ready, never personal data.

### Use with AI agents

Finds a product by photo on AliExpress and Alibaba.com and returns offers (price, MOQ, sold count, supplier country, years, verified flag) plus a per-photo price summary. Agents can call it through the Apify MCP server (`https://mcp.apify.com`, open source as `apify/actors-mcp-server`) as `arcadium/image-sourcing`: the input schema is read from the actor, the result is a dataset of JSON rows.

**Input example** (minimal):

```json
{ "imageUrls": ["https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG"] }
```

Cost of the call above on any plan: one photo at $0.005 plus the $0.001 start fee, $0.006.

For a quick answer read the row with `rowType: "photo-summary"`: `sites[].priceMedian`, `cheapestCredible` (site, price, MOQ, link, why it counts as credible) and `crossSitePriceRatio`. Rows with `rowType: "offer"` are the matches; read `site`, `title`, `price`, `currency`, `moq`, `soldCount`, `supplierType` and `url`. Failures arrive as rows with `rowType: "error"` and a machine-readable `code` (`invalid_input`, `not_found`, `blocked`, `unavailable`, `no_match`); they are free.

### What you get

One `offer` row per matched product, the same columns for both sites (null where a site does not show a value):

| Field | What it holds |
| --- | --- |
| `site` | `aliexpress` or `alibaba`. |
| `imageIndex`, `imageRef` | Which input photo the offer matches (position and URL). |
| `rank` | Position among the photo's results on that site, sponsored offers included (`isAd`). |
| `productId`, `title`, `url`, `imageUrl` | The product, its link and its main image to compare with your photo. |
| `price`, `priceMax`, `currency` | Price range per unit. AliExpress also gives `originalPrice`; Alibaba.com `promotionPrice`. An AliExpress card that shows the new-user welcome price (often $1.09) has it in `promotionPrice`; `price` is then the struck-through regular price (empty when the card shows none). |
| `moq`, `moqUnit` | Alibaba.com minimum order (for example 500 pieces). Null on AliExpress. |
| `soldText`, `soldCount` | Units sold as shown and as a number. |
| `rating`, `reviewCount` | AliExpress product stars; Alibaba.com supplier score and review count. |
| `supplierName`, `supplierId`, `supplierCountry`, `supplierYears` | Alibaba.com supplier company, country and years on the platform. |
| `supplierType`, `verifiedSupplier`, `verifiedBy`, `certifications` | `verified_supplier` (audited by TÜV Rheinland, Intertek, SGS...), `supplier`, or `retail_store` (AliExpress); certificates shown (ISO, BSCI...). |
| `shipFrom`, `freeShipping`, `deliveryText`, `isChoice` | Shipping hints as the result card shows them. |

**Output example** (one offer row, shortened):

```json
{
  "rowType": "offer",
  "site": "alibaba",
  "imageIndex": 1,
  "imageRef": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG",
  "rank": 2,
  "productId": "1601297632375",
  "title": "Stainless Steel 4 Inches Custom Engraved Espresso Spoon",
  "url": "https://www.alibaba.com/product-detail/Stainless-Steel-4-Inches-Custom-Engraved_1601297632375.html",
  "price": 0.16,
  "priceMax": 0.16,
  "currency": "USD",
  "moq": 50,
  "moqUnit": "sets",
  "rating": 4.7,
  "reviewCount": 43,
  "supplierCountry": "CN",
  "supplierYears": 6,
  "supplierType": "verified_supplier",
  "verifiedSupplier": true,
  "verifiedBy": "TÜV Rheinland",
  "isAd": false,
  "scrapedAt": "2026-10-31T12:43:44.152Z"
}
```

And one free `photo-summary` row per photo (shortened):

```json
{
  "rowType": "photo-summary",
  "imageIndex": 1,
  "charged": true,
  "sites": [
    { "site": "aliexpress", "status": "ok", "statedResults": 278, "offers": 60, "currency": "USD", "priceQ1": 1.09, "priceMedian": 8.82, "priceQ3": 15.5 },
    { "site": "alibaba", "status": "ok", "statedResults": 100, "offers": 20, "currency": "USD", "priceQ1": 0.97, "priceMedian": 1.67, "priceQ3": 2.21 }
  ],
  "cheapestCredible": { "site": "alibaba", "price": 0.54, "currency": "USD", "moq": 10, "moqUnit": "pieces", "basis": "supplier rating 5 (3 reviews)" },
  "crossSitePriceRatio": 5.28
}
```

**How the summary is computed.** Quartiles use priced, non-sponsored offers in the site's main currency. `cheapestCredible` is the lowest such price whose seller passes a simple check: AliExpress at least 10 sold; Alibaba.com a Verified Supplier, 3+ years on the platform, or a 4.5+ score from 3+ reviews. Prices under a quarter of the site's median are skipped as likely bait listings. `crossSitePriceRatio` is the AliExpress median divided by the Alibaba.com median, given only with the same currency and 3+ priced offers on each side. Image matches include similar products, not only the exact item, so treat the summary as a first read and check the offers.

### Input

| Field | What it does |
| --- | --- |
| `imageUrls` | Photo links (JPEG, PNG, WebP, GIF, AVIF, BMP) or `data:image/...;base64` URLs. Required. |
| `sites` | `aliexpress`, `alibaba` or both (default). |
| `maxPagesPerSite` | Result pages per photo and site, 1 (default) to 5. Pages after the first are billed as extra pages. |
| `maxResults` | Cap on offers per photo and site; 0 keeps all. |
| `minPrice`, `maxPrice` | Keep offers whose lowest price is in this range. |
| `shipTo`, `currency` | AliExpress ship-to country and currency (default US, USD). |
| `includeAds` | Keep sponsored offers (default true). |
| `includeErrorRows`, `includeCoverageRows` | Free status rows (errors on by default, coverage off). |

Photos are shrunk to at most 800 px before upload; you do not need to resize them.

### Errors and coverage are rows

A photo that cannot be downloaded or is not an image gives a free row `{"rowType": "error", "platform": "image", "code": "invalid_input" | "not_found" | "unavailable"}` and is not billed. A site that fails for one photo gives `{"rowType": "error", "platform": "aliexpress" | "alibaba", "code": "blocked" | "unavailable" | "no_match"}`; the photo is billed only if the other site was searched, and its summary shows the failed site with `status: "error"`. With `includeCoverageRows`, each photo and site also gets a `coverage` row: matches the site states, offers delivered and why paging stopped.

### Use it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("arcadium/image-sourcing").call(run_input={
    "imageUrls": ["https://example.com/my-product.jpg"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["rowType"] == "photo-summary":
        print(item["cheapestCredible"], item["crossSitePriceRatio"])
```

JavaScript:

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('arcadium/image-sourcing').call({ imageUrls: ['https://example.com/my-product.jpg'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((i) => i.rowType === 'offer').length, 'offers');
```

### Pricing

You pay per photo searched; higher Apify plans pay less per photo. Offer, summary, error and coverage rows are free.

| Event | Free | Bronze | Silver | Gold, Platinum, Diamond | What it covers |
| --- | --- | --- | --- | --- | --- |
| Photo | $0.005 | $0.0045 | $0.004 | $0.00375 | One photo on the selected sites, first result page on each (up to 60 AliExpress + 20 Alibaba.com offers) |
| Extra page | $0.003 | $0.003 | $0.003 | $0.003 | One more result page for one photo on one site, only when `maxPagesPerSite` is above 1 |

Plus a one-off $0.001 per GB of memory when a run starts. A photo that fails on every site is not billed. Example on the free plan: 100 photos on both sites, 2 pages each, costs 100 × $0.005 + 200 × $0.003 = $1.10. Set a maximum cost per run in the Apify run options and the actor stops before it goes over.

### Related actors

- [1688 Products Scraper: Wholesale Prices, MOQ, Suppliers](https://apify.com/arcadium/1688-products)

### Use cases

- **Dropshipping:** take a product photo from a shop or an ad and find the same item on AliExpress with price, sold count and shipping.
- **Sourcing:** find wholesale suppliers on Alibaba.com for a product you already sell, with MOQ, country, years and verification.
- **Price check:** compare the AliExpress retail spread with the Alibaba.com wholesale spread before you buy stock or set a price.
- **Agents:** one photo in, a compact answer out (`photo-summary`), at $0.005 a call.

### Limitations

- **No 1688.com.** Its image search answers anonymous requests with a human check, and this actor never solves checks. For 1688 keyword search see the 1688 Products Scraper.
- Image search returns similar products, not only the exact item. Deeper pages drift further from the photo.
- AliExpress result cards carry no store name or store rating; Alibaba.com cards carry no exact sold count for most offers.
- Alibaba.com prices are per unit at the minimum order and stay in its own currency (USD); `currency` applies to AliExpress only.
- Up to 5 pages per site (AliExpress about 300 matches, Alibaba.com 100).
- If a site asks for a human check, that photo gets a free `blocked` row for the site; run it again later.

### Privacy

Only product and company listing data is collected. Alibaba.com supplier company names are business data and are kept; a name that reads like a private person's is withheld. Member logins, chat tokens and contact links are never read, and contact details in titles are redacted. Your photos are uploaded to the two sites' own image search, as their websites do.

### FAQ

**Can I send the image itself instead of a link?**
Yes: put a `data:image/jpeg;base64,...` URL in `imageUrls`, or use `imagesBase64` with plain base64.

**Why do I see coffee spoons for a photo of a coffee cup?**
The sites match what is in the photo, including the spoon and the saucer. Crop the photo to the product for closer matches.

**Something looks wrong in the output. Who do I tell?**
Open an issue on the actor's Issues tab with the run link; we answer within a working day.

# Actor input Schema

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

Photo links to search by, for example \["https://example.com/mug.jpg"]. JPEG, PNG, WebP, GIF, AVIF or BMP; data:image/...;base64 URLs work too. Also read from imageUrl, imagesBase64 or startUrls.

## `sites` (type: `array`):

Where to search each photo: AliExpress (retail, single units) and Alibaba.com (wholesale suppliers, MOQ). Default: both, for example \["aliexpress", "alibaba"]. Also read from destination or targets.

## `maxPagesPerSite` (type: `integer`):

Result pages to read per photo and site, for example 2. Default 1 (60 AliExpress + 20 Alibaba.com offers, included in the photo price). Each extra page is billed as an extra page. Max 5.

## `maxResults` (type: `integer`):

Cap on offer rows per photo and site, for example 20. 0 (default) keeps every offer of the pages read. Also read from maxResultsPerImage.

## `minPrice` (type: `number`):

Only offers whose lowest price is at or above this amount, in the result currency, for example 1.5. Leave empty for no lower limit.

## `maxPrice` (type: `number`):

Only offers whose lowest price is at or below this amount, in the result currency, for example 20. Leave empty for no upper limit.

## `shipTo` (type: `string`):

Two-letter country AliExpress prices and ships for, for example DE. Default US. Also read from aliexpressCountry.

## `currency` (type: `string`):

Three-letter currency of AliExpress prices, for example EUR. Default USD. Alibaba.com prices stay in its own currency (USD). Also read from aliexpressCurrency.

## `includeAds` (type: `boolean`):

Keep sponsored offers among the results (flagged with isAd). Default true.

## `includeErrorRows` (type: `boolean`):

Add a free row with a code and message for every photo or site that failed. Default true.

## `includeCoverageRows` (type: `boolean`):

Add a free row per photo and site: matches the site states, offers delivered and why paging stopped. Default false.

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

Leave empty: the actor picks its own route and pays for it. Set your own proxy URLs only if you need a fixed exit.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG"
  ],
  "sites": [
    "aliexpress",
    "alibaba"
  ],
  "maxPagesPerSite": 1,
  "maxResults": 0,
  "shipTo": "US",
  "currency": "USD",
  "includeAds": true,
  "includeErrorRows": true,
  "includeCoverageRows": false
}
```

# Actor output Schema

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

All rows of this run in the default dataset.

## `view_overview` (type: `string`):

One line per matched offer: site, price, MOQ, sales and supplier.

## `view_summaries` (type: `string`):

One line per photo: price spread per site, cheapest credible offer and the AliExpress / Alibaba.com price ratio.

## `view_errors` (type: `string`):

No description

## `record_stats` (type: `string`):

Photos searched and billed, pages, requests, data volume per site and proxy tier, and cost per photo for this run.

# 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://upload.wikimedia.org/wikipedia/commons/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG"
    ],
    "maxPagesPerSite": 1,
    "maxResults": 0,
    "shipTo": "US",
    "currency": "USD"
};

// Run the Actor and wait for it to finish
const run = await client.actor("arcadium/image-sourcing").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://upload.wikimedia.org/wikipedia/commons/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG"],
    "maxPagesPerSite": 1,
    "maxResults": 0,
    "shipTo": "US",
    "currency": "USD",
}

# Run the Actor and wait for it to finish
run = client.actor("arcadium/image-sourcing").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://upload.wikimedia.org/wikipedia/commons/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG"
  ],
  "maxPagesPerSite": 1,
  "maxResults": 0,
  "shipTo": "US",
  "currency": "USD"
}' |
apify call arcadium/image-sourcing --silent --output-dataset

```

## MCP server setup

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

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/7uc64Y7md4GiwA46a/builds/wmgugPv7MdnLof8is/openapi.json
