# Alibaba Products & Suppliers Scraper (`nice_dev/alibaba-products-scraper`) Actor

Scrape Alibaba.com products and suppliers by keyword, category or URL: price tiers, MOQ, supplier badges, ratings, 30+ filters. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/nice_dev/alibaba-products-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** E-commerce, Lead generation, MCP servers
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.33 / 1,000 product or suppliers

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

### 🛒 What is Alibaba Products & Suppliers Scraper?

**Alibaba Products & Suppliers Scraper** extracts **products and suppliers from [Alibaba.com](https://www.alibaba.com)**: **title, price per quantity tier, minimum order quantity (MOQ), units sold, supplier name, country, years on Alibaba, Verified and Trade Assurance badges, ratings**, for any keyword, category or URL. It works as an **Alibaba API alternative**: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n — for sourcing, price comparison, supplier lists and market research.

Type a **keyword** (`yoga mat`) or paste any Alibaba search, category or product URL, click **Start**, and download the results in JSON, CSV or Excel. No login, nothing to set up, and it is **fast: 100 products in about 10 seconds**. Switch **What to scrape** to **Suppliers** for one row per supplier company instead of one per product.

### 📋 What data can you extract from Alibaba?

One item per product (or per supplier), 102 fields:

| Category | What you get |
| --- | --- |
| 🏷️ **Product** | title, link, Alibaba product id, category, photos, video — `Eco-friendly TPE yoga mat 6 mm` |
| 💰 **Price** | lowest and highest unit price in US dollars, the price of every quantity tier, promotion, the same price in your currency, shipping fee to your country — `$2.80 from 500 pieces` |
| 📦 **Order** | minimum order quantity (MOQ) and its unit, units sold, processing time, delivery estimate — `2 pieces`, `1,200 sold` |
| 🏭 **Supplier** | company name, country, city, years on Alibaba, Gold, Verified and Verified Pro badges, Trade Assurance, manufacturer or trading company, response rate and time, on-time delivery, reorder rate, main products, export countries, certificates |
| ⭐ **Ratings** | product rating, supplier store rating and number of reviews, service and shipping scores, most frequent review tags |
| 📝 **Full product page** (add-on) | every attribute (material, size, brand, model number, place of origin), variants with their price, lead time by quantity, package size and weight, warehouses, certificates, customization, stock, sample price |
| 🛡️ **Verification report** (add-on) | registered company name, registration number, registered capital, year established, legal form, issuing authority, inspection company |
| 💬 **Store reviews** (add-on) | stars, text, date, buyer country, product bought and the supplier's reply |
| 📈 **Price monitoring** (add-on) | previous price, change in %, price history of the products you follow |

Every field, with an example, is listed in the **Output** section below.

The add-ons are off by default: tick only those you need, each is charged only when it delivers (see **Pricing**).

### ✅ Why use Alibaba Products & Suppliers Scraper?

- 🚀 **Fast**: 100 products in about 10 seconds from the search results, and about 50 products a minute with their full product page (measured on the Apify platform, 512 MB).
- 💲 **Every price tier from the search results**: the price for each quantity break of each product, without paying for its page.
- 🏭 **Products and suppliers**: one row per product, or one row per supplier company found for your keywords (up to 1,000 per keyword, Alibaba's limit).
- 🎯 **Alibaba's filters in the form**: price, MOQ, supplier country, Verified and Verified Pro, Trade Assurance, Alibaba Guaranteed, product and supplier certificates, US or EU warehouse, samples, ready to ship, guaranteed delivery time — plus filters Alibaba does not have: supplier rating, number of reviews, years on Alibaba, units sold, reorder rate, required or excluded words, max products per supplier, no sponsored results.
- 🧾 **More than 4,800 products per search**: Alibaba stops at 4,800; the Actor goes on.
- 🌍 **Your market**: prices also in 12 currencies, shipping fees and delivery dates for 18 countries, titles in 17 languages — US dollar prices are always there.
- 🔔 **Monitoring built in**: tick **Only new results**, schedule the Actor, and each run returns (and charges) only what it has never delivered before — and, if you want, the products whose price moved.
- 🔌 API, scheduling, integrations (Make, Zapier, n8n, Google Sheets…) and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape Alibaba

1. Create a free Apify account.
2. Open **Alibaba Products & Suppliers Scraper** and type a **Search keyword** (e.g. `yoga mat`), or choose **Suppliers** in **What to scrape**.
3. Or paste your own Alibaba URLs into **Start URLs**: a search results page (its filters are kept, pagination is automatic), a category page, a product page or a supplier's store (it gives the supplier's products). Product IDs alone go into **Product URLs or IDs**.
4. Set **Max results** (100 by default, 0 = no limit) — and **Max results per search** when you run several searches — then click **Start**.
5. Download the dataset in JSON, CSV, Excel or via API.

### 💰 How much does it cost to scrape Alibaba?

This Actor uses **pay per event** pricing, and the current prices are in the **Pricing** tab. You pay:

- **a price per result saved** (one product, or one supplier in **Suppliers** mode), plus a small fee per run start;
- **Full product page** (`extractDetails`): a fee per product page delivered, on top of its result; a product given by its URL or ID is always read from its page and charged both;
- **Supplier verification report**: once per supplier in the run, whatever the number of its products, and only when the supplier has one;
- **Supplier sales contact**: once per supplier;
- **Supplier store reviews**: per review delivered;
- **Also products whose price changed**: per product that comes back for its price, on top of its result.

Filters Alibaba does not offer are applied by the Actor on every result it reads: a result you keep costs its normal price, a result a filter drops costs only a small filter fee (`filter-check`; a higher one when the filter needs the product page, `detail-filter-check`) — filtering never costs more than taking everything. Platform usage (compute, proxy) is included in the price.

### ⚙️ Input

```json
{
    "query": "yoga mat",
    "maxItems": 200,
    "shipToCountry": "DE",
    "currency": "EUR"
}
```

Several keywords, a cap per search, only verified suppliers in Vietnam or India, only the products not delivered before:

```json
{
    "searchQueries": ["yoga mat", "resistance band"],
    "maxItemsPerQuery": 100,
    "supplierCountries": ["VN", "IN"],
    "verifiedSupplierOnly": true,
    "maxMoq": 100,
    "onlyNew": true,
    "stateKey": "fitness-vn-in"
}
```

Or with your own URLs, the full product page and the supplier's verification report:

```json
{
    "startUrls": [
        { "url": "https://www.alibaba.com/trade/search?SearchText=yoga+mat&moqt=50" },
        { "url": "https://www.alibaba.com/product-detail/Sansd-Semicircle-Shape-Colourful-Brown-Eco_1601191031553.html" }
    ],
    "extractDetails": true,
    "includeSupplierReport": true,
    "maxItems": 50
}
```

Suppliers instead of products:

```json
{
    "mode": "suppliers",
    "query": "yoga mat",
    "manufacturersOnly": true,
    "minSupplierYears": 3,
    "maxItems": 100
}
```

| Field | Notes |
| --- | --- |
| `mode` | `products` (default): one row per product offer. `suppliers`: one row per supplier company found for the keywords (up to 1,000 per keyword); the product filters (price, MOQ, certificates, warehouse…) do not apply there. |
| `query`, `searchQueries` | Keyword as typed on Alibaba, in English (`yoga mat`); **More search keywords** adds more keywords, one search each (max 100 keywords per run). In suppliers mode, the product the suppliers make. |
| `startUrls` | Alibaba search results pages (`https://www.alibaba.com/trade/search?SearchText=yoga+mat`, filters kept), category pages, product pages, or a supplier's store (its products). When set, the keyword and category fields are ignored. Max 1,000 URLs. |
| `productUrls` | Product pages or product IDs alone (`1601617846699`): each one is read from its full product page and charged as such. Max 1,000. |
| `categoryId` | Alibaba category number (`201273273` = Yoga Mats): with a keyword, the search stays in this category; alone, the whole category is listed. |
| `maxItems`, `maxItemsPerQuery` | Results to save for the whole run (`0` = no limit), and for EACH search, so that the first search cannot use up the whole budget. |
| `sortBy` | `relevance` (default) or `bestSelling`. Alibaba offers no price sort. |
| `minPrice`, `maxPrice` | Lowest unit price range, in US dollars. |
| `minMoq`, `maxMoq` | Minimum order quantity range, in units (a **Min order quantity, at most** of 10 = products you can order in small quantities). |
| `supplierCountries` | Supplier countries as 2-letter codes (`CN`, `VN`, `IN`, `TR`, `US`). |
| `tradeAssuranceOnly`, `verifiedSupplierOnly`, `verifiedProOnly`, `alibabaGuaranteedOnly` | Only products covered by Trade Assurance, only verified or Verified Pro suppliers, only Alibaba Guaranteed products. |
| `productCertifications` | Product certificates as named on Alibaba (`CE`, `RoHS`, `FCC`, `FDA`). |
| `supplierCertifications` | Supplier management certificates (`ISO9001`, `ISO14001`, `BSCI`). |
| `localStock` | Only products in stock in a `US` or `EU` warehouse. |
| `paidSamplesOnly`, `readyToShipOnly` | Only products with samples for sale, only products ready to ship. |
| `maxDeliveryDays` | Only products Alibaba guarantees to deliver within `18`, `24` or `30` days to the delivery country. |
| `shipToCountry` | Delivery country for shipping fees, delivery dates and local stock (`US` by default, `DE`, `GB`, `FR`…). US dollar prices do not change. |
| `language` | Titles translated by Alibaba (`fr`, `de`, `es`…). Ratings and review tags are only sent in English: empty with another language. |
| `currency` | Each price also converted into this currency (`EUR`, `GBP`, `JPY`…), at Alibaba's rate of the day; US dollar prices are always delivered. |
| `extractDetails` | Full product page (paid add-on, off by default): attributes, variants with their price, lead time by quantity, package, warehouses, certificates, customization, stock, sample, supplier business type. |
| `includeSupplierReport` | Verification report of verified suppliers (paid add-on): read once per supplier, charged only when the supplier has one. |
| `includeSupplierContact` | Name and job title of the sales contact shown on the product page (paid add-on). Alibaba shows no phone number or e-mail: buyers write through the Contact supplier page, whose link every row gives. |
| `includeReviews`, `maxReviewsPerSupplier` | Buyers' reviews of the supplier's store (paid add-on), newest first, 20 per supplier by default (up to 1,000). |
| `excludeKeywords`, `includeKeywords` | Drop the results whose title (or company name) contains one of the excluded WHOLE words, or keep only those containing a required one (case and accents ignored). |
| `minRating`, `minReviewCount`, `minProductRating` | Supplier store rating (0-5), number of store reviews, product rating (0-5). English only: ratings are not sent in other languages. |
| `minSupplierYears`, `minSoldCount`, `minReorderRatePercent` | Years on Alibaba, units sold shown on the card, reorder rate of the supplier (suppliers mode). |
| `manufacturersOnly` | Only factories, not trading companies, as Alibaba marks them (both modes, no product page needed). |
| `maxProductsPerSupplier` | At most this many products of the same supplier (`1` = more different suppliers in the same number of results). |
| `excludeIds` | Product or company IDs you already have: skipped before anything is read, never charged. Max 100,000. |
| `excludeAds` | Drop the sponsored results (otherwise kept and flagged). |
| `onlyNew`, `stateKey`, `resetState` | Monitoring: only the results never delivered under this memory key (one key per schedule, e.g. fitness-vn-in); **Reset the memory** forgets it. |
| `includePriceChanges`, `minPriceChangePercent` | With Only new results: also the products you already received whose price moved by at least this many % (3 by default) since. |
| Advanced | `proxyConfiguration` (Apify proxy by default, included in the price; the residential proxy is not available), `maxConcurrency`, `maxRequestsPerMinute`, `minRequestIntervalMs`, `maxRequestRetries`, `debugLog`. |

### 📦 Output

One product of a `yoga mat` search, shortened (2 of its 6 photos, 3 of its export countries; the columns of the add-ons stay empty when their option is off):

```json
{
    "recordType": "product",
    "id": "1601191031553",
    "url": "https://www.alibaba.com/product-detail/Sansd-Semicircle-Shape-Colourful-Brown-Eco_1601191031553.html",
    "title": "Sansd Semicircle Shape Colourful Brown Eco Friendly Natural Fitness Oval Custom Logo Arch Pilates PU Rubber Non Slip Yoga Mat",
    "categoryId": "201273273",
    "categoryName": "Yoga Mats",
    "price": 9.5,
    "priceMax": 11.5,
    "currency": "USD",
    "priceTiers": [
        { "minQuantity": 30, "maxQuantity": 499, "price": 11.5, "promotionPrice": null },
        { "minQuantity": 500, "maxQuantity": 4999, "price": 10.5, "promotionPrice": null },
        { "minQuantity": 5000, "maxQuantity": 9999, "price": 9.9, "promotionPrice": null },
        { "minQuantity": 10000, "maxQuantity": null, "price": 9.5, "promotionPrice": null }
    ],
    "moq": 30,
    "moqText": "30 pieces",
    "soldCount": 587,
    "isSponsored": false,
    "isAlibabaGuaranteed": false,
    "easyReturn": false,
    "certifications": ["GRS"],
    "images": ["https://s.alicdn.com/@sc04/kf/Hcc67df6df11a4beeb069f7ed3ce6dc794.png", "https://s.alicdn.com/@sc04/kf/H034911a77f6647c3aeaa46139d50b247L.jpg"],
    "hasVideo": true,
    "productScore": 4.9,
    "reviewTags": [{ "tag": "fast delivery", "count": 2 }, { "tag": "Great service", "count": 2 }],
    "supplierId": "240975877",
    "supplierName": "Sansd (jiangsu) Environmental Technology Co., Ltd",
    "supplierCountry": "CN",
    "supplierYears": 9,
    "isVerifiedSupplier": true,
    "tradeAssurance": true,
    "supplierRating": 4.8,
    "supplierResponseRate": 0.998,
    "supplierMainProducts": ["Yoga Mat", "Yoga Accessories", "Gym Mat", "Martial Arts Mat", "Soles"],
    "supplierExportCountries": ["United States", "Canada", "Cyprus"],
    "supplierCertifications": ["BSCI", "ISO"],
    "sampleProducts": [],
    "attributes": [],
    "skus": [],
    "leadTimes": [],
    "shipsFrom": [],
    "categoryPath": [],
    "customizationOptions": [],
    "certificationDetails": [],
    "detailsLoaded": false,
    "reviews": [],
    "priceHistory": [],
    "searchQuery": "yoga mat",
    "position": 11,
    "scrapedAt": "2026-11-07T00:36:29.918Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 102 fields

| Fields | What you get |
| --- | --- |
| `recordType`, `id`, `url`, `title` | `product` (or `supplier`), Alibaba product id (or company id), product page (or company profile page), title (or company name) |
| `categoryId`, `categoryName`, `categoryPath` | `201273273`, `Yoga Mats`, the category path of the full product page |
| `price`, `priceMax`, `currency`, `priceText`, `priceTiers` | **Price** in US dollars: `2.8`, `3.5`, `USD`, the price text, every quantity tier with its price |
| `promotionPrice`, `discountPercent` | promotional price and discount, when a promotion runs |
| `localPrice`, `localPriceMax`, `localCurrency`, `shippingFee` | the price in the currency you chose (`2.53`, `EUR`), the shipping fee shown |
| `moq`, `moqText`, `unit` | **Order**: `2`, `2 pieces`, `pieces` |
| `soldCount`, `soldText`, `leadTimeDays`, `deliveryEstimate` | units sold, days before shipping, delivery promise |
| `isSponsored`, `isAlibabaGuaranteed`, `easyReturn`, `certifications` | sponsored result, Alibaba Guaranteed, Easy Return badge (empty when the page does not say it: supplier store list, product page alone), product certificates (`CE`, `RoHS`) |
| `image`, `images`, `hasVideo`, `videoUrl` | photos (up to 60 with the full product page, up to 30 otherwise) and video |
| `productScore`, `reviewTags` | product rating (0-5) and the most frequent review tags with their count (English) |
| `supplierId`, `supplierName`, `supplierUrl`, `supplierStoreUrl`, `supplierLogo`, `contactSupplierUrl` | **Supplier**: company id, name, profile page, store, logo, Contact supplier page |
| `supplierCountry`, `supplierCity`, `supplierYears` | `CN`, `Zhejiang`, `9` |
| `isGoldSupplier`, `isVerifiedSupplier`, `isVerifiedPro`, `isManufacturer`, `tradeAssurance` | badges: Gold Supplier, Verified, Verified Pro, factory, Trade Assurance |
| `supplierRating`, `supplierReviewCount`, `supplierServiceScore`, `supplierShippingScore` | store rating and reviews, service and shipping scores (0-5, English) |
| `supplierResponseRate`, `supplierResponseTime`, `supplierOnTimeDeliveryRate`, `supplierReorderRate`, `supplierOrders`, `supplierRevenue` | response rate (`0.923`) and time, on-time delivery, reorder rate, orders, revenue |
| `supplierEmployees`, `supplierFactorySize`, `supplierMainProducts`, `supplierExportCountries`, `supplierCertifications`, `supplierRankText`, `sampleProducts` | staff, factory area, main products, export countries, certificates (`ISO9001`), ranking badge, the products shown on a supplier row |
| `attributes`, `skus`, `leadTimes`, `packageSize`, `packageWeightKg`, `shipsFrom` | **Full product page**: every attribute, variants with their price, lead time by quantity, package, warehouses |
| `brand`, `modelNumber`, `placeOfOrigin`, `customizationOptions`, `stock`, `tariffIncluded`, `certificationDetails` | **Full product page**: brand, model, origin, customization with its minimum order, stock, import duties included, certificates with issuer and dates |
| `supplierBusinessType`, `supplierRegisterCountry`, `supplierTradeAssuranceUsd`, `storeRating`, `storeReviewCount` | **Full product page**: the supplier block (business type, country of registration, Trade Assurance amount, store rating) |
| `sampleAvailable`, `samplePrice`, `samplePriceMax`, `sampleFree`, `sampleMaxQuantity` | **Full product page**: sample sold or not, its price, free or not, most samples per order |
| `detailsLoaded` | `true` when the full product page was read |
| `supplierContactName`, `supplierContactTitle` | **Sales contact** add-on: `Ms. Su`, `Director` |
| `supplierReport` | **Verification report** add-on: registered name, registration and tax numbers, registered capital, year established, legal form, issuing authority, licence dates, registered address, inspection company |
| `reviews` | **Store reviews** add-on: stars, text, date, buyer country, product bought, supplier's reply |
| `changeType`, `previousPrice`, `priceChangePercent`, `priceHistory` | **Monitoring**: `new`, `price_drop` or `price_rise`, previous price, change in %, the prices seen at each run |
| `searchQuery`, `searchUrl`, `position`, `scrapedAt` | the search that found the row, its results page, rank (`1` = first; inside its minimum-order range when the search was read in ranges), ISO timestamp |

### 💡 Tips

#### How to get more results

Set **Max results** to `0`, use broad keywords and several of them. Alibaba shows at most 4,800 products per search: when you ask for more, the Actor goes beyond that by itself by reading the search again in minimum-order ranges. The rows then come from those ranges, from the very first one: they do not follow one single Alibaba order, and `position` is the rank inside the range. In **Suppliers** mode Alibaba gives at most 1,000 suppliers per keyword: use more keywords.

#### How to reduce costs

The price is per result, so the levers are **Max results**, **Max results per search**, the filters (a filtered-out result costs only the filter fee) and **Only new results** for recurring runs (you never pay twice for the same product). Tick an add-on only when you need its data: the search results already give the price tiers, MOQ, sales, supplier badges and ratings. **Max products per supplier** set to `1` spreads the same budget over more suppliers.

#### Several searches in one run

Fill **More search keywords**: the Actor runs one search per keyword (up to 100 per run). A product found by several searches is saved — and charged — once. Set **Max results per search** to give every search its own cap: without it the first searches can use up the whole **Max results** budget. You can also paste several search or category URLs into **Start URLs**: each one is a search of its own, with the same cap.

#### Monitoring: only the new products

Tick **Only new results** (`onlyNew`) and schedule the Actor. The first run returns everything; each later run reads the searches again and skips the products already delivered: they are not saved, not charged, and their page is not even opened. The memory lives in a named key-value store of your account (`alibaba-products-scraper-seen`, up to 150,000 results per key) and is only updated with results that really reached the dataset, so a failed run never hides anything. Give each schedule its own `stateKey` (two schedules sharing a key would hide each other's results), and tick `resetState` once to start over. Tick **Also products whose price changed** as well to get back a product you already have when its price moved, with `changeType` `price_drop` or `price_rise`, its previous price, the change in % and its price history (the US dollar price is followed, whatever **Currency** you pick); it is charged as a result plus the price-change fee.

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per Alibaba product (or per supplier with `"mode": "suppliers"`), 102 fields. Actor id: `nice_dev/alibaba-products-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/alibaba-products-scraper`.

Smallest input, for a cheap first call:

```json
{
    "query": "yoga mat",
    "maxItems": 10
}
```

Key output fields: `title`, `url`, `price`, `priceTiers`, `moq`, `supplierName`, `supplierCountry`, `isVerifiedSupplier`.

Cost: see the **Pricing** tab; the add-ons are off unless the input turns them on. Cap each call with `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape Alibaba?

The Actor only reads what Alibaba.com shows publicly to any anonymous visitor. It logs in to nothing and solves no captcha. The results are mostly company data. The **Supplier sales contact** add-on (off by default) gives the name and job title of a salesperson as Alibaba shows them on the product page: that is personal data, protected by GDPR — do not store it without a legitimate reason. Reviews come without the buyer's name (country only), and the company's legal representative is never delivered. You are responsible for using the data in compliance with Alibaba's Terms of Use and applicable law. This Actor is not affiliated with Alibaba.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (the residential proxy is not available). A request the site turns away is retried at once on a new proxy session, up to 10 times on top of the retries (without a proxy, after a pause of 5 seconds, doubled at each retry up to 150 seconds). Without a proxy, Alibaba turns away its product pages from one address after a few dozen of them, for hours: keep the proxy on.

#### Why are the ratings empty?

Alibaba sends the ratings, review counts and review tags in English only. With another **Language of titles**, these columns stay empty and the rating filters are refused: keep English when you need them.

#### Is the data safe to open in Excel or to show on a web page?

Titles and company names are the suppliers' own words, copied as they are. A text can begin with `-`, `+`, `=` or `@`: Excel and Google Sheets may read such a cell of a CSV file as a formula or as a number. The Actor leaves the text as it is, so that the JSON and the API give the real value: when you open a CSV, import these columns as text. On a web page, escape every field like any text written by a stranger.

#### Known limitations

- Alibaba shows no publication date on its products: there is no date filter, and **Only new results** is the way to get what appeared since the last run.
- The long description written by the supplier on the product page (text and images under the attributes) is not delivered; the attributes, variants, lead times, package and certificates are.
- The supplier's company profile page (years exporting, main markets with their share, production capacity) is not delivered: Alibaba no longer shows it to automated tools. The verification report, the store reviews and the supplier facts of the search results are.
- **Ready to ship only** filters the products, but no column says which product is ready to ship. Alibaba finds no product when it is combined with **Guaranteed delivery within** or **Alibaba Guaranteed only**: the run then keeps those and drops **Ready to ship only**, and its log says so.
- In **Suppliers** mode, Alibaba gives at most 1,000 suppliers per keyword.
- A search URL pasted into **Start URLs** keeps its keyword and the filters the input also has (price, order quantity, supplier country…); its other parameters are not used, and the run log names them: set the matching input field instead.
- **Only new results** remembers product ids; a product whose price moved comes back only with **Also products whose price changed**.
- **Also products whose price changed** remembers the prices of up to 50,000 products per memory key (25,000 when the run is given the smallest memory): past that, the products met longest ago are forgotten, and a price change on one of them is not reported.
- Two runs sharing the same `stateKey` at the same time may both return the same new product.

**A run that reaches its timeout** stops itself about 45 seconds before it: no new page is asked, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options). For scale: with **Full product page** on, a one-hour run reads about 3,000 products; from the search results alone it reads far more.

