# Alibaba Scraper - Products, Prices, MOQ & Suppliers (`conscious_gecko/alibaba-search-scraper`) Actor

Scrape Alibaba.com search results by keyword: product title, price, MOQ, supplier (company, country, years), rating, reviews, image gallery, and URLs. Reliable through Alibaba's Aliyun anti-bot via an undetected browser on rotating residential IPs. Built for wholesale sourcing and market research.

- **URL**: https://apify.com/conscious\_gecko/alibaba-search-scraper.md
- **Developed by:** [Naveen V](https://apify.com/conscious_gecko) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

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

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

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

# README

## 🏭 Alibaba Scraper — Products, Prices, MOQ & Verified Suppliers

Scrape [Alibaba.com](https://www.alibaba.com) search results by keyword and get clean,
structured wholesale data — **product title, price (and price breaks), MOQ, supplier, rating,
reviews, image gallery, and links** — reliably, even through Alibaba's Aliyun anti-bot that
blocks most scrapers.

> Built for **sourcing agents, dropshippers, Amazon/Walmart wholesale resellers, private-label
> brands, procurement teams, and price/market researchers.**

### ⚡ Why this one is reliable (and most aren't)

Alibaba gates its search behind an anti-bot captcha that makes most scrapers fail a large
share of runs (or give up and stay free). This actor clears that challenge reliably on
rotating **residential IPs**, so you get a full page of results — **~48 products per page** —
on every request.

### 📦 What you get for every product

- 🏷️ **title**, **price** (incl. tiered price breaks like `$1.99~2.38`)
- 📊 **moq** (minimum order) + parsed **moqQuantity**
- 🏢 **companyName**, **companyId**, **countryCode**, **goldSupplierYears** (supplier tenure)
- ⭐ **reviewScore** (rating) + **reviewCount**
- 🛡️ **certifications** / supplier badges
- 🖼️ **mainImage** + full **images** gallery
- 🔗 **productUrl** + **supplierUrl**

### ▶️ Example input

```json
{
  "searchTerms": ["phone case", "led strip light"],
  "maxPagesPerTerm": 3,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

### 📤 Example output

```json
{
  "searchTerm": "phone case",
  "productId": "1601822685583",
  "title": "1500D Aramid Fiber Magnetic Phone Case Ultra Thin for iPhone 17 16 Pro Max",
  "price": "$12.40-13",
  "moq": "Min. order: 500 pieces",
  "moqQuantity": 500,
  "companyName": "Guangzhou Ruite Electronic Technology Co., Ltd.",
  "companyId": "243508786",
  "countryCode": "CN",
  "goldSupplierYears": "8 yrs",
  "reviewScore": 4.6,
  "reviewCount": 107,
  "certifications": [],
  "mainImage": "https://s.alicdn.com/@sc04/kf/H3cc3919a42d2442da1bf53d366f0b4e6T.png_300x300.png",
  "images": ["https://s.alicdn.com/@sc04/kf/...jpg", "..."],
  "productUrl": "https://www.alibaba.com/product-detail/..._1601822685583.html",
  "supplierUrl": "https://ruitetec.en.alibaba.com/"
}
```

### ⚙️ Input reference

| Field | Description |
| --- | --- |
| `searchTerms` | Products to search (e.g. `["phone case", "led strip"]`). One search per term. |
| `maxPagesPerTerm` | Result pages per term (~48 products each). |
| `maxProductsPerTerm` | Optional cap on kept products per term (stops early once reached). |
| `minPrice` / `maxPrice` | Keep only products in this USD unit-price range (also applied server-side). |
| `minMoq` / `maxMoq` | Filter by minimum order quantity — e.g. `maxMoq: 100` finds low-MOQ suppliers. |
| `minReviewScore` | Keep only suppliers rated ≥ this (1–5). |
| `minSupplierYears` | Keep only established suppliers with ≥ this many gold-supplier years. |
| `maxRetriesPerTerm` | Fresh residential IPs to try before giving up on a term. |
| `proxyConfiguration` | Apify Proxy. **RESIDENTIAL is required** — Aliyun blocks datacenter IPs. |

### ❓ FAQ

**Do I need an Alibaba account?** No — it scrapes public search pages.

**Why is residential proxy required?** Alibaba's Aliyun anti-bot blocks datacenter IPs
outright. Residential IPs (rotated per run) are what make it reliable; the actor enforces
this by default.

**How many products per search?** ~48 per page. Set `maxPagesPerTerm` higher for more —
Alibaba reports thousands of results per popular query.

**Does it get supplier contact details?** It returns the supplier company, country, tenure,
and profile URL. It does not harvest private contact emails/phones.

# Actor input Schema

## `searchTerms` (type: `array`):

Products to search Alibaba for (e.g. 'phone case', 'led strip', 'yoga mat').

## `maxPagesPerTerm` (type: `integer`):

Result pages to scrape per term (Alibaba shows ~48 products per page).

## `maxProductsPerTerm` (type: `integer`):

Optional cap on kept products per term. Scraping stops once reached (across pages). Leave empty to use the page limit fully.

## `minPrice` (type: `integer`):

Only keep products at or above this unit price. Also applied as an Alibaba server-side filter for efficiency.

## `maxPrice` (type: `integer`):

Only keep products at or below this unit price.

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

Only keep products whose minimum order quantity is at least this.

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

Only keep products whose minimum order quantity is at most this (find low-MOQ suppliers).

## `minReviewScore` (type: `integer`):

Only keep products whose supplier rating is at least this (1-5).

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

Only keep established suppliers with at least this many gold-supplier years (a verified-supplier proxy).

## `maxRetriesPerTerm` (type: `integer`):

How many fresh residential IPs to try for a term before giving up. The slider is solved in-browser; retries cover hard-blocked (punish) IPs.

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

Apify Proxy. RESIDENTIAL is required — Alibaba's Aliyun anti-bot blocks datacenter IPs, and rotating a fresh residential IP on each challenge is the core of the reliability (this is what the cheaper Alibaba scrapers get wrong).

## Actor input object example

```json
{
  "searchTerms": [
    "phone case"
  ],
  "maxPagesPerTerm": 3,
  "maxRetriesPerTerm": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `products` (type: `string`):

One row per Alibaba product — title, price, MOQ, supplier, rating, images, URLs.

# 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 = {
    "searchTerms": [
        "phone case"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("conscious_gecko/alibaba-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 = {
    "searchTerms": ["phone case"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("conscious_gecko/alibaba-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "phone case"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call conscious_gecko/alibaba-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=conscious_gecko/alibaba-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/cIoXC6tcGcj2xhjzj/builds/oAPMS9yB2w1PlZxcS/openapi.json
