# 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
- **Features:** Limited permissions
- **Stats:** 132 total users, 23 monthly users, 97.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/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

## 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"
    ]
  }
}
```

# Actor output Schema

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

One row per scraped record, stored in the run's default dataset.

# 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(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": [
    {
      "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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/alibaba-product-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/XytwHZHdLSWASKna2/builds/0Vqfaf1uIqAp6gEp6/openapi.json
