# Visual Product Matcher (`om_kh/visual-product-matcher`) Actor

Image in, matching products out — with the source URL behind every match. Per-image error handling: one bad image never kills the batch.

- **URL**: https://apify.com/om\_kh/visual-product-matcher.md
- **Developed by:** [omar khandji](https://apify.com/om_kh) (community)
- **Categories:** E-commerce, AI, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.30 / 1,000 visual matches

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Visual Product Matcher — Image In, Products Out

> **You paste an image URL. You get matching AliExpress products — title,
> price, seller, and the link — with the source URL behind every match.**

### Honest about scope

This niche's entire competitor cluster is broken (measured: 7% to 65%
failure across the top results). Reliability is the whole point here, so
this Actor ships only what is verified working today: **AliExpress visual
search.** Amazon and eBay are not yet included — every reverse-image-search
engine we could chain onto for them failed live testing before publish. We
would rather ship a working AliExpress matcher than a broken three-way one.

### 5 advantages

1. **One bad image never kills your batch.** A dead link or unmatched
   image errors out alone; every other image still delivers.
2. **Never billed on zero matches.** No confidence score is invented —
   `match_confidence` is null when the source doesn't provide one, never a
   made-up number.
3. **Real product data**, not just a link: title, price, currency, seller.
4. **Honest about marketplace coverage.** Ask for Amazon or eBay matches
   today and you get a clear per-image error, not a silent empty result.
5. **Hard cost cap you control.** Set `maxTotalChargeUsd` and the run can
   never bill above it.

### Output

```json
{
  "input_image_url": "https://example.com/product.jpg",
  "matches": [
    {
      "title": "Simple and Fashionable Casual Solid Color PU Bag",
      "product_url": "https://imagesearchaliexpress.com/product?token=...",
      "marketplace": "aliexpress",
      "price": 0.99,
      "currency": "CNY",
      "seller": "1103840669",
      "match_confidence": null,
      "match_basis": "visually_similar"
    }
  ],
  "status": "ok"
}
```

### Pricing

Pay per event, base FREE-tier prices: **$0.006** per match returned, **$0.002** per image processed.
Paid Store plans pay less on every event — the largest plans reach $0.0011 on the cheapest event; the Pricing tab on this Actor's Store page is
always the authority. **No event is ever charged on an item that returns an `error`** —
a batch of 200 with one bad input bills 199.

### Use it from an AI agent (MCP)

```
https://om-kh--visual-product-matcher.apify.actor/mcp
```

One tool, `visual_product_matcher`, same arguments as the Start form.

### Related Actors

- [1688 Reverse Image Product Finder](https://apify.com/om_kh/1688-reverse-image-product-finder) — same reverse-image approach, sourcing from 1688 instead of AliExpress

### Support

Found a bug or have a feature request? Use the **Issues** tab on this
Actor's Apify Store page, or message the author (`om_kh`) directly.

# Actor input Schema

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

Public image URLs to search for matching products. Currently searches AliExpress only (see Actor description).

## `marketplaces` (type: `array`):

Only 'aliexpress' is implemented right now. Other values are accepted but reported as an explicit error, never silently ignored.

## `maxMatchesPerImage` (type: `integer`):

Stop after this many matches per image.

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

Stop after this many images.

## `monitorEnabled` (type: `boolean`):

On later runs with the same Monitor ID, deliver only images not seen before.

## `monitorId` (type: `string`):

Groups runs into one monitored target. Leave blank for a one-off run.

## `maxTotalChargeUsd` (type: `number`):

Hard ceiling on what this run can bill you.

## Actor input object example

```json
{
  "imageUrls": [
    "https://ae-pic-a1.aliexpress-media.com/kf/S5533347f600b47ff9ae5abbd74255026M.jpg_220x220q75.jpg_.avif"
  ],
  "marketplaces": [
    "aliexpress"
  ],
  "maxMatchesPerImage": 10,
  "maxImages": 20,
  "monitorEnabled": false,
  "maxTotalChargeUsd": 1
}
```

# Actor output Schema

## `report` (type: `string`):

A visual summary of delivery, charges, and source issues.

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

Matches in a sortable table. No JSON knowledge required.

## `csv` (type: `string`):

Results ready for spreadsheets, CRMs, and analytics tools.

## `excel` (type: `string`):

Results as an Excel workbook for non-technical teams.

## `runSummary` (type: `string`):

Machine-readable delivery, billing, and source diagnostics.

# 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/S5533347f600b47ff9ae5abbd74255026M.jpg_220x220q75.jpg_.avif"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("om_kh/visual-product-matcher").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/S5533347f600b47ff9ae5abbd74255026M.jpg_220x220q75.jpg_.avif"] }

# Run the Actor and wait for it to finish
run = client.actor("om_kh/visual-product-matcher").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/S5533347f600b47ff9ae5abbd74255026M.jpg_220x220q75.jpg_.avif"
  ]
}' |
apify call om_kh/visual-product-matcher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,om_kh/visual-product-matcher"
        }
    }
}

```

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/FwhGELHoPtVua4hZF/builds/wSKct9a57r9HkWx6T/openapi.json
