# 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:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Alibaba Scraper - Products, Prices, MOQ & Suppliers",
        "description": "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.",
        "version": "0.1",
        "x-build-id": "oAPMS9yB2w1PlZxcS"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/conscious_gecko~alibaba-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-conscious_gecko-alibaba-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/conscious_gecko~alibaba-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-conscious_gecko-alibaba-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/conscious_gecko~alibaba-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-conscious_gecko-alibaba-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchTerms"
                ],
                "properties": {
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Products to search Alibaba for (e.g. 'phone case', 'led strip', 'yoga mat').",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPagesPerTerm": {
                        "title": "Max pages per term",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Result pages to scrape per term (Alibaba shows ~48 products per page).",
                        "default": 3
                    },
                    "maxProductsPerTerm": {
                        "title": "Max products per term (optional)",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Optional cap on kept products per term. Scraping stops once reached (across pages). Leave empty to use the page limit fully."
                    },
                    "minPrice": {
                        "title": "Min price (USD)",
                        "type": "integer",
                        "description": "Only keep products at or above this unit price. Also applied as an Alibaba server-side filter for efficiency."
                    },
                    "maxPrice": {
                        "title": "Max price (USD)",
                        "type": "integer",
                        "description": "Only keep products at or below this unit price."
                    },
                    "minMoq": {
                        "title": "Min order quantity",
                        "type": "integer",
                        "description": "Only keep products whose minimum order quantity is at least this."
                    },
                    "maxMoq": {
                        "title": "Max order quantity",
                        "type": "integer",
                        "description": "Only keep products whose minimum order quantity is at most this (find low-MOQ suppliers)."
                    },
                    "minReviewScore": {
                        "title": "Min supplier rating",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Only keep products whose supplier rating is at least this (1-5)."
                    },
                    "minSupplierYears": {
                        "title": "Min gold-supplier years",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Only keep established suppliers with at least this many gold-supplier years (a verified-supplier proxy)."
                    },
                    "maxRetriesPerTerm": {
                        "title": "Max IP-rotation retries per term",
                        "minimum": 1,
                        "maximum": 25,
                        "type": "integer",
                        "description": "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.",
                        "default": 6
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "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).",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