**A run the platform stops without warning** (out of memory)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the results already saved are skipped: none is delivered or charged twice, and **Max results** still counts them.
- With `onlyNew`, the memory is saved every 5 results, at most once every 2 seconds: resurrect the stopped run and the results it had saved meanwhile join the memory; leave it stopped for good, and the next run may return once more the results of its last 2 seconds (its last 4 results when they came slower).

#### Something doesn't work?

The last line of the log counts the results saved and filtered out, and the requests that failed after every retry. Those requests are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store. A run that saved nothing and had failed requests fails, and its last message gives the cause.

If Alibaba changes its pages, you are told instead of paying for blank rows. A results page that counts products but gives none the Actor can read is an error (listed in `FAILED_REQUESTS`), never a quiet "No results found". If the first 20 results read all lack their title, price, minimum order, photo or supplier (in English, also their ratings), the run saves nothing more, stops and fails, and its last message names the missing field: at most those first results are charged. A run of fewer results (a scheduled `onlyNew` run that finds a few new ones, a small **Max results**) is checked at its end, from 5 results: its results are already saved, and the run fails with the missing field instead of ending green.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which URLs failed and why.

# Actor input Schema

## `mode` (type: `string`):

**Products**: one row per product offer. **Suppliers**: one row per supplier company found for the keywords (Alibaba's supplier search, up to 1 000 suppliers per keyword).

## `startUrls` (type: `array`):

Alibaba product search URLs (`https://www.alibaba.com/trade/search?SearchText=...`, the keyword, category and supported filters are read from the URL), category pages (`https://www.alibaba.com/catalog/..._cid201273273`) or product URLs (`https://www.alibaba.com/product-detail/..._<id>.html`, read from the product page: each one is charged the product price plus **Full product page** (see Pricing), and nothing when the page is gone). Supplier shop pages (any page of a shop, e.g. `https://shengdeproduct.en.alibaba.com/productlist.html`) give that shop's products, with mode **Products**; the search-only settings (sort, price, MOQ, supplier country, verification and certification filters) do not apply to a shop. When this list is not empty, the keyword and category fields below are ignored; filters, caps and monitoring still apply. Max 1 000 URLs.

## `query` (type: `string`):

Product to search, in English, as typed on Alibaba (e.g. `yoga mat`). In suppliers mode, the product the suppliers make.

## `searchQueries` (type: `array`):

Several keywords in one run: one search per keyword. Added to **Search keyword**; products or suppliers found by several searches are saved once.

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

Alibaba product pages to read directly: URLs (`https://www.alibaba.com/product-detail/..._1601617846699.html`) or the product ID alone (`1601617846699`). Each one opens its product page: every product delivered is charged the product price plus **Full product page** (see Pricing). A page that is gone, refused or dropped by a filter gives no row and is not charged for the page. Can be combined with keywords; to read only these products, empty **Search keyword** (the form pre-fills one).

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

Alibaba category number (the number in a category page URL, or `leafCateId` of a result, e.g. `201273273` for Yoga Mats). With a keyword: the search is limited to this category. Without a keyword: the whole category is listed. Products mode only.

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

Maximum number of rows (products or suppliers) to save for the whole run, after deduplication and filters. 0 = no limit. Alibaba shows at most 4 800 products per search: when you ask for more, the Actor goes beyond that by reading the search again in minimum-order ranges (the rows then no longer follow one single Alibaba order).

## `maxItemsPerQuery` (type: `integer`):

Cap for EACH search (keyword, category or search URL), so that the first search cannot use up the whole **Max results** budget. 0 = no per-search cap.

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

Order of the Alibaba results (products mode). Alibaba offers no price sort.

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

Only products whose lowest unit price is at least this, in US dollars. Empty = no minimum.

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

Only products whose lowest unit price is at most this, in US dollars. Empty = no maximum.

## `minMoq` (type: `integer`):

Only products whose minimum order quantity (MOQ) is at least this many units. Empty = no limit.

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

Only products you can order in small quantities: minimum order quantity (MOQ) at most this many units. Empty = no limit.

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

Only suppliers based in these countries, as 2-letter codes (`CN`, `VN`, `IN`, `TR`, `US`, `DE`...). Empty = all countries (most Alibaba suppliers are in China).

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

Only products covered by Alibaba Trade Assurance (payment protection).

## `verifiedSupplierOnly` (type: `boolean`):

Only suppliers verified by an independent inspection company (Alibaba "Verified" badge).

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

Only Alibaba "Verified Pro" suppliers (the highest verification level).

## `alibabaGuaranteedOnly` (type: `boolean`):

Only "Alibaba Guaranteed" products (fixed price with shipping, on-time delivery or refund); **Ready to ship only** is then not applied (Alibaba finds no product with both). Products mode.

## `productCertifications` (type: `array`):

Only products holding these certificates, as named on Alibaba (`CE`, `RoHS`, `FCC`, `FDA`, `UL`, `GS`, `EMC`...). Products mode.

## `supplierCertifications` (type: `array`):

Only suppliers holding these management certificates (`ISO9001`, `ISO14001`, `BSCI`, `ISO45001`...). Products mode.

## `localStock` (type: `string`):

Only products in stock in a warehouse of this region (faster delivery, no import). Empty = any origin. Products mode.

## `paidSamplesOnly` (type: `boolean`):

Only products for which the supplier sells samples. Products mode.

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

Only products in stock that the supplier ships right away (Alibaba "Ready to ship"). Not applied together with **Guaranteed delivery within** or **Alibaba Guaranteed only**: Alibaba finds no product with both, so the run keeps those. Products mode.

## `maxDeliveryDays` (type: `string`):

Only products Alibaba guarantees to deliver within this many days to the **Deliver to** country; **Ready to ship only** is then not applied (Alibaba finds no product with both). Products mode.

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

Delivery country Alibaba uses for shipping fees, delivery dates, local stock and the guaranteed-delivery filter. Prices in US dollars do not change.

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

Language of the product titles and texts, translated by Alibaba (English = the supplier's own title). Keywords can stay in English. Ratings and review tags are only sent by Alibaba in English: with another language they stay empty.

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

Alibaba also shows each price converted into this currency (`localPrice...` fields, at Alibaba's rate of the day). The US dollar prices (`price`, `priceTiers`) are always delivered, whatever this setting.

## `extractDetails` (type: `boolean`):

Open each product page for all photos and the video, every attribute (material, size, origin...), the variants (SKU) with their price, lead time by quantity, package size and weight, warehouses, and the supplier block (business type, staff, on-time delivery, response time, orders and revenue of the last 6 months, store rating). Charged once per product delivered with its page, on top of the product price (see Pricing); a page that is gone or unreadable leaves the search-result row, not charged for the page. Off = search-result fields only.

## `includeSupplierReport` (type: `boolean`):

Add the verification report of suppliers checked on site in `supplierReport`: registered company name, registration and tax numbers, registered capital, year established, legal form, issuing authority, licence dates, registered address and inspection company (SGS, TÜV, Bureau Veritas...). Charged once per supplier (not per product) and only when the supplier has a report: nothing for a supplier without one (see Pricing). The report gives no business scope and no report date, and never a person's name.

## `includeSupplierContact` (type: `boolean`):

Add the name and job title of the supplier's sales contact shown on the product page (e.g. `Ms. Su`, `Sales Manager`). Alibaba never shows phone numbers or e-mails: buyers write through the `contactSupplierUrl` message page. The contact is on the product page, so this needs **Full product page** or **Product URLs or IDs**. Charged once per supplier delivered with a contact (not per product), nothing when the page prints none (see Pricing).

## `includeReviews` (type: `boolean`):

Add the buyers' reviews of the supplier's store (Alibaba files reviews under the supplier, one per product bought): stars, text, date, buyer country, product bought and the supplier's reply, newest first. Charged per review delivered, once per supplier (not per product): the other rows of the same supplier carry the same reviews at no extra charge. Nothing for a supplier with no reviews (see Pricing). No buyer name or picture.

## `maxReviewsPerSupplier` (type: `integer`):

Most reviews delivered (and charged) per supplier, newest first. A supplier with fewer gives what it has.

## `excludeKeywords` (type: `array`):

Drop the products (or suppliers) whose title (or company name) contains one of these WHOLE words (case and accents ignored).

## `minRating` (type: `number`):

Only suppliers whose Alibaba store rating (0-5) is at least this. Rows without a rating are dropped. Needs the language English (ratings are not sent in other languages).

## `minReviewCount` (type: `integer`):

Only suppliers with at least this many store reviews. Needs the language English (ratings are not sent in other languages).

## `minSupplierYears` (type: `integer`):

Only suppliers that have been on Alibaba (Gold Supplier) for at least this many years.

## `minSoldCount` (type: `integer`):

Only products with at least this many units (or orders) sold, as shown on the search card. Products without a sales figure are dropped. Products mode.

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

Only suppliers that are factories (not trading companies), as Alibaba marks them. Works in both modes, with no product page to open.

## `includeKeywords` (type: `array`):

Keep only the products (or suppliers) whose title (or company name) contains at least one of these WHOLE words (case and accents ignored). Empty = no requirement.

## `excludeIds` (type: `array`):

Product IDs (products mode) or company IDs (suppliers mode) you already have: they are skipped before anything is read, not saved and not charged, and do not count in Max results. Max 100 000.

## `minProductRating` (type: `number`):

Only products whose own rating (0-5, shown on the search card) is at least this. Products without a rating are dropped. Products mode. Needs the language English (ratings are not sent in other languages).

## `minReorderRatePercent` (type: `number`):

Only suppliers whose buyers order again at least this often (Alibaba's reorder rate, e.g. 25). Suppliers mode; suppliers shown with "<15%" count as 0.

## `maxProductsPerSupplier` (type: `integer`):

Keep at most this many products of the same supplier (1 = one product per supplier: more different suppliers in the same number of results). 0 = no limit. Products mode.

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

Drop the paid placements Alibaba mixes into the results (they are kept and flagged `isSponsored` otherwise).

## `onlyNew` (type: `boolean`):

Skip the products (or suppliers) that a previous run (same **Memory key**) already delivered: they are not saved and not charged, and their page is not even opened. First run = everything is new.

## `stateKey` (type: `string`):

Name of the memory used by **Only new results**. Give each schedule / task its own key (e.g. `yoga-mats-vietnam`) so that they do not share their memory. Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every result again. Untick it afterwards.

## `includePriceChanges` (type: `boolean`):

Also return a product you already received when its price went up or down since your last run, with the previous price, the change in % and the price history. The price followed is the lowest US dollar price of the search card, whatever Currency you pick. Needs **Only new results** and the same **Memory key** every run. You pay a price-change fee for each product that comes back for its price, on top of the price of the row. Products mode.

## `minPriceChangePercent` (type: `number`):

A product comes back only if its price moved by at least this many % since the last time you received it. 0 = every change.

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

Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.

## `maxConcurrency` (type: `integer`):

Maximum number of requests processed in parallel.

## `maxRequestsPerMinute` (type: `integer`):

Most requests to the site in any 60 seconds, all of them counted: results pages, product pages and supplier pages. A budget, not an even pace: up to this many can leave at once when the minute starts (spread them with the minimum delay below). Lower it if the log shows many refused requests.

## `minRequestIntervalMs` (type: `integer`):

Smallest gap between two requests, in milliseconds. Unlike the per-minute rate, this spreads the requests evenly instead of letting them go out in a burst. 0 = no gap.

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

Retries per request before it is marked as failed. Behind a proxy, a request the site turns away is also retried on a new proxy session up to 10 times without using up these retries.

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

Include debug messages in the run log.

## Actor input object example

```json
{
  "mode": "products",
  "startUrls": [],
  "query": "yoga mat",
  "searchQueries": [],
  "productUrls": [],
  "maxItems": 100,
  "maxItemsPerQuery": 0,
  "sortBy": "relevance",
  "supplierCountries": [],
  "tradeAssuranceOnly": false,
  "verifiedSupplierOnly": false,
  "verifiedProOnly": false,
  "alibabaGuaranteedOnly": false,
  "productCertifications": [],
  "supplierCertifications": [],
  "localStock": "",
  "paidSamplesOnly": false,
  "readyToShipOnly": false,
  "maxDeliveryDays": "",
  "shipToCountry": "US",
  "language": "en",
  "currency": "USD",
  "extractDetails": false,
  "includeSupplierReport": false,
  "includeSupplierContact": false,
  "includeReviews": false,
  "maxReviewsPerSupplier": 20,
  "excludeKeywords": [],
  "manufacturersOnly": false,
  "includeKeywords": [],
  "excludeIds": [],
  "maxProductsPerSupplier": 0,
  "excludeAds": false,
  "onlyNew": false,
  "stateKey": "default",
  "resetState": false,
  "includePriceChanges": false,
  "minPriceChangePercent": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 8,
  "maxRequestsPerMinute": 120,
  "minRequestIntervalMs": 0,
  "maxRequestRetries": 5,
  "debugLog": false
}
```

# Actor output Schema

## `results` (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 = {
    "query": "yoga mat",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/alibaba-products-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 = {
    "query": "yoga mat",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/alibaba-products-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 '{
  "query": "yoga mat",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/alibaba-products-scraper --silent --output-dataset

```

## MCP server setup

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