# Alibaba Product Scraper (`xtracto/alibaba-product-scraper`) Actor

Extract complete product detail from Alibaba.com product pages: ladder pricing, MOQ, full SKU matrix, supplier profile, inventory, reviews.

- **URL**: https://apify.com/xtracto/alibaba-product-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 52 total users, 18 monthly users, 90.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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 Product Scraper

Convert any Alibaba.com product URL into a complete structured record — ladder pricing, SKU variants, per-SKU inventory, full supplier profile, and media gallery.

### Why use this actor

- No Alibaba account or login required — all data is from publicly visible product pages.
- Captures every quantity-price tier so you can model landed cost at any order size.
- Full SKU matrix (color, size, configuration) with per-option images and availability flags.
- Rich supplier profile in every record: business type, registered country, gold-supplier years, on-time delivery rate, response time, and Trade Assurance amount.
- Automatic retries ensure every URL in your list is reliably processed.
- Export results to JSON, CSV, or Excel directly from the Apify Console.

### How it works

1. You provide a list of Alibaba product detail URLs (e.g. `https://www.alibaba.com/product-detail/..._1601685362945.html`).
2. The actor opens each product page and extracts the complete listing: title, all price tiers, MOQ, SKU options, inventory levels, images, and the full supplier profile.
3. Product properties and specifications listed by the supplier are captured alongside the pricing and media data.
4. Each product is saved as a single structured record in your dataset as soon as it is processed.
5. Download the dataset as JSON, CSV, or Excel when the run completes.

You don't need to manage any browsers or scrapers.

### Input

```json
{
    "productUrls": [
        { "url": "https://www.alibaba.com/product-detail/WATA-In-Ear-Waterproof-Sport-Earbud_1601685362945.html" }
    ],
    "maxConcurrency": 3,
    "maxRequestRetries": 6,
    "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Description |
| --- | --- | --- |
| `productUrls` | URL\[] | Alibaba product detail page URLs to scrape. |
| `maxConcurrency` | integer | Number of product pages processed in parallel. Default: 3. |
| `maxRequestRetries` | integer | How many times a failed page request is retried before skipping. Default: 6. |
| `proxyConfiguration` | object | Apify Proxy settings or a custom proxy list. RESIDENTIAL group recommended. |

### Output

```json
{
    "productId": "1601685362945",
    "title": "WATA CEB206 ANC TWS In-Ear Waterproof Sport Earbud",
    "categoryId": "100003070",
    "priceFormatted": "$12.50 - $18.00",
    "currency": "USD",
    "currencyRate": 1.0,
    "minOrderQuantity": 2,
    "ladderPrices": [
        { "minQuantity": 2, "maxQuantity": 9, "price": 18.0, "priceFormatted": "$18.00" },
        { "minQuantity": 10, "maxQuantity": 49, "price": 15.5, "priceFormatted": "$15.50" },
        { "minQuantity": 50, "price": 12.5, "priceFormatted": "$12.50" }
    ],
    "variants": [
        { "name": "Color", "options": ["Black", "White"] }
    ],
    "skuInventory": {
        "Black": { "stock": 500, "dispatchFrom": "CN" },
        "White": { "stock": 320, "dispatchFrom": "CN" }
    },
    "companyId": "250873711",
    "companyName": "WATA Electronics Co., Ltd",
    "companyRegisterCountry": "CN",
    "images": [
        "https://s.alicdn.com/@sc04/kf/Ha1b2c3d4.jpg",
        "https://s.alicdn.com/@sc04/kf/He5f6g7h8.jpg",
        "... 4 more"
    ],
    "scrapedAt": "2026-05-30T04:37:55Z"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `productId` | string | Alibaba's unique product identifier. |
| `title` | string | Full product listing title. |
| `categoryId` | string | Alibaba category the product belongs to. |
| `priceFormatted` | string | Price range across all quantity tiers as shown on the listing. |
| `currency` | string | Currency code for all prices (e.g. `"USD"`). |
| `currencyRate` | number | Exchange rate applied by Alibaba at scrape time. |
| `minOrderQuantity` | integer | Minimum number of units per order. |
| `ladderPrices` | object\[] | Array of quantity-price tiers, each with `minQuantity`, `maxQuantity`, `price`, and `priceFormatted`. |
| `variants` | object\[] | SKU option groups (e.g. Color, Size) with all available option values. |
| `skuInventory` | object | Per-SKU stock count and dispatch origin, keyed by option value. |
| `companyId` | string | Supplier's Alibaba company ID. |
| `companyName` | string | Registered name of the supplier. |
| `companyRegisterCountry` | string | ISO country code of the supplier's registered country. |
| `images` | string\[] | Full product image gallery URLs. |
| `scrapedAt` | string | ISO 8601 timestamp of when the record was collected. |

### Other Alibaba Scrapers

| Actor | Description |
| --- | --- |
| [Alibaba Search Scraper](https://apify.com/misceres/alibaba-search-scraper) | Search results with supplier, pricing, and MOQ for any keyword. |
| [Alibaba Product Scraper](https://apify.com/misceres/alibaba-product-scraper) | Full product detail: ladder pricing, SKU matrix, inventory, and supplier profile. |
| [Alibaba Company Scraper](https://apify.com/misceres/alibaba-company-scraper) | Complete supplier profile from any Alibaba storefront subdomain. |
| [Alibaba RFQ Scraper](https://apify.com/misceres/alibaba-rfq-scraper) | Live buying requests from Alibaba's sourcing marketplace. |
| [Alibaba Review Scraper](https://apify.com/misceres/alibaba-review-scraper) | Aggregate ratings, per-criterion scores, and supplier SLA metrics. |

# Actor input Schema

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

List of Alibaba product URLs to scrape (https://www.alibaba.com/product-detail/<slug>\_<id>.html).

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

Maximum number of parallel requests.

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

How many times a request will be retried before giving up.

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

Apify Proxy or your own proxy list. RESIDENTIAL group is recommended.

## Actor input object example

```json
{
  "productUrls": [
    {
      "url": "https://www.alibaba.com/product-detail/WATA-In-Ear-Waterproof-Sport-Earbud_1601685362945.html"
    }
  ],
  "maxConcurrency": 3,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": [
        {
            "url": "https://www.alibaba.com/product-detail/WATA-In-Ear-Waterproof-Sport-Earbud_1601685362945.html"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/alibaba-product-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": [{ "url": "https://www.alibaba.com/product-detail/WATA-In-Ear-Waterproof-Sport-Earbud_1601685362945.html" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/alibaba-product-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 '{
  "productUrls": [
    {
      "url": "https://www.alibaba.com/product-detail/WATA-In-Ear-Waterproof-Sport-Earbud_1601685362945.html"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call xtracto/alibaba-product-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XytwHZHdLSWASKna2/builds/8fnm8loN7DYbphJio/openapi.json
