# Alibaba Product Details Scraper (`nifty.codes/alibaba-productdetails-scraper`) Actor

Extract Alibaba products. Works on individual product pages. Powered by Alibaba Scraper.

- **URL**: https://apify.com/nifty.codes/alibaba-productdetails-scraper.md
- **Developed by:** [Nifty](https://apify.com/nifty.codes) (community)
- **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. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Extract Alibaba products with price ranges, minimum order quantities, specifications, images and ratings from individual product pages. Powered by Alibaba Scraper.

***

#### Want more from Alibaba?

The full **Alibaba Scraper** browser extension covers every option this site has, with unlimited personal use, real-time scraping with your logged-in sessions, CSV/Excel/JSON export, field customization, and scheduled monitoring.

**[Get the Alibaba Scraper extension](https://nifty.codes/e/alibaba-scraper?utm_source=apify\&utm_medium=actor_readme\&utm_content=alibaba-productdetails-scraper)**

***

#### Data Fields

| Field Name | Description | Example |
| --- | --- | --- |
| Product Code | Alibaba's encoded identifier for the listing | IDX1kA9fPq2LmZr7Tx4BcW8yN3dHs6JvQe5Ug0RoKtYpMiLaXzEbC |
| Product Name | The listing title as the supplier wrote it | Custom Logo Cotton T-Shirt for Men Blank Promotional Tee |
| Brand Name | The brand the supplier gives, where there is one | OEM |
| Category | Alibaba's numeric identifier for the category | 100003071 |
| Category Name | The category the listing sits in | Men's T-Shirts |
| Current Price | The unit price, or a range across order tiers | 2.15-3.40 |
| Currency | The currency symbol those prices are in | $ |
| Average Star Rating | Mean review score out of five | 4.8 |
| Total Review Count | How many reviews the product has | 62 |
| MOQ | The minimum order quantity the supplier accepts | 50 |
| Box MOQ | The minimum order counted in boxes, where set | 1 |
| Customs MOQ | The minimum order for a customised version, such as with a logo | 100 |
| Package Type | How the goods are packed for shipping, where there is one | Polybag and carton |
| All Images | Every photo on the listing, as a list | https://sc04.alicdn.com/kf/H1a2b3c4d5e6f.jpg || https://sc04.alicdn.com/kf/H7g8h9i0j1k2l.jpg |
| Video URL | The product video, where there is one | https://cloud.video.alibaba.com/play/u/123456789/p/1/e/6/t/1/400012345678.mp4 |
| Properties | The specification table as label and value pairs | Collar: O-Neck || Material: 100% Cotton || Printing Methods: Screen Printing |
| Features | The feature tags the supplier lists, comma separated | Breathable, Quick Dry, Anti-Shrink, Eco-Friendly |
| Place of Origin | Where the goods are made | Zhejiang, China |
| Model Number | The supplier's model number for the item | TS-2051 |
| Is Certified | Whether the listing shows a product certification, where stated | Yes |
| Total Images | How many photos the listing has | 8 |
| Total Videos | How many videos the listing has | 1 |

***

*Alibaba Product Details Scraper*

# Actor input Schema

## `urls` (type: `array`):

URLs to scrape. Must match: alibaba.com

## `maxItems` (type: `integer`):

Maximum number of items to extract per URL

## `includeRaw` (type: `boolean`):

Add the unformatted extraction beside every row.

## Actor input object example

```json
{
  "urls": [
    "https://www.alibaba.com/product-detail/Custom-t-Shirt-Printing-T-shirt_1600822844308.html",
    "https://www.alibaba.com/product-detail/High-Quality-Cotton-Custom-T-Shirt_1601041873227.html",
    "https://www.alibaba.com/product-detail/Blank-Cotton-Street-Wear-Vintage-Tshirt_1600951048309.html"
  ],
  "maxItems": 100,
  "includeRaw": false
}
```

# Actor output Schema

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

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("nifty.codes/alibaba-productdetails-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("nifty.codes/alibaba-productdetails-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 '{}' |
apify call nifty.codes/alibaba-productdetails-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nifty.codes/alibaba-productdetails-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/epDSRE5n888LefZd1/builds/xNSfAjXG7W0ei4sui/openapi.json
