# Alibaba Product Details (`rogertkart/alibaba-product-details`) Actor

Fetch Alibaba product details and save each result as JSON.

- **URL**: https://apify.com/rogertkart/alibaba-product-details.md
- **Developed by:** [Rogert kart](https://apify.com/rogertkart) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 product 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

## Alibaba Product Details

Extract full Alibaba product detail data by product ID or product URL.\
This Actor returns structured JSON for pricing, supplier info, variants, images, MOQ, and more — without browser rendering.

***

#### Key Benefits

- **ID or URL input:** Paste a product ID or a full Alibaba product-detail URL.
- **Structured product JSON:** Clean fields for title, price, MOQ, images, variants, supplier, and ratings.
- **Fast execution:** Direct API-style extraction — no Playwright / CAPTCHA browser flow.
- **Batch-ready:** Pass one or many products in a single run.
- **Multi-currency support:** Request prices in your preferred currency (default `USD`).
- **Rich catalog fields:** Access attributes, lead times, packaging, samples, and Trade Assurance flags.

***

#### Input

Paste a product ID or full Alibaba product URL.

```json
{
  "product": "https://www.alibaba.com/product-detail/New-Retro-Spring-Square-Frame-Steampunk_1601831136813.html",
  "currency": "USD"
}
```

For multiple products in one run:

```json
{
  "product": "1601831136813",
  "products": [
    "62410205351",
    "https://www.alibaba.com/product-detail/Wholesale-Fashion-Design-Half-Frame-UV_1601588202728.html"
  ],
  "currency": "USD"
}
```

##### Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `product` | `string` | Yes | One Alibaba product ID or full product URL. |
| `products` | `array` of strings | No | Extra product IDs or URLs for the same run. |
| `currency` | `string` | No | Currency for prices. Default is `USD`. |

**Accepted input examples**

- Product ID: `1601831136813`
- Product URL: `https://www.alibaba.com/product-detail/New-Retro-Spring-Square-Frame-Steampunk_1601831136813.html`
- ID-only URL: `https://www.alibaba.com/product-detail/_1601831136813.html`

***

#### Output

Each successful item is stored in the default dataset as:

```json
{
  "product": "https://www.alibaba.com/product-detail/New-Retro-Spring-Square-Frame-Steampunk_1601831136813.html",
  "productId": "1601831136813",
  "currency": "USD",
  "ok": true,
  "data": {
    "id": 1600207858430,
    "title": "Partagas Multiple PU Leather Folding Sport Designer Custom Logo Bag Box Cloth Case Set for Sun Glasses Sunglasses in Bulk",
    "link": "https://www.alibaba.com/product-detail/_1600207858430.html",
    "category": {
      "id": 36127040,
      "path": [
        { "id": 36, "name": "Jewelry, Eyewear, Watches & Accessories" },
        { "id": 127726042, "name": "Eyewear Accessories" },
        { "id": 36127040, "name": "Eyeglasses Cases & Bags" }
      ]
    },
    "price": {
      "currency": "USD",
      "min": 0.1,
      "max": 0.9,
      "formatted": "$0.10-0.90",
      "unit": "piece",
      "ladder": [],
      "price_type": "FOB"
    },
    "moq": {
      "quantity": 2,
      "unit": "pieces"
    },
    "images": [
      "https://sc04.alicdn.com/kf/H67ae45bc48cc47b9b726cb3ac089bf98R.jpg"
    ],
    "key_attributes": [
      { "name": "Place of Origin", "value": "Guangdong, China" },
      { "name": "Brand Name", "value": "PARTAGAS" }
    ],
    "variants": {},
    "inventory": {},
    "lead_time": [],
    "packaging": {},
    "sales": {},
    "rating": {},
    "samples": {},
    "description": {},
    "supplier": {
      "company_name": "Guangzhou Partagas Eyewear Co., Ltd."
    },
    "ships_from_country": "CN",
    "is_customizable": false,
    "is_ready_to_ship": true,
    "is_trade_assurance": true,
    "is_available": false,
    "currency_requested": "USD"
  }
}
```

Failed items are still pushed so you can see what went wrong:

```json
{
  "product": "0000000000",
  "productId": "0000000000",
  "currency": "USD",
  "ok": false,
  "error": "Client error '404 Not Found' ..."
}
```

##### Main `data` fields

| Field | Description |
| --- | --- |
| `id` / `title` / `link` | Product identity and Alibaba URL |
| `category` | Category path and IDs |
| `price` | Min/max price, ladder pricing, currency, unit |
| `moq` | Minimum order quantity |
| `images` | Product image URLs |
| `key_attributes` / `attributes` | Spec table values |
| `variants` | SKU / option matrix |
| `inventory` | Stock-related data |
| `lead_time` | Processing periods by quantity |
| `supplier` | Company / seller profile |
| `sales` / `rating` | Sales volume and review summary |
| `samples` / `packaging` | Sample and packaging info |
| `is_trade_assurance` / `is_ready_to_ship` | Listing flags |

***

#### Common Use Cases

- **Price monitoring:** Track Alibaba wholesale prices and ladder tiers over time.
- **Supplier research:** Collect company names, ratings, and Trade Assurance status.
- **Catalog enrichment:** Pull titles, images, attributes, and MOQ into your own catalog.
- **Sourcing pipelines:** Batch-fetch product details from a list of IDs or URLs.
- **Market research:** Compare pricing and lead times across similar listings.

***

#### Notes

- Field availability can vary by product, seller, and currency.
- Invalid or delisted products return `ok: false` with an `error` message.
- Already-fetched results live in the run dataset — export as JSON / CSV / Excel from Apify Console.
- Run responsibly and ensure your usage complies with applicable platform terms and laws.

***

#### Support

If you need custom output fields (for example flattened SKUs only, supplier analytics, or CSV-ready columns), use the **Contact** button on the Actor page.

# Actor input Schema

## `product` (type: `string`):

Paste one Alibaba product ID or full product-detail URL.

## `products` (type: `array`):

Optional. Add more product IDs or URLs to scrape in the same run.

## `currency` (type: `string`):

Currency used for product prices.

## Actor input object example

```json
{
  "product": "1601831136813",
  "currency": "USD"
}
```

# 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 = {
    "product": "1601831136813",
    "currency": "USD"
};

// Run the Actor and wait for it to finish
const run = await client.actor("rogertkart/alibaba-product-details").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 = {
    "product": "1601831136813",
    "currency": "USD",
}

# Run the Actor and wait for it to finish
run = client.actor("rogertkart/alibaba-product-details").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 '{
  "product": "1601831136813",
  "currency": "USD"
}' |
apify call rogertkart/alibaba-product-details --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rogertkart/alibaba-product-details"
        }
    }
}
```

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/3DnycarBPiUdk76kr/builds/Ca1HSJSj0kXKOv26g/openapi.json
