# Alibaba Image Search Scraper: Find Offers by Photo (`automation_craft/alibaba-image-search-scraper`) Actor

Search Alibaba.com by photo, no login: paste an image link or upload a photo and get the offers Alibaba's own image search matches. Each row: title, price, MOQ, units sold, ad flag, supplier, country, years, Verified, rating. Filters, find similar, product details. JSON, CSV, API; pay per offer.

- **URL**: https://apify.com/automation_craft/alibaba-image-search-scraper.md
- **Developed by:** [Automation Craft](https://apify.com/automation_craft) (community)
- **Categories:** E-commerce, Lead generation, Developer tools
- **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.95 / 1,000 offers

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

### Alibaba Image Search Scraper: Find Offers by Photo

**Alibaba image search scraper: search Alibaba.com by photo and get one row per offer that Alibaba's own image search
matches**, with its title, link, images, price text and numeric range, MOQ, units sold, ad flag, its place in Alibaba's
order, and the supplier: name, store link, country, years on Alibaba, Verified and Verified Pro, store rating and reviews.
Paste a photo link, upload a photo or send it as a data URL, or give a product link for Alibaba's own "find similar"
matches. No login, no key, no browser, and no outside image AI: the matching is Alibaba's own, the same search as the camera
button in Alibaba's search bar.

It is built for sourcing agents and importers who hold a product photo and need the factories that sell it, Amazon FBA,
dropshipping and private label sellers checking the wholesale price and MOQ of a product they saw, buyers comparing offers
for one item across suppliers, and apps and AI agents that need Alibaba's matches for a photo through the real-time API.

#### What it does

- **Alibaba's own image search, by photo**: the Actor downloads each photo itself (a link, a data URL or a file you upload),
  turns it upright by its EXIF orientation, cuts your crop box if you set one, shrinks it to at most 500 px on its long side
  as a JPEG on a white background (as Alibaba's own page does), uploads it to Alibaba and reads the matches. JPEG, PNG, WEBP,
  GIF, AVIF and TIFF photos of up to 12 MB and 40 million pixels (AVIF up to 4 million).
- **Every object of a photo**: Alibaba's detector finds up to 4 objects in a photo and searches the first by default.
  `objectIndex` picks another one, `searchAllObjects` searches each of them, `cropBox` cuts the part you want; every row
  names the object it was found by (`objectIndex`, `objectRegion`).
- **Find similar by product**: `productUrls` takes Alibaba product links or ids and returns Alibaba's own "find similar"
  matches for each, no photo needed.
- **Words with the photo**: `searchText` sends words with every photo (Alibaba's text plus image search). They narrow the
  matches and can outweigh the photo.
- **Deep results**: up to 1,000 offers a photo (`maxResultsPerImage`), read in pages of up to 200. An offer is delivered and
  billed once per run, however many photos or pages reach it.
- **Alibaba's filters, checked again on the row**: price range, maximum MOQ, Verified, Verified Pro, Alibaba Guaranteed, fast
  customization, a product certification, years on Alibaba and suppliers outside China are sent to Alibaba AND judged on
  every row. Trade Assurance, manufacturers, ready to ship, delivery days and a category are applied by Alibaba (the match
  card does not show them), and sponsored offers are left out under any of them. Supplier countries, minimum store rating,
  ads out, title words out and excluded suppliers are judged on the row (Alibaba's image search ignores them). An offer left
  out is free.
- **Orders Alibaba's image search does not have**: `sortBy` `price_low`, `price_high` or `units_sold` orders the matches the
  run reads (up to 500 in one call) by the low end of the match card's price range (for both price orders) or its units sold, labelled `sortedBy` and `sortValue` on every row.
- **One row per supplier**: `onePerSupplier` keeps each supplier's best placed match that passes your filters, with
  `supplierMatches` counting its offers on the pages read.
- **Add-ons**: `includeProductDetails` adds the offer's product page (quantity price ladder, unit price at the minimum order,
  attributes, variants and their prices, lead times, packaging, sample, certifications, the supplier's verification flags);
  `includeCompanyProfile` adds the supplier's company profile from its store home page (year established, employees, factory
  size, revenue, main markets, certifications, the inspection company that verified it, contact people).
- **Alibaba's own views**: prices in 16 currencies (`currency`), titles in 10 languages (`language`), and the buyer's country
  Alibaba shows the offers for (`shipToCountry`).
- **Every photo and product ends in one row**: its offers with a free coverage row, or one free row per outcome kind (a link
  that could not be read, a file that is not an image, a product with no similar offers, a photo the run did not reach).
- **A real-time API**: one photo or one product per HTTP request, one page of up to 100 matches, no run to start.

### Quick start

1. Open the Actor and paste one or more product photo links into `imageUrls`, one per line, or upload a photo from your
   computer into `imageFile`.
2. Optional: set `maxResultsPerImage` (20 by default, up to 1,000) and narrow the matches with `maxPrice`, `maxMoq`,
   `verifiedOnly`, `supplierCountries`, `minStoreRating`, `excludeAds` and the other filters.
3. Optional: paste product links into `productUrls` for their similar offers, or turn on `includeProductDetails` (price
   ladder) or `includeCompanyProfile` (supplier profile).
4. Run it, then download the dataset as JSON, CSV or Excel, or read it through the API.

The prefilled input searches one yoga mat photo: 20 offers in 5 to 10 seconds (the health runs of 2026-11-14). An input
that names no photo or product, with nothing else changed, runs that same sample search (20 offers, billed as usual).

### What you get

One row per offer (`type: "offer"`), billed as one Offer; the first billed offer of each search also bills one Image search
(a search is one photo, one object of a photo with `searchAllObjects`, or one product's similar offers). Each search adds one
free coverage row (`type: "search"`) that says how many matches Alibaba reported, how many pages and offers it read, how many
it delivered, met again or left out by your filters (and why), the price spread of its per piece US dollar offers, and why its
walk ended (with `droppedForMemory`: matches read but not kept for later, when many searches of one run wait at once with
more matches than they can still deliver; never billed). Status rows (`type: "status"`) say where every photo or product that gave no search ended and name any input
problem, and the free run summary (`type: "summary"`) comes last.

Fill rates are measured over the 2,240 offer rows (1,929 distinct offers; 1,930 rows from photos, 310 from products) of the 32
platform runs of build 0.1.1 on 2026-11-14 that delivered offers (the full test matrix: photo links, a data URL, an uploaded
file, every object, a crop box, words with the photo, similar offers, filters, orders, views, add-ons and bulk runs); a field
counts as filled when it holds a value:

| Field | What it holds | Filled |
|---|---|---|
| `offerId`, `title`, `url`, `imageUrl`, `images` | the product id, title, link and pictures | 100% |
| `position`, `page` | the offer's place in Alibaba's order | 100% |
| `imageInput`, `alibabaImagePath`, `objectsDetected` | the photo searched (its link, "data URL (N bytes)" or "uploaded file"), Alibaba's copy of it and the number of objects Alibaba found | 100% of photo rows |
| `objectIndex`, `objectRegion` | the object searched and its box (`x1,x2,y1,y2`; empty when Alibaba's default object was searched) | 100% of photo rows; the box with `objectIndex` or `searchAllObjects` |
| `similarToProductId` | the product whose similar offers a row is | 100% of product rows |
| `priceText` | the price as Alibaba shows it, for example "$0.60-2.75" | 100% |
| `currency`, `priceMin`, `priceMax`, `priceUnit`, `isPerPiece` | the price range as numbers and its unit | 99.8% |
| `unitPriceAtMoq` | the unit price at the minimum order, where a single price or the product page proves it | 33.8% (more with `includeProductDetails`) |
| `moq`, `moqUnit`, `moqText` | the minimum order | 99.8% (`moqText` 100%) |
| `unitsSold`, `unitsSoldText` | units sold, as Alibaba shows them | 29.7% |
| `productScore` | the product's review score | 87.8% |
| `productCertifications` | certifications on the card, for example CE or FSC | 19.6% |
| `guaranteed`, `tradeAssurance` | Alibaba Guaranteed and Trade Assurance, where the card's layout shows them | 9% and 15.2% |
| `deliveryEstimate`, `easyReturn`, `sellingPoints`, `badges` | Alibaba's delivery date, easy return mark, selling points and badges as served | 30.8%, 100%, 85.7%, 18.8% |
| `isAd`, `adType` | true for a sponsored offer, and Alibaba's card kind | 100% and 99.8% |
| `supplier.name`, `supplier.homeUrl`, `supplier.profileUrl`, `supplier.country` | the supplier and its store | 100% |
| `supplier.id` | Alibaba's company id | 90.6% |
| `supplier.yearsOnAlibaba`, `supplier.verified`, `supplier.verifiedPro` | years on Alibaba and the verification flags | 99.7% and 100% |
| `supplier.storeRating`, `supplier.reviewCount`, `supplier.serviceScore`, `supplier.shippingScore` | the store's rating and scores out of 5 | 87.8% |
| `supplier.reorderRate` | the share of buyers who order again, percent | 55.9% |
| `contactSupplierUrl` | Alibaba's inquiry form for the product (never opened by the Actor) | 100% |
| `supplierMatches` | with `onePerSupplier`: the supplier's offers on the pages read | every such row |
| `details`, `detailsStatus` | with `includeProductDetails`: the product page below, or why the row has none | 6 of the 7 rows that asked (the 7th was a charge limit test) |
| `companyProfile`, `companyProfileStatus` | with `includeCompanyProfile`: the company profile below, or why the row has none | 5 of the 5 rows that asked |
| `searchKey`, `searchLabel`, `searchKind`, `input`, `searchText`, `scrapedAt` | which search and input the row came from | 100% |
| `sortedBy`, `sortValue` | with `sortBy`: the order and the card's price or units sold it ordered by | every row of such a search (`sortValue` was added after the measured runs) |

The product page (`details`, over its 6 rows) holds `categoryPath`, `attributes`, `customization`, `variants`, `leadTimes`,
`packaging`, `shipsFrom`, `certifications`, `images`, `tradeAssurance`, the store rating, the supplier's block (verification
flags, response time, on time delivery, revenue band, employees) and `contactPerson` (6 of 6), `priceTiers` (the quantity price
ladder, 5 of 6), `sample` (3 of 6), `salesVolume` (2 of 6) and `variantPrices` (1 of 6). The company profile
(`companyProfile`, over its 3 stores) holds `businessTypes`, `location`, `address`, `mainProducts`, `onsiteCheck`, `avCheck`
and `paidMember` (3 of 3); the store's own overview (`yearEstablished`, `employees`, `factorySize`, `annualRevenue`,
`mainMarkets`, `acceptedPayment`, `deliveryTerms`), `inspectionCompany`, `capabilities` and `contactPeople` come where the
store's home page shows them (none of these 3 stores did).

An offer row, shortened (a real row of 2026-11-14, from a run with `verifiedOnly`, `maxMoq` 500 and `excludeAds`):

```json
{
  "type": "offer",
  "searchLabel": "photo 1",
  "imageInput": "https://s.alicdn.com/@sc04/kf/H6356173f8eb849c9a0909f7e7302676ay.jpg",
  "objectIndex": 1,
  "objectsDetected": 4,
  "position": 8,
  "offerId": "1601423812586",
  "title": "High-Temperature Resistant Silicone Spatula Large Small Milky White Food Grade Beech Wood for Baking Pastry Cream Cake Tool",
  "url": "https://www.alibaba.com/product-detail/High-Temperature-Resistant-Silicone-Spatula-Large_1601423812586.html",
  "isAd": false,
  "priceText": "$0.60-2.75",
  "currency": "USD",
  "priceMin": 0.6,
  "priceMax": 2.75,
  "priceUnit": "piece",
  "moq": 100,
  "moqUnit": "piece",
  "unitsSold": 400,
  "productScore": 4.7,
  "guaranteed": true,
  "tradeAssurance": true,
  "deliveryEstimate": "Delivery by Dec 19",
  "badges": ["ag"],
  "supplier": {
    "id": "239315577",
    "name": "Yangjiang Homedailys Houseware Co., Ltd.",
    "homeUrl": "https://homedaily.en.alibaba.com/",
    "country": "CN",
    "yearsOnAlibaba": 10,
    "verified": true,
    "verifiedPro": false,
    "storeRating": 4.8,
    "reviewCount": 50
  }
}
```

The coverage row of that search, shortened:

```json
{
  "type": "search",
  "searchKind": "photo",
  "objectsDetected": 4,
  "filters": { "minPrice": 0.5, "maxPrice": 20, "maxMoq": 500, "verified": true, "excludeAds": true },
  "totalReported": 202,
  "pagesRead": 1,
  "distinctOffersRead": 48,
  "offersDelivered": 10,
  "leftOut": 13,
  "leftOutBy": { "ad": 13 },
  "endedBy": "maxResultsPerImage",
  "complete": false
}
```

### How a photo search works

Alibaba reported 481 to 2,345 matches for each search without filters in the test runs (73 searches), so a search rarely
runs out. Each results
page asks for the search's remaining room plus a quarter, at least 48 and at most 200 matches; an order of the run
(`sortBy`) reads 500 in one call. Alibaba answers each call from one of two rankings at random (five identical calls on
2026-11-14 came back in two orders that share 5 or 6 of 48 offers), so later pages of a long walk repeat offers of earlier
ones (1,000 offers of one photo took 6 to 7 pages of 200: 1,200 to 1,400 read, 1,017 to 1,080 distinct). A repeat is never delivered
or billed again; it is counted on the coverage row, which gives the distinct offers read
against the total Alibaba reported and is never marked complete. A walk ends (`endedBy`) at your `maxResultsPerImage`, at
`maxPagesPerImage`, at Alibaba's last page, on a page that brought no offer the run had not met (`noNewOffers`), after two
failed pages, on Alibaba's verification page, or at a stop.

The matches are Alibaba's own. Measured on 2026-11-14 with 20 photos taken from Alibaba product pictures: the product itself
came first on 8 and in the top 10 on 14, and the first page was the same kind of product on 20 of 20. Alibaba's image search
always answers with its nearest offers (it has no "no match" answer), so a photo of something Alibaba does not sell still
returns offers; a search ends with no offer when your filters leave none or Alibaba could not be read. Sponsored offers are part of the matches
(21.5% of the measured rows in Alibaba's first 20 places, 2.7% after them): `excludeAds` leaves them out, free.

### How much does it cost to scrape Alibaba by image?

You pay per event (Apify's pay per event model): per offer delivered, once per search that delivered at least one offer, and,
where a row carries them, per product page and per company profile. Prices per 1,000 events by Apify plan:

| Event | What it is | Free | Bronze | Silver | Gold |
|---|---|---|---|---|---|
| Offer (`offer`) | one offer row delivered | $1.33 | $1.22 | $1.10 | $0.95 |
| Image search (`image-search`) | once per search (a photo, an object of a photo, or a product's similar offers) that delivered at least one offer | $4.20 | $3.80 | $3.50 | $3.00 |
| Product detail (`product-detail`) | the product page on a row, with `includeProductDetails` | $2.66 | $2.43 | $2.20 | $1.90 |
| Company profile (`company-profile`) | the company profile on a row, with `includeCompanyProfile`; once per supplier in a run | $1.40 | $1.28 | $1.16 | $1.00 |
| Real-time API request (`api-request`) | real-time API only: once per request that delivered at least one offer | $2.00 | $2.00 | $2.00 | $2.00 |

Platinum and Diamond plans pay the Gold price. The Actor start event is $0.0075 per run at the default 256 MB, at every plan
(Apify charges it per GB of the run's memory); it is not charged on the real-time API.
The Store pricing card shows these same prices per 1,000 events: "$1.33 / 1,000" on the Offer row means one offer costs 0.133 cents, "$4.20 / 1,000" on the Image
search row means one search costs 0.42 cents, "$2.66 / 1,000" on the Product detail row means one product page costs 0.266
cents, "$1.40 / 1,000" on the Company profile row means one profile costs 0.14 cents, and "$2.00 / 1,000" on the Real-time API
request row means one request costs 0.2 cents.

Worked examples: one photo with 100 offers on the Free plan costs 100 x $0.00133 + $0.0042 + the $0.0075 start fee = $0.1447.
Fifty photos with 20 offers each on the Gold plan cost 1,000 x $0.00095 + 50 x $0.003 + $0.0075 = $1.1075. One photo with 20
offers and their product pages on the Bronze plan costs 20 x $0.00122 + $0.0038 + 20 x $0.00243 + $0.0075 = $0.0843.

Never billed: an offer your filters leave out, a sponsored offer you excluded, an offer met again on a later page or by
another photo, a photo that could not be read, a file that is not an image, a photo larger than the Actor reads, a crop box
outside the photo, a photo with fewer objects than `objectIndex` names, a photo Alibaba's upload refused, a product with no similar offers, a search that delivered no offer, a
product page or company profile that could not be read, a later row of a supplier whose company profile was already billed,
a photo or product the run did not reach, results pages, and the coverage, status and summary rows. `maxItems` (1,000 by
default, up to 100,000) caps the offer rows of a run, shared fairly between the searches. An offer whose charge does not fit
your run's charge limit is not delivered; when only its product page or company profile does not fit, it is delivered
without it (`detailsStatus` or `companyProfileStatus` `not_charged_charge_limit`), except an offer that passed your price,
MOQ or certification filter only on its product page's figures, which is never delivered without that page. Work that bills nothing has an allowance
(USD 0.0012 plus a share of what each billed row pays); past it the run stops reading, with a free row that says so.

#### How long a run takes

Alibaba rations its image search per address: about 10 calls a minute, the 11th answered with its verification page for
about 30 minutes (measured on 5 addresses on 2026-11-14). The Actor paces itself under it, at most 7 calls in any minute and
at least 3 seconds apart. A photo takes two calls (the upload and one results page), so a list of photos runs at about 3
photos a minute. Up to 160 offers of one photo are asked in a single results page, so more offers a photo cost no extra time up to
that; a product's similar offers take one call a page. Measured on the platform on 2026-11-14: 20 offers of one photo in 5 to
10 seconds, 1,000 offers of one photo in 43 to 75 seconds (an upload and 6 to 7 results pages), 20 photos with 20 offers each in 5 minutes
25 seconds to 6 minutes 13 seconds (about 3.2 to 3.7 photos a minute), the similar offers of 15 products (300 offers) in 2 minutes 8 seconds to 2 minutes 13 seconds, and 40 photo
links that could not be read in 4 seconds, free.

The run's address is shared with other runs on the platform, so Alibaba can answer a run with its verification page early.
This Actor never solves that page and never moves to another address to get past it (one move to a fresh session is made
only when the page comes within the door's first 3 calls): the offers already delivered stay, the search's coverage row says
`verificationPage`, and every photo or product it did not reach ends in a free `not_read_verification_page` row. Run them again
later.

### Input

The full list with descriptions is on the Input tab. In short:

#### Photos to search

- `imageUrls`: photo links (`https://` or `http://`, a JPEG, PNG, WEBP, GIF, AVIF or TIFF of up to 12 MB) or data URLs
  (`data:image/jpeg;base64,...`), up to 100 a run. The same photo given twice is searched once.
- `imageFile`: one photo uploaded from your computer in the Console, searched like a link.
- `productUrls`: Alibaba product links (`alibaba.com/product-detail/..._<id>.html`) or product ids, up to 100: Alibaba's own
  similar offers of each.
- `searchText`: words sent with every photo (1 to 200 characters).
- `searchAllObjects`, `objectIndex` (1 to 4) or `cropBox` (`x,y,width,height` in pixels of the original photo): which part of
  each photo is searched. At most 200 searches a run (photos times objects, plus products).

#### How many

- `maxResultsPerImage` (20 by default, 1 to 1,000 per search), `maxPagesPerImage` (1 to 50), `maxItems` (1,000 by default, up
  to 100,000 offer rows a run), `onePerSupplier`, `sortBy` (`best_match`, Alibaba's order, or `price_low`, `price_high`,
  `units_sold` in the run).

#### Filters

- Sent to Alibaba and checked on the row: `minPrice`, `maxPrice` (US dollars), `maxMoq`, `verifiedOnly`, `verifiedProOnly`,
  `guaranteedOnly`, `fastCustomizationOnly`, `productCertification` (one name, for example CE), `minYearsOnAlibaba` (Alibaba's
  10 year filter is sent at 10 and above; its "5+ years" filter is a 5 to 10 range, so under 10 the row alone is judged), `outsideChinaOnly` (Alibaba's Worldwide view).
- Applied by Alibaba (sponsored offers left out under them): `tradeAssuranceOnly`, `manufacturersOnly`, `readyToShipOnly`,
  `maxDeliveryDays` (Alibaba's 18, 24 and 30 day filters, the largest at or under your value), `categoryId` (an id or a
  category link).
- Checked on the row: `supplierCountries` (ISO codes or English names, up to 20), `minStoreRating` (a supplier without a
  rating is left out), `excludeAds`, `excludeTitleWords` (whole words, case and accents ignored, up to 20),
  `excludeSupplierIds` (company ids; with it, an offer whose card names no company id is left out too, free, since it cannot
  be shown to be another supplier).
- The filters apply to photo searches and product searches alike; a figure the card does not show fails a filter on that
  figure, free.

#### What each row carries

- `includeProductDetails` (billed as Product detail), `includeCompanyProfile` (billed as Company profile, once per supplier
  in a run), `includeRawCard` (Alibaba's own match card, free).

#### View

- `currency`: USD, EUR, GBP, CAD, AUD, INR, BRL, MXN, AED, SAR, JPY, KRW, SGD, ZAR, RUB or TRY, as Alibaba shows prices
  (never converted; the price filters and price orders need USD). `language`: `en_US`, `es_ES`, `fr_FR`, `de_DE`, `pt_PT`,
  `ja_JP`, `ru_RU`, `ar_SA`, `ko_KR` or `zh_CN` (the language of the titles). `shipToCountry`: the buyer's country Alibaba
  shows the offers for (the United States when left out).

#### Run

- `feedback`: a note to us, kept in the run's key-value store. `extendOutputFunction`: your own JavaScript that adds a
  `custom` field to each row. `proxyConfiguration`: the default (the run's own address with an Apify datacenter session as the
  fallback) or Apify datacenter only. `maxRequestRetries`, `maxRunSeconds`, `debugLog`.

### Real-time API

This Actor is also a Server Actor: next to normal runs it answers plain HTTP requests in real time, with no run to start and no
dataset to read. Send one photo (or one product) and get Alibaba's matches back in the response, with the same fields as
dataset rows. Use it inside your own app, a sourcing tool, an automation step or an AI agent.

Copy the server URL from the **Server** tab of the Actor page (it looks like
`https://automation-craft--alibaba-image-search-scraper.apify.actor`) and authenticate with your Apify token, as for the Apify
API.

| Endpoint | What it does |
|---|---|
| `GET /search?imageUrl=<photo link>` | one photo: one page of Alibaba's matches, up to 100 offers that pass your filters |
| `POST /search` with the body `{"image": "<data URL or base64>"}` | the same with the photo's own bytes (JPEG, PNG, WEBP or GIF, at most 2.5 MB of image) |
| `GET /similar?product=<product link or id>` | one page of Alibaba's similar offers of one product |
| `GET /` | a short JSON description of the endpoints, limits and charges; free |

Measured on 2026-11-14: a photo answers in about 7 seconds (its upload and one results page, at Alibaba's pace), a product's
similar offers in about 3 seconds, the first request of an idle server in about 7.5 seconds.

Options of the three data endpoints: `limit` (offers to return, 1 to 100, 20 by default), `object` (1 to 4, the object of the
photo; search endpoints only), `text` (words with the photo), `verifiedOnly`, `verifiedProOnly`, `manufacturersOnly`,
`tradeAssuranceOnly`, `guaranteedOnly`, `readyToShipOnly`, `fastCustomizationOnly`, `outsideChinaOnly`, `excludeAds`,
`onePerSupplier` (`true` or `false`), `minPrice`, `maxPrice`, `maxMoq`, `minStoreRating`, `minYearsOnAlibaba`,
`maxDeliveryDays`, `productCertification`, `categoryId` (an id), `country` (one supplier country, a two letter code),
`currency`, `language`, `shipToCountry`.

```bash
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  "https://automation-craft--alibaba-image-search-scraper.apify.actor/search?imageUrl=https%3A%2F%2Fs.alicdn.com%2F%40sc04%2Fkf%2FH9783cf64e5af453f8bc3c3925cfb28f3I.jpg&verifiedOnly=true&limit=30"
```

```bash
curl -X POST -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d "{\"image\": \"data:image/jpeg;base64,$(base64 -w0 photo.jpg)\"}" \
  "https://automation-craft--alibaba-image-search-scraper.apify.actor/search?excludeAds=true"
```

```bash
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  "https://automation-craft--alibaba-image-search-scraper.apify.actor/similar?product=1601617846699&limit=50"
```

A data request answers `{"search": {...}, "offers": [...]}`: the search object names the object searched, the matches Alibaba
reported and how many offers your filters left out. Every answer of a request that was read carries an `X-Charged-Events`
header, for example `offer=20; image-search=1; api-request=1`. All of these are free: a page with no offer that passes your
filters (200 with an empty list), an invalid value or an option the endpoint does not have (400), a product with no similar
offers (404), a photo that could not be read, is not an image, is too large or was refused by Alibaba's upload (422), a body over its size limit (413), a request
over the rate limit (429 with `Retry-After`: one server run serves each account 6 Alibaba image calls a minute, a photo being
2 calls and a product 1), an error of Alibaba's (502), a run Alibaba is refusing or one at capacity (503 with `Retry-After`),
and a request stopped at its time limit (504; the response time limit is 85 seconds). Encode the whole photo link in `imageUrl`, as in the example.

#### How much does a real-time request cost?

You pay per request and only for what the response delivers. There is no Actor start event on the real-time API and you pay
no platform usage.

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Real-time API request (`api-request`, once per request that delivers at least one offer) | $0.002 | $0.002 | $0.002 | $0.002 |
| Image search (`image-search`, once per request that delivers at least one offer) | $0.0042 | $0.0038 | $0.0035 | $0.003 |
| Offer (`offer`, per offer delivered) | $1.33 / 1,000 | $1.22 / 1,000 | $1.10 / 1,000 | $0.95 / 1,000 |

Worked example on the Bronze plan: one photo with 20 offers costs $0.002 + $0.0038 + 20 x $0.00122 = $0.0302. A request
that delivers no offer is free. Platinum and Diamond plans pay the Gold price.

For lists, use normal runs: many photos and products, more than 100 offers a photo, every object of a photo, a crop box,
product details, company profiles, orders of the run, a dataset you can export, and no Real-time API request event.

### API

Run the Actor and read its dataset (the synchronous endpoint answers within its 5 minute limit; at about 3 photos a minute
it suits up to about ten photos):

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~alibaba-image-search-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"imageUrls": ["https://s.alicdn.com/@sc04/kf/H9783cf64e5af453f8bc3c3925cfb28f3I.jpg"], "maxMoq": 500, "verifiedOnly": true, "maxResultsPerImage": 50}'
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('automation_craft/alibaba-image-search-scraper').call({
    imageUrls: ['https://example.com/photos/desk-lamp.jpg', 'https://example.com/photos/office-chair.jpg'],
    supplierCountries: ['CN', 'VN'],
    minStoreRating: 4.5,
    excludeAds: true,
    sortBy: 'price_low',
    maxResultsPerImage: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const offers = items.filter((r) => r.type === 'offer');
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automation_craft/alibaba-image-search-scraper").call(
    run_input={"productUrls": ["1601617846699"], "onePerSupplier": True, "includeCompanyProfile": True, "maxResultsPerImage": 30},
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
offers = [r for r in items if r["type"] == "offer"]
```

### FAQ

#### How do I search Alibaba by image?

Paste the photo's link into `imageUrls` (or upload the photo into `imageFile`) and run the Actor. It uploads the photo to
Alibaba's own image search, the same search as the camera button in Alibaba's search bar, and returns every match as a row
with price, MOQ, units sold and the supplier; `maxResultsPerImage` sets how many (up to 1,000 a photo).

#### Can I find the supplier of a product from a photo?

Yes: every offer row names its supplier, with the store link, country, years on Alibaba, Verified and Verified Pro flags and
store rating. Turn on `onePerSupplier` for one row per supplier, `verifiedOnly` or `minStoreRating` to keep the reliable ones,
and `includeCompanyProfile` for its company profile: business type and address, and where the store shows them the year
established, employees, factory size and the inspection company that verified it.

#### Is there an Alibaba image search API?

This Actor works as one for Alibaba.com's own image search: its real-time API answers `GET /search?imageUrl=...`,
`POST /search` with the photo's bytes and `GET /similar?product=...` with up to 100 matches per request, and the Apify API runs
whole lists of photos and returns the rows as JSON. It needs no Alibaba account or key.

#### Can I search with my own photo instead of a link?

Yes: upload it into `imageFile` in the Console, send it as a data URL (`data:image/jpeg;base64,...`) in `imageUrls`, or post
its bytes to `POST /search` on the real-time API. The photo is uploaded to Alibaba for the search and never stored by the
Actor; rows name a data URL as "data URL (N bytes)" and an upload as "uploaded file".

#### How do I find similar products on Alibaba?

Paste product links or product ids into `productUrls`: each returns Alibaba's own "find similar" matches for that product, no
photo needed, with the same fields and filters as a photo search. On the real-time API, call
`GET /similar?product=<link or id>`.

#### Why does this Actor run with limited permissions?

Least privilege: it only reads and writes its own run's storages (the run's dataset and key-value store) and reads the one
photo you upload in `imageFile`. It opens no named store, so it cannot read anything else in your account.

### What this Actor does NOT do

- No other marketplaces: it searches Alibaba.com only (no 1688, AliExpress, Made-in-China or other sites, and none of their
  sales or service fields).
- No outside image matching: no vision AI, no other reverse image service. The matches and their order are Alibaba's own.
- No similarity score: Alibaba's image search gives none; `position` is Alibaba's own order.
- No supplier verification report: it lives on store pages that robots.txt disallows. Rows carry the Verified and Verified
  Pro flags, and the inspection company that verified a supplier comes with `includeCompanyProfile`
  (`companyProfile.inspectionCompany`).
- No translation: `searchText` is sent as typed. `language` sets the language of Alibaba's titles.
- No speed or concurrency settings: Alibaba serves about 10 image search calls a minute per address and refuses the 11th for
  about 30 minutes at any pace, so the Actor paces itself to 7 a minute and a faster setting could not be served.
- No sort by Alibaba: its image search ignores every order; `sortBy` orders up to 500 matches the run reads.
- No local stock filter: Alibaba's image search answered it with no offer in our tests.
- No keyword search without a photo or product (the Alibaba Scraper linked below searches by keyword) and no supplier rows:
  `onePerSupplier` gives one offer row per supplier.
- No phone numbers or e-mail addresses: rows carry none. They carry the inquiry form link (`contactSupplierUrl`) and, with
  the add-ons, the contact person's name.
- No SVG drawings: a photo link or data URL must be a JPEG, PNG, WEBP, GIF, AVIF or TIFF image (an SVG can load other resources,
  so it is refused, free).
- No other Actors' input names: settings are read by this Actor's own names only (`imageUrls`, not `imageUrl`, `images` or
  `startUrls`); an unknown setting name refuses the run, free, so a misspelt filter is never silently ignored.
- No currency conversion: prices are the figures Alibaba shows in the currency you choose.
- No complete walks: Alibaba answers from two rankings at random, so the coverage row reports the distinct offers read
  against the total Alibaba reported.
- No residential exits and no own proxy links: Alibaba is read from the run's own address or an Apify datacenter session.
- No solving of Alibaba's verification page and no move to another address to get past it (one move to a fresh session is
  made only when the page comes within the door's first 3 calls).
- No switch that bills duplicates: an offer is delivered and billed once per run.
- No more than 100 photos, 100 products, 200 searches, 1,000 offers a search and 100,000 offer rows a run, and no more than 4
  objects a photo.
- Product pages and company profiles carry the contact person a supplier shows (name, and on product pages the job title and
  portrait). You are responsible for a lawful use of personal data, GDPR included.

### Changelog

- 0.1 (2026-11-14): first release. Alibaba.com offers by photo (a link, a data URL or an uploaded file) through Alibaba's own
  image search, or a product's similar offers; every object of a photo, a crop box, words with the photo, filters judged on
  the row, orders of the run, one row per supplier, product details and company profiles as add-ons, and a real-time API.
  The full list is on the Changelog tab.

### More data tools by Automation Craft

- [Alibaba Scraper: Products, Prices, MOQ, Suppliers](https://apify.com/automation_craft/alibaba-scraper)
- [IndiaMART Scraper: B2B Products, Prices, Suppliers](https://apify.com/automation_craft/indiamart-scraper)
- [AliExpress Search Scraper - Products and Prices](https://apify.com/automation_craft/aliexpress-search-scraper)
- [Amazon Product Scraper - Search, Best Sellers](https://apify.com/automation_craft/amazon-data-scraper)
- [Shopify Products Scraper - Variants, Stock, API](https://apify.com/automation_craft/shopify-products-scraper)
- [Walmart Scraper: Products, Prices, Sellers](https://apify.com/automation_craft/walmart-scraper)

# Changelog

This Actor's version history is a separate document: https://apify.com/automation_craft/alibaba-image-search-scraper/changelog.md

# Actor input Schema

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

Product photos to search by, one per line: a public https:// or http:// link to a JPEG, PNG, WEBP, GIF, AVIF or TIFF image (up to 12 MB and 40 million pixels; AVIF up to 4 million), or a data URL (data:image/jpeg;base64,...). The Actor reads each photo itself and uploads it to Alibaba.com's own image search, the way its search bar does; the matching is Alibaba's own. Up to 100 photos a run.

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

One product photo from your computer, searched like a photo link. Works on its own or together with the links.

## `productUrls` (type: `array`):

Alibaba product links (alibaba.com/product-detail/...\_<id>.html) or bare product ids: each gives Alibaba's own "find similar" matches for that product, no photo needed. Up to 100.

## `searchText` (type: `string`):

Optional words sent with every photo (Alibaba's own text plus image search), for example "leather" or "wireless". They narrow the matches and can outweigh the photo: a shoe photo with "bicycle" returns bicycles.

## `searchAllObjects` (type: `boolean`):

Alibaba's detector finds up to 4 objects in a photo and searches the first by default. On: one search per object found, each object's matches named on its rows (objectIndex, objectRegion). Each search bills its own Image search event.

## `objectIndex` (type: `integer`):

Search this object of each photo, by the order of Alibaba's own detector (1 to 4; 1 is the object Alibaba searches by default). A photo with fewer objects gets a free row. Not with "Search every object".

## `cropBox` (type: `string`):

Search one part of each photo: "x,y,width,height" in whole pixels of the original photo, for example "120,40,300,300". The Actor cuts that part before the upload. Not with "Search every object".

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

The most offers one search delivers (1 to 1,000): per photo, per object with "Search every object", per product for similar offers. Alibaba reports a few hundred to a few thousand matches a photo.

## `maxPagesPerImage` (type: `integer`):

The most results pages one search reads (1 to 50; a page holds up to 200 matches). Left out: as many as the matches asked need.

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

The most offer rows of the whole run (1 to 100,000), shared fairly between the searches.

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

On: each search delivers one row per supplier, its best placed match, with supplierMatches counting how many of that supplier's offers matched on the pages read. Off: every matched offer is a row.

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

Alibaba's own order, or an order the run makes: the search reads up to 500 matches in one call and delivers the first "Matches per photo" of that order (labelled sortedBy on every row, with the value it was ordered by in sortValue). The order uses the search card's price (the LOW end of its range, for both price orders) or units sold; with product details on, a row's price fields come from its product page and can differ. Alibaba's image search has no sort of its own.

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

Offers priced at or above this many US dollars (Alibaba's own price filter; a row whose price range touches the asked range passes). Needs currency USD.

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

Offers priced at or below this many US dollars. Needs currency USD.

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

Offers whose minimum order is at most this quantity (1 to 100,000,000).

## `verifiedOnly` (type: `boolean`):

Suppliers whose credentials a third party inspected (Alibaba's Verified filter; Verified Pro suppliers included).

## `verifiedProOnly` (type: `boolean`):

Alibaba's Verified Pro suppliers only.

## `manufacturersOnly` (type: `boolean`):

Alibaba's manufacturers only filter. The match card does not show it, so ads are left out under it.

## `tradeAssuranceOnly` (type: `boolean`):

Offers under Alibaba's Trade Assurance. Ads are left out under it.

## `guaranteedOnly` (type: `boolean`):

Offers with Alibaba Guaranteed (fixed price and delivery dates).

## `readyToShipOnly` (type: `boolean`):

Offers you can order at once (Alibaba's instant order filter). Ads are left out under it.

## `fastCustomizationOnly` (type: `boolean`):

Offers with Alibaba's fast customization mark.

## `productCertification` (type: `string`):

One certification name the offer must carry, for example CE, ROHS, FCC or FSC (Alibaba's own certification filter).

## `maxDeliveryDays` (type: `integer`):

Offers Alibaba promises to deliver within this many days (18 or more): Alibaba's 18, 24 and 30 day filters, the largest at or under the value is used. Ads are left out under it.

## `minYearsOnAlibaba` (type: `integer`):

Suppliers on Alibaba for at least this many years (1 to 50), checked on every row.

## `categoryId` (type: `string`):

One Alibaba category: its id (for example 100005429) or a category link (alibaba.com/catalog/...\_cid<id>). Ads are left out under it.

## `outsideChinaOnly` (type: `boolean`):

Alibaba's Worldwide view: offers of suppliers outside mainland China.

## `supplierCountries` (type: `array`):

Only suppliers in these countries: ISO codes or English names, up to 20 (checked on the row; Alibaba's image search has no country filter).

## `minStoreRating` (type: `number`):

Suppliers whose store rating is at least this (0.1 to 5); a supplier without a rating is left out.

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

Leave out sponsored offers (free).

## `excludeTitleWords` (type: `array`):

Offers whose title holds any of these words or phrases as whole words (case and accents ignored), up to 20.

## `excludeSupplierIds` (type: `array`):

Alibaba company ids (the supplier.id of a row) to leave out, up to 100,000. An offer whose card names no company id (about one in ten) is left out too, free: it cannot be shown to be another supplier.

## `includeProductDetails` (type: `boolean`):

Read each offer's product page: the quantity price ladder and the unit price at the minimum order, attributes, variants and their prices, lead times, packaging, sample, certifications, the supplier's verification. Billed as Product detail per row that carries it; a page that cannot be read is free and the row comes without it.

## `includeCompanyProfile` (type: `boolean`):

Read the supplier's store home page: year established, employees, factory size, revenue, main markets, certifications, the inspection company that verified it, contact people. Billed as Company profile once per supplier in a run; later rows of the same supplier carry it free.

## `includeRawCard` (type: `boolean`):

Add Alibaba's own match card as served (raw, free).

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

The currency Alibaba shows prices in (its own site setting; prices are never converted by the Actor). The price filters and price orders need USD.

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

The language of Alibaba's titles (its own site language).

## `shipToCountry` (type: `string`):

The country Alibaba shows the offers for (its own site setting: totals and offers differ by country). Left out: the United States.

## `feedback` (type: `string`):

A note for the developer (at most 2,000 characters), kept in the run's key-value store and never shown in the results.

## `extendOutputFunction` (type: `string`):

Optional JavaScript (row) => ({...}) run on each delivered row in a sealed process; its result is the row's custom field.

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

Left empty: the run's own address, with one Apify datacenter session as the fallback. Apify datacenter proxy only (no residential).

## `maxRequestRetries` (type: `integer`):

How many times a failed request is asked again (0 to 5).

## `maxRunSeconds` (type: `integer`):

Stop the run after this many seconds (30 to 86,400), delivering what was read.

## `debugLog` (type: `boolean`):

More detail in the run log.

## Actor input object example

```json
{
  "imageUrls": [
    "https://s.alicdn.com/@sc04/kf/H9783cf64e5af453f8bc3c3925cfb28f3I.jpg"
  ],
  "searchAllObjects": false,
  "maxResultsPerImage": 20,
  "maxItems": 1000,
  "onePerSupplier": false,
  "includeProductDetails": false,
  "includeCompanyProfile": false,
  "includeRawCard": false,
  "maxRequestRetries": 2,
  "debugLog": false
}
```

# Actor output Schema

## `items` (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://s.alicdn.com/@sc04/kf/H9783cf64e5af453f8bc3c3925cfb28f3I.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/alibaba-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://s.alicdn.com/@sc04/kf/H9783cf64e5af453f8bc3c3925cfb28f3I.jpg"] }

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/alibaba-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://s.alicdn.com/@sc04/kf/H9783cf64e5af453f8bc3c3925cfb28f3I.jpg"
  ]
}' |
apify call automation_craft/alibaba-image-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation_craft/alibaba-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/ht8MmJXkzpBkbRRJR/builds/mFAjqKVNIPrsdh9nL/openapi.json
