# AliExpress Image Search Scraper - Find Products by Photo (`hexagone-data/aliexpress-image-search-scraper`) Actor

Search AliExpress by image in bulk: for each photo link (or base64), the products AliExpress shows, with price, original price, discount, rating, number sold, Choice and ad flags, store of paid listings, rank and link. Any ship-to country, currency, sort. No account. Pay per product row.

- **URL**: https://apify.com/hexagone-data/aliexpress-image-search-scraper.md
- **Developed by:** [Hexagone Data](https://apify.com/hexagone-data) (community)
- **Categories:** E-commerce, Automation, Agents
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 product founds

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

## AliExpress Image Search Scraper - Find Products by Photo

Find AliExpress products from a photo, in bulk. Paste image links (or base64): for each image, the Actor runs AliExpress's own search by image (the camera icon of its search bar) and returns the products AliExpress shows for it, with price, original price and discount, price per piece of lots, rating, number sold, AliExpress Choice and ad flags, store name of sponsored listings, rank and product link. Pick the ship-to country, currency, language and sort order. No AliExpress account, no browser extension.

Who uses it: dropshippers and Shopify, Amazon or TikTok Shop sellers who start from a photo (an ad, a competitor's shop, a customer message) and want the AliExpress supplier and its price; buyers comparing sellers of the same item; catalogue matching by image; weekly price watching; AI shopping agents.

### Why this one: every results page read, real sorting, and you never pay for a failure

- One row per product, every page of the photo's results read (page 1, 2, 3... until a page brings nothing new), duplicates between pages removed: about 90 to 130 distinct products in one search (up to 170 over two runs of the same photo).
- Real sorting: AliExpress only sorts inside each page of 60. For "lowest price", "highest price" or "most orders", the Actor reads all pages, then sorts all products itself.
- Images that are not usable (dead link, a web page instead of an image, a 12 px icon), photos AliExpress finds nothing for, and searches AliExpress refuses are listed in the run summary and **not charged**.
- HEIC photos (iPhone) are converted to JPEG; very large photos are reduced before sending. Size limits (memory): a standard JPEG, as saved by phones and cameras, up to 178 megapixels (108-megapixel phone photos included); a progressive JPEG (common on websites) up to about 90 megapixels (70 for 4:2:2 colour, 46 for full-colour 4:4:4, 35 for CMYK), because it cannot be decoded at reduced size; other formats are decoded at full size: about 37 megapixels for HEIC, 52 for PNG and GIF (colour, palette or 1-bit black and white; 157 for 8-bit greyscale PNG, 47 for 16-bit greyscale PNG, 33 with transparency), 15 for AVIF and 17 for WebP. A larger image gets `image_error` (`too_many_pixels`, with its limit in `statusMessage`), not charged.

### Try it

Open the Actor, keep the prefilled image link (a headphone case from AliExpress), press Start. Within a minute you get its 60 best-matching products in the dataset, and a run summary.

### What to paste

- `imageUrls`: one image per line. A direct https link to a JPEG, PNG, WebP, GIF, AVIF or HEIC image (a product photo link, an ad picture, a public cloud file), a `data:image/...;base64,...` URL, or plain base64 text. Up to 1,000 images per run. The same line twice is searched once (`duplicate`).
- `shipTo`: two-letter country (US by default; GB, DE, FR, BR, JP, KR, CA, AU, ES...). It changes prices, offers **and the products returned**.
- `currency`: USD by default (USD, EUR, GBP, BRL, JPY, KRW, CAD, AUD, PLN and MXN measured). Prices are never converted: if AliExpress serves another currency, `currency` says so and the run gives a warning.
- `language`: language of titles and texts (en_US by default).
- `sort`: `best_match` (AliExpress's order), `orders` (most sold first), `price_asc`, `price_desc`.
- `maxResultsPerImage`: products kept per image, 60 by default, up to 300 (one search rarely has more than 130 distinct products for one photo; about 170 over two runs).
- `proxyConfiguration`: Apify datacenter proxy by default, a fresh IP address for every image.

Your photos are sent to AliExpress, as when you use its camera search: do not send pictures you are not allowed to share.

### Output

One row per product found (status `ok`). Example, a row of a real run on 15 November 2026 (photo of a mug, ship to the US, sort by best match):

```json
{
  "queryImage": "https://ae-pic-a1.aliexpress-media.com/kf/S80927c5396ac4ac2be6dc7b753ef1610l.jpg",
  "status": "ok",
  "rank": 3,
  "productId": "1005013164887286",
  "url": "https://www.aliexpress.com/item/1005013164887286.html",
  "title": "Personalized Besties Photo Mug Personalized Birthday Gift for BFF, Custom Photo Mug for Friendship Gift, Best Friend Mug",
  "image": "https://ae-pic-a1.aliexpress-media.com/kf/S10629dc54dcd4903811925c59990d195C.jpg",
  "price": 1.09,
  "priceText": "US $1.09",
  "currency": "USD",
  "originalPrice": 18.67,
  "discountPercent": 94,
  "unitPrice": null,
  "unitLabel": null,
  "isNewShopperPrice": true,
  "lowestPrice30Days": null,
  "rating": 4.6,
  "sold": 145,
  "soldText": "145 sold",
  "launchedAt": "2026-09-11",
  "isChoice": true,
  "isAd": true,
  "storeName": "World Peace Bag Store",
  "badge": null,
  "channel": null,
  "dealUrl": null,
  "sellingPoints": [
    "Free shipping",
    "$17.58 saved",
    "New shoppers - $17.58",
    "Save $17.58"
  ],
  "page": 1,
  "searchId": "OSS/ae-image-search-us/2026-11-15/1a2dea7b-2121-45a8-88f4-7c6a475a9d15.jpg",
  "shipTo": "US",
  "sort": "best_match",
  "statusMessage": null,
  "scrapedAt": "2026-11-15T05:44:03+00:00"
}
```

- `rank`: position after the chosen sort; `page`: the AliExpress results page where the product was first seen; `searchId`: AliExpress's id of the photo search, the same for all products of one image.
- `price` is the card price (lowest variant); `priceText` is the text AliExpress serves ("US $3.14", "€ 9,05"), which the card displays slightly differently ("$3.14", "9,05€").
- `originalPrice` and `discountPercent`: only when AliExpress serves a discount above 0 % with the card; `originalPrice` is then the price before discount that AliExpress serves with the card, the one its product page shows. The search card itself does not strike it through: some cards show the amount saved instead ("$17.58 saved", "0,37€ économisés"). In EU countries it is often the lowest price of the last 30 days (`lowestPrice30Days`). When the served discount is 0, both are null, even if AliExpress keeps an older price in the card's data. A card at 0 % can still show a 24-hour saving ("Économisez 4,81€, 24h", "Sie sparen 3,56€, 24 Std."): that text is in `sellingPoints`, and `originalPrice` stays null.
- `unitPrice` / `unitLabel`: price per piece of lots ("0,28€/pc").
- `isNewShopperPrice`: the card shows a "New shoppers" (Welcome Deal) price, which every logged-out visitor sees; `lowestPrice30Days`: "lowest price in the last 30 days" (EU countries only).
- `sold` is read from `soldText` ("791 sold"); `rating` is the star rating; both are null when the card shows none (about 33 % and 49 % of rows in our test runs).
- `isAd`: sponsored placement. In the EU and UK AliExpress labels them "Ad", "Pub" or "Werbeanzeige"; in the US, Japan, Brazil and Korea it shows no label, but the placement is sponsored all the same.
- `storeName`: AliExpress serves the store name only with sponsored placements (about a third of rows); null otherwise, never guessed.
- `badge`: "Best similar item", "Best priced item", "Top selling item" (about 3 per search, best match only); `channel` / `dealUrl`: deal channel of the card ("Dollar Express") and the bundle page it opens.
- `sellingPoints`: the card's texts (free shipping, savings, bulk price, lowest price in 90 days...).

The dataset has an "overview" view (image, rank, title, price, discount, sold, rating, Choice, store, link, picture).

### Run summary

The key-value store holds `OUTPUT` (JSON) and `SUMMARY` (a readable page), one line per image (`OUTPUT.perInput`): status, products delivered, pages read, uploads, message. Images without products (`no_matches`, `image_error`, `blocked`, `failed`) also have a row in `OUTPUT.rowsNotInDataset`, with the same fields as the dataset rows: **not in the dataset, not charged**. `duplicate` and `not_processed` inputs are listed in `OUTPUT.perInput` only.

- `no_matches`: AliExpress showed no product for this photo, after 3 uploads (page 1 is read twice each time, on fresh IP addresses: AliExpress sometimes serves an empty page by mistake).
- `image_error`: the image could not be used (dead link, not an image, under 16 px, over 20 MB, more pixels than the limits above, base64 that does not decode, or the image server refused our download); nothing was sent to AliExpress. An image the server sends compressed (gzip, deflate or brotli) is decompressed by the Actor, within the same 20 MB limit; one sent compressed with zstd is refused as `not_an_image`.
- `blocked`: AliExpress refused every attempt (anti-bot check, 3 fresh IP addresses). Your image is not the cause; try again later. If the first 5 images of a run are all refused, the run stops and says so.
- `failed`: AliExpress answered in a form the Actor cannot read (the site may have changed: for example a results page whose cards have no product id or no price), or the network failed. Never reported as `no_matches`, never charged.
- `duplicate`: the same line as an earlier one, searched once.
- `not_processed`: not searched, or searched but not delivered, because your maximum charge per run or the run's time limit came first; not charged.
- `partial`: an image cut short after some pages (AliExpress refused a later page, or a limit came first): the products found before the cut are in the dataset (and charged), and its message in `OUTPUT.perInput` says where it stopped; when AliExpress refused or failed on the later page, a row in `OUTPUT.rowsNotInDataset` says so too.

Warnings (`OUTPUT.anomalies`, also named in the run's final message): refused images, answers that could not be read, a currency different from the one asked (`CURRENCY_NOT_APPLIED`), a field missing on a card (delivered as null). `OUTPUT.settings` repeats the country, currency, language, sort and limit used.

### Pricing

Pay per event: **$0.001 per product found** ($1.00 per 1,000 products), one row in the dataset per product, plus **$0.005 per run** (Apify's start fee, one per GB of memory: the default 512 MB is one start). Retries, refused searches, images without products, unusable images and duplicates are never charged. `maxResultsPerImage` caps what one image can cost. Tier discounts of the Apify Store apply (Bronze -10 %, Silver -20 %, Gold to Diamond -30 %).

| Run | Price at the base rate (Free plan) |
|---|---|
| 20 products | $0.025 |
| 1,000 products | $1.005 |

Set a maximum charge per run in Apify: the Actor stops at it and says so.

### Known limits

- One search returns about 90 to 130 distinct products per photo (measured on 15/11/2026), whatever the number of pages; two runs of the same photo merged by `productId` gave up to about 170. `maxResultsPerImage` above 130 rarely adds rows in one run.
- The products depend on `shipTo`, and a search is tied to the region of the IP address that sent the photo: the Actor reads every page of a photo from the same proxy group.
- AliExpress never serves exactly the same list twice. In our tests (15/11/2026), two searches of one photo from two IP addresses shared 34 to 49 of their first 60 products, and on the same IP the order of neighbouring products shifted between two reads. For a sorted search (`price_asc`, `price_desc`, `orders`), one run sorts the pool it was served: a second read of the same search added up to 42 products (130, then 172 together). If you need the widest list, run the image again and merge by `productId`.
- Numbers are JSON numbers: a whole price or rating such as `5.0` may show as `5` once exported by Apify (same value).
- `storeName` exists only for sponsored placements; the other cards do not carry it (the Actor does not open each product page).
- `priceText` is AliExpress's served text, not the exact display of the card; `price` is the number.
- Rows come in the order images finish (3 at a time); within an image, in `rank` order.

### Support

Questions, a photo that does not give what you expect, or a field you need: open an issue on the Actor's page with the run link. If the Actor is useful to you, please leave a review on its Store page: it helps other buyers find it.

This Actor is not affiliated with, endorsed by or sponsored by AliExpress or Alibaba Group. It uses only AliExpress's public search by image, as any logged-out visitor does; respect AliExpress's terms and the laws that apply to your use of the data.

# Actor input Schema

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

One image per line: a direct https link to a JPEG, PNG, WebP, GIF, AVIF or HEIC image (for example the image link of a product page, an ad, a shop or a cloud drive file served to everyone), a data:image/...;base64,... URL, or base64 text. Each image is searched on AliExpress, like the camera icon of its search bar. HEIC is converted to JPEG and images over 1,000 px or 1 MB are reduced to 800 px before sending; images under 16 px are refused (AliExpress returns unrelated products for them), and so are images too large to decode in memory (over 178 megapixels for a standard JPEG; about 90 for a progressive JPEG, 70 if it is 4:2:2, 46 if full-colour 4:4:4, 35 if CMYK; 37 for HEIC; 52 for PNG and GIF, 1-bit black and white included, 157 for 8-bit greyscale PNG, 47 for 16-bit greyscale PNG, 33 for transparent PNG or GIF; 15 for AVIF, 17 for WebP). Up to 1,000 images per run; the same line twice is searched once.

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

Two-letter country code (US, GB, DE, FR, BR, JP, KR, CA, AU, ES...): AliExpress shows the products, prices and offers of that country. It also picks which products AliExpress returns for the photo.

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

Currency of the prices. USD, EUR, GBP, BRL, JPY, KRW, CAD, AUD, PLN and MXN were measured; with another one, if AliExpress serves a different currency the rows say so (currency field) and the run gives a warning: prices are never converted.

## `language` (type: `string`):

Language of titles, sold texts and badges (AliExpress translates them).

## `sort` (type: `string`):

best_match keeps AliExpress's order. For the other sorts the Actor reads every results page of the photo, then sorts all products itself (AliExpress only sorts inside each page of 60), then keeps the first maxResultsPerImage.

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

Products kept per image (rows in the dataset, the only charged rows). One search gives about 90 to 130 distinct products per photo (measured; up to 170 over two runs), so values above 130 rarely add rows; capped at 300.

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

Apify datacenter proxy by default (every search uses a fresh IP address; measured reliable). Residential proxy is possible (its traffic is billed to your Apify account); its country does not need to match Ship to.

## Actor input object example

```json
{
  "imageUrls": [
    "https://ae-pic-a1.aliexpress-media.com/kf/S6fdd296bfdfb4e0d80daf8eb660d0354z.jpg"
  ],
  "shipTo": "US",
  "currency": "USD",
  "language": "en_US",
  "sort": "best_match",
  "maxResultsPerImage": 60,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per product found for an image (status ok), every field.

## `overview` (type: `string`):

Image, rank, title, price, original price, discount, sold, rating, Choice, store, link, picture.

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

Readable per-image summary: status, products, pages, uploads, reason for anything not in the dataset.

## `summaryJson` (type: `string`):

The same summary as JSON (OUTPUT record), with rowsNotInDataset: the no_matches, image_error, blocked and failed rows, same fields as the dataset.

# 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/S6fdd296bfdfb4e0d80daf8eb660d0354z.jpg"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hexagone-data/aliexpress-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/S6fdd296bfdfb4e0d80daf8eb660d0354z.jpg"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("hexagone-data/aliexpress-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/S6fdd296bfdfb4e0d80daf8eb660d0354z.jpg"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call hexagone-data/aliexpress-image-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hexagone-data/aliexpress-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/zknEJt2bx6wKOcXmb/builds/nFZfB3qL5TEUPz00E/openapi.json
