# Alibaba Scraper - Products, Prices, MOQ & Suppliers ($0.50/1K) (`ragnum/alibaba-scraper`) Actor

Scrape Alibaba.com product search results by keyword: titles, numeric price ranges, MOQ, supplier name, country, years on Alibaba, verification and ratings. $0.50 per 1,000 products, platform usage included, failed pages and duplicates are free.

- **URL**: https://apify.com/ragnum/alibaba-scraper.md
- **Developed by:** [Ragnum](https://apify.com/ragnum) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 product results

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 does Alibaba Scraper do?

**Alibaba Scraper** turns **[Alibaba.com](https://www.alibaba.com) search results into clean, typed product rows**. Enter one or more keywords; for each keyword you get the products Alibaba lists in its search results, one row per product. Use it as an **Alibaba product search API alternative**.

It's built for **fast, cheap sourcing shortlists and price research**. Each row gives you the search-result data you need to compare offers:

- **product title**, product link and image URL
- **price range** as numbers (`priceMin` / `priceMax`), plus the price text as shown
- **minimum order quantity (MOQ)** as a number, plus its unit
- **supplier name** and **country**, plus supplier ID and storefront URL
- **years on Alibaba** (Gold Supplier years shown on the listing)
- **verification**: the Verified badge and the verification agency (SGS, TÜV, Intertek…)
- **rating** and review count, plus a flag for sponsored listings

It reads Alibaba's public search results without a login. That makes it **fast and cheap: $0.50 per 1,000 products**.

### Why scrape Alibaba?

- 🔎 **Product sourcing.** Shortlist suppliers for a product. Compare price ranges and MOQs across hundreds of listings in minutes.
- 📈 **Market and price research.** See how many suppliers sell a product, where they are based and at what price band.
- 🏭 **Supplier discovery.** Find verified, long-standing suppliers per keyword.
- 🤖 **AI agents and automations.** Get typed JSON that agents, spreadsheets and databases can use directly.

Running on the Apify platform also gives you:

- scheduling and monitoring
- API access
- integrations (Make, Zapier, Google Sheets, webhooks…)
- managed proxies, with nothing to set up

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

**$0.50 per 1,000 products ($0.0005 per product).** Platform usage, including proxies, is **included in the price**.

You only pay for product rows that end up in your dataset:

- **Failed or blocked pages are free.** Alibaba often answers with a verification page, and every retry is on us.
- **Empty pages are free.**
- **Duplicates are free.** The same product showing up on several pages or for several keywords is delivered and charged once per run.

| Products | Price |
|---|---|
| 100 | $0.05 |
| 1,000 | $0.50 |
| 10,000 | $5.00 |

You control spend with **Max products per keyword**. You can also set a **maximum cost per run** in the run options: the scraper stops cleanly when it reaches that limit and never charges beyond it.

### How to scrape Alibaba product search results

1. Click **Try for free**.
2. Enter one or more **search keywords**, for example `yoga mat` or `led strip`.
3. Set **Max products per keyword** (default 20) and **Max results pages per keyword** (default 2). One results page has about 48 products.
4. Click **Start** and wait for the run to finish. 100 products per keyword usually take under a minute.
5. Download your data as **JSON, CSV, Excel or HTML**, or read it through the **API**.

### Input

See the **Input** tab for every option. Example:

```json
{
    "keywords": ["yoga mat", "led strip"],
    "maxItemsPerKeyword": 100,
    "maxPagesPerKeyword": 5
}
```

| Field | Default | What it does |
|---|---|---|
| `keywords` | `["yoga mat"]` if no keywords or URLs are given | One Alibaba search per keyword. |
| `startUrls` | — | Optional search listing URLs such as `https://www.alibaba.com/products/yoga_mat.html` or `..._3.html` to start at page 3. Use this instead of `keywords` to start from a specific results page. |
| `maxItemsPerKeyword` | 20 | Stop a keyword after this many unique products. |
| `maxPagesPerKeyword` | 2 | Upper limit of results pages per keyword. Raise it together with `maxItemsPerKeyword`: about 48 products per page. |
| `maxRetriesPerPage` | 10 | How many times a blocked page is retried. Retries are free. |
| `proxyConfiguration` | Apify proxy, US | Managed for you and included in the price. Keeps prices in US dollars. |

#### How many pages are read, and what happens when a page fails

For each keyword, the scraper reads results pages in order (page 1, 2, 3…). It keeps going until the **first** of these is reached:

1. **Max products per keyword**: enough unique products have been delivered.
2. **Max results pages per keyword**: this many pages have been tried. Failed pages count, because they were tried.
3. **The last results page** Alibaba reports for that keyword.

A page that fails **doesn't stop the keyword**. This covers a page still blocked after all retries, and a page that loads with no products. The scraper logs the failed page in `RUN_SUMMARY`, doesn't charge for it, and moves on to the next page.

The page limit is a hard cap, though: the scraper doesn't read extra pages to make up for failed ones. With `maxPagesPerKeyword: 3`, one failed page and about 48 products per page, a keyword returns about 96 products instead of about 144. If you need a certain number of products, set **Max results pages per keyword** a page or two above *products ÷ 48*. You only pay for products delivered, and **Max products per keyword** still stops the run at your target.

### Output

Each product is one dataset row. You can download the dataset as JSON, CSV, Excel, XML or HTML.

| Field | Type | Description | Example |
|---|---|---|---|
| `productId` | string | Alibaba product ID | `1601972382936` |
| `title` | string | Product title as shown in search results | TPE Cushioned Arched Yoga Mat… |
| `url` | string | Product page URL | `https://www.alibaba.com/product-detail/…` |
| `imageUrl` | string | Main product image URL | `https://s.alicdn.com/…png` |
| `priceMin` / `priceMax` | number | Lowest / highest price on the search card, in `currency`. Equal for a single price | 2.86 / 3.29 |
| `priceText` | string | Price exactly as displayed | `$2.86-3.29` |
| `currency` | string | ISO code detected from the page. Prices are never converted | `USD` |
| `currencyMismatch` | boolean | `true` when the row is not in USD | `false` |
| `moqValue` / `moqUnit` | integer / string | Minimum order quantity and its unit | 120 / `pieces` |
| `supplierName` / `supplierId` | string | Supplier company name and Alibaba company ID | Yiwu Shengxiang Sports Goods Co., Ltd. / `292192374` |
| `supplierUrl` | string | Supplier storefront URL | `https://ywshengxiang.en.alibaba.com/` |
| `supplierCountry` | string | Supplier country (ISO 3166-1 alpha-2) | `CN` |
| `supplierYears` | integer | Years the supplier has been a Gold Supplier on Alibaba, as shown on the card | 1 |
| `isVerified` / `verifiedBy` | boolean / string | Verified badge and the verification agency | `true` / `Intertek` |
| `isSponsored` | boolean | `true` for sponsored (ad) listings | `false` |
| `rating` / `reviewCount` | number / integer | Review score out of 5 and number of reviews. `rating` is `null` when there are no reviews | 4.4 / 7 |
| `keyword` / `page` / `position` | string / integer / integer | Search that produced the row, results page and 1-based position on that page | `yoga mat` / 1 / 2 |
| `scrapedAt` | string | ISO timestamp of the fetch | `2026-11-07T03:00:00.000Z` |

```json
{
    "productId": "1601972382936",
    "title": "TPE Cushioned Arched Yoga Mat with Custom Embossed Logo Waterproof for Restorative Yoga and Pop up Classes",
    "url": "https://www.alibaba.com/product-detail/TPE-Cushioned-Arched-Yoga-Mat-with_1601972382936.html",
    "imageUrl": "https://s.alicdn.com/@sc04/kf/H76d1606ed6dd4fcab5ead76ad84df231J.png_300x300.png",
    "priceMin": 2.86,
    "priceMax": 3.29,
    "priceText": "$2.86-3.29",
    "currency": "USD",
    "currencyMismatch": false,
    "moqValue": 120,
    "moqUnit": "pieces",
    "supplierName": "Yiwu Shengxiang Sports Goods Co., Ltd.",
    "supplierId": "292192374",
    "supplierUrl": "https://ywshengxiang.en.alibaba.com/",
    "supplierCountry": "CN",
    "supplierYears": 1,
    "isVerified": true,
    "verifiedBy": "Intertek",
    "isSponsored": false,
    "rating": 4.4,
    "reviewCount": 7,
    "keyword": "yoga mat",
    "page": 1,
    "position": 2,
    "scrapedAt": "2026-11-07T03:00:00.000Z"
}
```

#### Run summary (`RUN_SUMMARY`)

Each run also saves a **`RUN_SUMMARY`** record in its key-value store (Storage → Key-value store, or the **Run summary** link in the Output tab). Use it to see how complete a run was:

- **Success rate.** Pages attempted, succeeded and failed per keyword and in total, plus attempts per page and the share of blocked attempts. A keyword can come back short when one of its pages stayed blocked through all retries. It shows up here, and you aren't charged for it.
- **Rows.** Products pushed, duplicates skipped, and the currency of every page.
- **Field fill rates.** The share of rows that have each field.
- **Warnings.**
  - `STRUCTURE_CHANGE_SUSPECTED` means a page loaded but had no product data, or key fields went missing. That usually means Alibaba changed its page layout. Please open an issue if you see it.
  - `CHARGE_LIMIT_REACHED` means the run stopped at your maximum cost per run.
  - `CURRENCY_MISMATCH` means a page stayed in a non-USD currency after retries, and its rows are flagged.

### Use with AI agents (Apify MCP server)

AI agents can call this scraper as a tool through the [Apify MCP server](https://docs.apify.com/mcp). Add this server URL to Claude, Cursor, VS Code or any other MCP client:

```
https://mcp.apify.com?tools=ragnum/alibaba-scraper
```

The agent can then ask for things like *"Find 50 yoga mat suppliers on Alibaba with MOQ under 200 pieces and sort by price"*. It gets typed JSON back and pays the same $0.50 per 1,000 products.

### Tips

- **Prices are labelled, never converted.** Alibaba localises prices by visitor location; the scraper requests US prices. If a page still comes back in another currency, it retries a couple of times. After that it keeps the rows with the detected `currency` and `currencyMismatch: true`. Filter on `currencyMismatch` if you need USD only.
- **Search ranking is not stable.** Alibaba reshuffles results on every request, so the same keyword can return a partly different set of products a minute later. Products are de-duplicated by `productId` within a run.
- **Blocked pages.** Alibaba sometimes refuses automated requests. The scraper doesn't try to get around this; it retries the page later, up to `maxRetriesPerPage` times, at no cost to you. Pages that never load are listed in `RUN_SUMMARY`.

### FAQ, disclaimers and support

#### Is it legal to scrape Alibaba?

This Actor only reads publicly visible search results, without logging in, and collects company-level data only. It collects no personal contact data.

**You are responsible for making sure your use of the data complies with Alibaba.com's terms of use, its robots.txt, and the laws that apply to you**, including data-protection and intellectual-property law. If you are unsure whether your use case is allowed, consult a lawyer.

Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

#### Why did I get fewer products than I asked for?

Usually one of three reasons:

- The keyword has fewer results than requested.
- A page stayed blocked through all retries. The scraper moves on to the next page, but a failed page still counts toward **Max results pages per keyword**.
- Duplicates were removed.

`RUN_SUMMARY` shows which one. Missing products are never charged. To get closer to your target, raise **Max results pages per keyword** (see "How many pages are read" above).

#### Feedback

Found a bug or need a field? Open an issue in the **Issues** tab. For programmatic access, see the **API** tab.

# Actor input Schema

## `keywords` (type: `array`):

What to search for on Alibaba.com, one keyword per line, in English (for example "yoga mat", "led strip", "bluetooth earbuds"). Each keyword runs its own search. If you leave this and the listing URLs below empty, the scraper searches "yoga mat".

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

Alternative to keywords: Alibaba search listing URLs of the form https://www.alibaba.com/products/yoga_mat.html, or https://www.alibaba.com/products/yoga_mat_3.html to start at page 3. Product detail pages, supplier pages and /trade/search URLs are not supported and make the run fail with a clear message before any request is made.

## `maxItemsPerKeyword` (type: `integer`):

Stop a keyword after this many unique products (default 20). One results page has about 48 products (a few duplicates are removed), so 100 needs about 3 pages. This is the main control of how much a run costs: 100 products = $0.05.

## `maxPagesPerKeyword` (type: `integer`):

Upper limit of search results pages tried per keyword (default 2) (or per listing URL, counting from its page). The run stops a keyword at whichever comes first: this limit, Max products per keyword, or the last results page. A page that stays blocked after all retries does not stop the keyword (the next page is still fetched), but it counts toward this limit, so set it a page or two higher if you need a specific number of products.

## `maxRetriesPerPage` (type: `integer`):

Alibaba sometimes refuses automated requests. The scraper never tries to get around this: a refused page is retried later, up to this many times. Retries are free for you. Lower values finish faster but can return fewer products.

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

Defaults to Apify proxy in the United States, included in the price, which keeps prices in US dollars. Other proxies or countries can return prices in other currencies (rows are then flagged with currencyMismatch) and block more often.

## Actor input object example

```json
{
  "keywords": [
    "yoga mat"
  ],
  "maxItemsPerKeyword": 20,
  "maxPagesPerKeyword": 2,
  "maxRetriesPerPage": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

No description

## `runSummary` (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 = {
    "keywords": [
        "yoga mat"
    ],
    "maxItemsPerKeyword": 20,
    "maxPagesPerKeyword": 2,
    "maxRetriesPerPage": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ragnum/alibaba-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 = {
    "keywords": ["yoga mat"],
    "maxItemsPerKeyword": 20,
    "maxPagesPerKeyword": 2,
    "maxRetriesPerPage": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ragnum/alibaba-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 '{
  "keywords": [
    "yoga mat"
  ],
  "maxItemsPerKeyword": 20,
  "maxPagesPerKeyword": 2,
  "maxRetriesPerPage": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call ragnum/alibaba-scraper --silent --output-dataset

```

## MCP server setup

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