# Alibaba Scraper (`khnaami/actor-alibaba-scraper`) Actor

Alibaba Scraper: Extract B2B wholesale products, tiered bulk price ranges, Minimum Order Quantities (MOQ), Verified Supplier credentials, Trade Assurance badges, lead times, and specifications. Perfect for global sourcing intelligence, supply chain procurement, and competitor benchmarking.

- **URL**: https://apify.com/khnaami/actor-alibaba-scraper.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 91.7% runs succeeded, 1 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/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🏭 Alibaba B2B Wholesale Scraper (MOQ, Bulk Price Tiers & Suppliers)

Extract live Alibaba wholesale products, tiered volume pricing, Minimum Order Quantity (MOQ), Verified Supplier credentials, Trade Assurance status, and manufacturing specs at scale.

> **Apify Store Short Description (297 chars):**\
> `Scrape Alibaba B2B products, wholesale bulk price tiers, MOQ (Minimum Order Quantity), Verified Supplier credentials, Trade Assurance, and factory specs at scale. Supports direct product URLs and keyword searches with proxy rotation for Amazon FBA sourcing, global imports, and trade intelligence.`

***

### 🌟 Key Features

- 💰 **Tiered Volume Pricing**: Captures bulk price ladders across all order quantities (e.g. 1-99 pcs, 100-499 pcs, 500+ pcs).
- 📦 **MOQ Intelligence**: Extracts Minimum Order Quantity in formatted text ("100 Sets") and clean numeric counts.
- 🏢 **Supplier Verification Badges**: Identifies Verified Suppliers, Verified Pro badges, and operating years on Alibaba.
- 🛡️ **Trade Assurance Tracking**: Filters and marks suppliers eligible for Alibaba Trade Assurance buyer protection.
- ⏱️ **Production Lead Times**: Extracts estimated dispatch schedules based on order volume.
- 🎨 **OEM / ODM Customization**: Captures customization capabilities (Customized Logo, Packaging, Graphic Customization).
- 🔍 **Dual Input Mode**: Input direct Alibaba product detail URLs or search keywords across product categories.
- ⚡ **Anti-Bot & Punish Page Bypass**: High-performance HTTP client backed by residential proxies and headless browser fallback.

***

### 📥 Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `productUrls` | Array | `[]` | List of direct Alibaba product detail URLs. |
| `searchKeywords` | Array | `["sunglasses", "mens pants", "baseball cap"]` | Keywords to search on Alibaba (falls back to `["sunglasses"]` if both `productUrls` and `searchKeywords` are empty). |
| `verifiedSupplierOnly` | Boolean | `false` | Filter search results to only verified manufacturing suppliers. |
| `tradeAssuranceOnly` | Boolean | `false` | Filter search results to products with Trade Assurance protection. |
| `maxProducts` | Integer | `40` | Maximum products to extract per search keyword. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Apify Proxy settings to bypass Alibaba IP blocks. |

***

### 📤 Output Data Format

```json
{
  "productId": "1600123456789",
  "title": "Eco-friendly Organic Bamboo Kitchen Cutting Board with Juice Groove",
  "priceRange": "$3.20 - $5.50 / Piece",
  "minPrice": 3.20,
  "maxPrice": 5.50,
  "currency": "USD",
  "moq": "100 Pieces",
  "moqNumber": 100,
  "bulkPricing": [
    { "quantity": "100 - 499 Pieces", "price": 5.50 },
    { "quantity": "500 - 1999 Pieces", "price": 4.20 },
    { "quantity": ">= 2000 Pieces", "price": 3.20 }
  ],
  "supplierName": "Fujian Bamboo Crafts Manufacturing Co., Ltd.",
  "supplierYears": "8 yrs",
  "supplierCountry": "CN",
  "isVerified": true,
  "hasTradeAssurance": true,
  "reviewScore": 4.9,
  "reviewsCount": 218,
  "leadTime": "15 days for 100-500 pcs",
  "customization": [
    "Customized logo",
    "Customized packaging",
    "Graphic customization"
  ],
  "thumbnail": "https://s.alicdn.com/@sc04/kf/H123456789.jpg",
  "images": [
    "https://s.alicdn.com/@sc04/kf/H123456789.jpg",
    "https://s.alicdn.com/@sc04/kf/H987654321.jpg"
  ],
  "url": "https://www.alibaba.com/product-detail/Eco-friendly-Organic-Bamboo-Kitchen-Cutting-Board_1600123456789.html",
  "scrapedAt": "2026-11-10T11:55:00.000Z"
}
```

***

### 💡 Practical Commercial Use Cases

1. **Amazon FBA & Private Label Sourcing**: Discover reliable factories with low MOQs and compare bulk production costs against Amazon retail prices.
2. **Wholesale Margin Calculation**: Map exact volume discount tiers to calculate profit margins at different order quantities.
3. **Supplier Due Diligence**: Filter only Verified Suppliers with high review scores and Trade Assurance coverage to minimize import risks.
4. **B2B Market Research**: Track manufacturing trends, OEM capabilities, and raw material pricing from primary Asian factories.

***

### ⚖️ License

Apache-2.0

# Actor input Schema

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

Full https://www.alibaba.com/product-detail/... URLs only (leave empty to search by keywords; plain words belong in Search Keywords below).

## `searchKeywords` (type: `array`):

Keywords to search on Alibaba for wholesale products and factories (e.g. 'sunglasses', 'mens pants', 'baseball cap').

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

Filter search results to show only inspected and Verified Suppliers.

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

Filter search results to show only products covered by Alibaba Trade Assurance.

## `maxProducts` (type: `integer`):

Maximum number of product records to extract per keyword.

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

Alibaba enforces strict WAF/CAPTCHA (punish/baxia) on datacenter IPs. Select Apify RESIDENTIAL Proxy group for reliable production runs.

## Actor input object example

```json
{
  "productUrls": [],
  "searchKeywords": [
    "sunglasses",
    "mens pants",
    "baseball cap"
  ],
  "verifiedSupplierOnly": false,
  "tradeAssuranceOnly": false,
  "maxProducts": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Scraped records stored in the default Apify dataset.

## `overview` (type: `string`):

High-level summary report and execution metrics stored in Key-Value store.

# 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 = {
    "productUrls": [],
    "searchKeywords": [
        "sunglasses",
        "mens pants",
        "baseball cap"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/actor-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 = {
    "productUrls": [],
    "searchKeywords": [
        "sunglasses",
        "mens pants",
        "baseball cap",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/actor-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 '{
  "productUrls": [],
  "searchKeywords": [
    "sunglasses",
    "mens pants",
    "baseball cap"
  ]
}' |
apify call khnaami/actor-alibaba-scraper --silent --output-dataset

```

## MCP server setup

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