# Alibaba Products Scraper (`codingfrontend/alibaba-products-scraper`) Actor

Extract public Alibaba wholesale product listings, pricing, MOQ, and supplier signals with direct, robots-aware HTTP; contact and private supplier fields are excluded.

- **URL**: https://apify.com/codingfrontend/alibaba-products-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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.

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

### What does Alibaba Products Scraper do?

Alibaba Products Scraper collects product listing data that Alibaba exposes on public search, catalog, category, showroom, and product-detail pages. Alibaba's current robots policy disallows the generated `/trade/search` URLs used for keyword searches. Product-detail pages may also withhold structured fields, so listing rows can be partial; a permitted public catalog or category page may return some listing data.

The Actor makes direct requests to [Alibaba.com](https://www.alibaba.com/), checks its public `robots.txt` policy, and keeps product records only when it can verify a product name, public URL, and numeric product ID. It does not sign in, access private supplier information, or bypass access controls.

### Why use Alibaba Products Scraper?

Use public listing information to shortlist wholesale products and compare displayed prices, minimum order quantities, supplier signals, and product attributes. You can provide keyword searches or one or more public Alibaba URLs, apply MOQ, price, and supplier-badge filters, follow observed pagination, and cap the number of saved products. Apify can schedule runs, expose them through its API, and show storage, usage, and logs in Console.

### How to scrape Alibaba products

1. Open the Actor's **Input** tab. A keyword query is the default, though Alibaba's current `robots.txt` policy disallows the generated `/trade/search` URL.
2. To start from a public catalog or category page, add it under **Public Alibaba URLs** as an object with a `url` field. The example below uses Alibaba's Consumer Electronics catalog page.
3. Set a product limit and any MOQ, price, or supplier-badge filters. Keep the request delay at its default unless you have a reason to change it.
4. Start the run, then review product rows in the **Dataset** and the separate run status in **Key-value store** under `OUTPUT_SUMMARY`.

You can copy these examples into the Input tab. They are valid input shapes; a successful run or a particular number of results is not guaranteed because Alibaba controls page access and content.

#### Keyword search

```json
{
  "queries": ["wireless earbuds"],
  "max_products": 10
}
```

#### Public catalog URL

```json
{
  "searchUrls": [
    {"url": "https://www.alibaba.com/catalog/consumer-electronics_cid44"}
  ],
  "max_pages": 2,
  "max_products": 20
}
```

#### Search with product filters and request settings

```json
{
  "queries": ["usb-c hub"],
  "moq_min": 50,
  "price_min": 5,
  "price_max": 25,
  "trade_assurance": true,
  "verified_supplier": true,
  "max_products": 30,
  "maxRetries": 2,
  "requestDelayMs": 1000,
  "requestTimeoutMs": 30000,
  "maxBytes": 5000000
}
```

#### Public product page

```json
{
  "searchUrls": [
    {"url": "https://www.alibaba.com/product-detail/New-Arrival-Bt5-3-Hifi-Stereo_1601233565568.html"}
  ],
  "max_products": 1
}
```

### How much does it cost to scrape Alibaba?

Apify charges depend on your plan and actual compute and storage usage. This Actor does not set a per-product price. More queries, supplied URLs, pages, retries, or larger response limits can increase run time and resource use. Check the run's usage details in Console for your account.

### Input

All 15 input fields are optional. With no input, the Actor uses the `wireless earbuds` query and the defaults shown below. If you supply `searchUrls`, those URLs take precedence over `queries`; the list must contain 1–20 objects, each with only a `url` property. Empty `searchUrls` arrays are invalid. URLs must be public HTTPS pages on Alibaba.com and must point to a search, catalog, category, showroom, or product-detail page. The Actor rejects malformed or relative URLs, home pages, `robots.txt`, URLs with credentials, explicit ports, control characters, backslashes, leading/trailing whitespace, and URLs outside those page types. A rejected URL fails input validation; it is not silently skipped or replaced with a keyword search.

Generated keyword searches are skipped because Alibaba's current robots policy disallows their `/trade/search` path. A supplied public catalog, category, or showroom URL can be a useful starting point when it is allowed. A supplied product-detail page is processed as a product source, but a record is saved only if a product ID, name, and URL can be verified.

#### Search and pagination

| Field | Type | Required? | Default | Limits and behavior |
| --- | --- | --- | --- | --- |
| `queries` | Array of text | Optional | `["wireless earbuds"]` | 1–20 non-empty phrases, up to 200 Unicode characters each. Used to create keyword searches when `searchUrls` is omitted. |
| `searchUrls` | Array of objects (`url`: text) | Optional | None | If supplied, 1–20 URL-only objects. Public HTTPS Alibaba search, catalog, category, showroom, and product-detail pages are supported. URLs take precedence over `queries`. |
| `max_pages` | Integer | Optional | `1` | 1–50 pages per generated query or supplied search URL. The Actor follows observed next-page links. |
| `start_page` | Integer | Optional | `1` | 1–1,000. Sets the starting page for generated keyword searches; it does not alter supplied `searchUrls`. |
| `max_products` | Integer | Optional | `300` | 1–5,000 unique product records across all queries and supplied URLs. |

The Actor deduplicates products by the numeric ID in the product URL when available and otherwise by the product URL without tracking parameters. The product limit is global across all inputs. It keeps discovery order; there is no sort option.

#### Product filters

| Field | Type | Required? | Default | Limits and behavior |
| --- | --- | --- | --- | --- |
| `moq_min` | Number | Optional | None | Minimum `1`. Products without a displayed MOQ do not pass this filter. |
| `price_min` | Number | Optional | None | Minimum `0`. Keeps displayed price ranges that reach this amount. |
| `price_max` | Number | Optional | None | Minimum `0`. Keeps displayed price ranges that start at or below this amount. |
| `trade_assurance` | Boolean | Optional | `false` | When `true`, keeps products explicitly marked Trade Assurance. Missing badge data does not pass. |
| `verified_supplier` | Boolean | Optional | `false` | When `true`, keeps products explicitly marked Verified Supplier. Missing badge data does not pass. |
| `alibaba_guaranteed` | Boolean | Optional | `false` | When `true`, keeps products explicitly marked Alibaba Guaranteed. Missing badge data does not pass. |

When both price limits are set, `price_max` cannot be lower than `price_min`, and a displayed range must overlap both limits. Prices are compared as shown, without currency conversion. A product missing a value needed by an enabled filter does not pass. Filters are applied after any available matching detail data; filtered results do not prevent the Actor from following an observed next page within `max_pages`.

#### Advanced request settings

| Field | Type | Required? | Default | Limits and behavior |
| --- | --- | --- | --- | --- |
| `maxRetries` | Integer | Optional | `2` | 1–5 total request attempts, including the first attempt. |
| `requestDelayMs` | Integer | Optional | `1000` | 0–5,000 ms minimum delay between public page requests. |
| `requestTimeoutMs` | Integer | Optional | `30000` | 5,000–120,000 ms per request. |
| `maxBytes` | Integer | Optional | `5000000` | 1,000–15,000,000 bytes maximum response body accepted for one page. |

### Output

Each dataset row is a product record, not a run diagnostic. Required fields are the product ID, public product name, and public product URL. Other fields are included only when the public page provides a usable value. The example below is illustrative: its values are not verified marketplace results, and the sample supplier and product data are fictional.

```json
{
  "productId": "1601001001",
  "name": "Wireless Bluetooth Earbuds",
  "productUrl": "https://www.alibaba.com/product-detail/Wireless-Earbuds_1601001001.html",
  "priceMin": 4.5,
  "priceMax": 6,
  "currency": "USD",
  "moq": 100,
  "companyName": "Example Audio Manufacturing Ltd.",
  "supplierLocation": "Shenzhen, China",
  "yearsAsGoldSupplier": 8,
  "supplierServiceScore": 4.7,
  "isAlibabaGuaranteed": true,
  "isTradeAssurance": true,
  "isVerifiedSupplier": true,
  "reviewCount": 37,
  "reviewScore": 4.8,
  "ordersCount": 250,
  "category": "Consumer Electronics",
  "description": "Wireless earbuds with a charging case.",
  "specifications": {
    "material": "ABS plastic",
    "connectivity": "Bluetooth 5.3"
  },
  "mainImage": "https://img.alicdn.com/img/example-earbuds.jpg",
  "images": [
    "https://img.alicdn.com/img/example-earbuds.jpg",
    "https://img.alicdn.com/img/example-earbuds-case.jpg"
  ],
  "priceText": "US $4.50–6.00",
  "priceTiers": [
    {"price": "US $4.50", "quantity": "100–499 pieces"},
    {"price": "US $4.00", "quantity": "500 pieces or more"}
  ],
  "availability": "In stock",
  "minOrderUnit": "piece",
  "supplierCountry": "China",
  "deliveryEstimate": "10–15 days",
  "supplier": {
    "id": "example-supplier-id",
    "storeUrl": "https://example.en.alibaba.com/",
    "profileUrl": "https://example.en.alibaba.com/company_profile.html",
    "membershipYears": 8,
    "verification": {
      "provider": "SGS",
      "verified": true
    },
    "reviewScores": {
      "overall": 4.7,
      "productQuality": 4.8,
      "supplierService": 4.7,
      "onTimeShipment": 4.6
    },
    "reviewCount": 37,
    "certifications": [
      {"name": "CE", "imageUrl": "https://img.alicdn.com/img/example-cert.png", "width": 120, "height": 80}
    ]
  },
  "certifications": [
    {"name": "CE", "imageUrl": "https://img.alicdn.com/img/example-cert.png", "width": 120, "height": 80}
  ],
  "packaging": {
    "Package type": "Retail box",
    "Units per carton": "100 pieces"
  },
  "customizable": true,
  "fulfillmentInfo": "Sample orders available",
  "demand": {
    "soldQuantity": 250,
    "viewCount": 1200,
    "recentInquiries": 15,
    "soldText": "250 sold",
    "viewText": "1,200 views",
    "inquiryText": "15 recent inquiries"
  },
  "sku": "EARBUD-X5",
  "manufacturerPartNumber": "OEM-X5",
  "brand": "SoundPeak"
}
```

#### Product output fields

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `productId` | Text | Yes | None | The 8–30 digit product ID at the end of the public product URL. |
| `name` | Text | Yes | None | Public product title. |
| `productUrl` | URL text | Yes | None | Public Alibaba product page URL. |
| `priceMin` | Number | Optional | Omitted if unavailable | Low end of the displayed product price range. |
| `priceMax` | Number | Optional | Omitted if unavailable | High end of the displayed product price range. |
| `currency` | Text | Optional | Omitted if unavailable | Currency shown with the price. |
| `moq` | Number | Optional | Omitted if unavailable | Displayed minimum order quantity. |
| `companyName` | Text | Optional | Omitted if unavailable | Public supplier or company name. |
| `supplierLocation` | Text | Optional | Omitted if unavailable | Public supplier location. |
| `yearsAsGoldSupplier` | Number | Optional | Omitted if unavailable | Displayed Gold Supplier tenure. |
| `supplierServiceScore` | Number | Optional | Omitted if unavailable | Displayed supplier service score. |
| `isAlibabaGuaranteed` | Boolean | Optional | Omitted if unavailable | Whether the page explicitly displays the Alibaba Guaranteed badge. |
| `isTradeAssurance` | Boolean | Optional | Omitted if unavailable | Whether the page explicitly displays the Trade Assurance badge. |
| `isVerifiedSupplier` | Boolean | Optional | Omitted if unavailable | Whether the page explicitly displays the Verified Supplier badge. |
| `reviewCount` | Number | Optional | Omitted if unavailable | Product review count when the page explicitly identifies it as a product aggregate. |
| `reviewScore` | Number | Optional | Omitted if unavailable | Product review score when the page explicitly identifies it as a product aggregate. |
| `ordersCount` | Number | Optional | Omitted if unavailable | Displayed product order count. |
| `category` | Text | Optional | Omitted if unavailable | Public product category. |
| `description` | Text | Optional | Omitted if unavailable | Public product description. |
| `specifications` | Object of text values | Optional | Omitted if unavailable | Public product specification names and values. |
| `mainImage` | URL text | Optional | Omitted if unavailable | Primary product image; it is also the first URL in `images`. |
| `images` | Array of URL text | Optional | Omitted if unavailable | Distinct public product images, with the primary image first when present. |
| `priceText` | Text | Optional | Omitted if unavailable | Publicly displayed price text. |
| `priceTiers` | Array of objects | Optional | Omitted if unavailable | Public price breaks; each item has a price and quantity range as text. |
| `availability` | Text | Optional | Omitted if unavailable | Publicly displayed product availability. |
| `minOrderUnit` | Text | Optional | Omitted if unavailable | Unit used for the displayed minimum order quantity. |
| `supplierCountry` | Text | Optional | Omitted if unavailable | Supplier country shown by the listing. |
| `deliveryEstimate` | Text | Optional | Omitted if unavailable | Publicly displayed delivery estimate. |
| `supplier` | Object | Optional | Omitted if unavailable | Public supplier identity, store/profile links, membership, verification, review scores, count, and certifications. |
| `certifications` | Array of objects | Optional | Omitted if unavailable | Public product certifications shown by the source. |
| `packaging` | Object of text values | Optional | Omitted if unavailable | Public package labels and displayed values. |
| `customizable` | Boolean | Optional | Omitted if unavailable | Whether the listing explicitly indicates customization. |
| `fulfillmentInfo` | Text | Optional | Omitted if unavailable | Public fulfillment or shipping service text. |
| `demand` | Object | Optional | Omitted if unavailable | Displayed sold quantity, views, recent inquiries, and their original text when available. |
| `sku` | Text | Optional | Omitted if unavailable | Public product SKU. |
| `manufacturerPartNumber` | Text | Optional | Omitted if unavailable | Public manufacturer part number. |
| `brand` | Text | Optional | Omitted if unavailable | Public product brand. |

#### Nested product output fields

All nested object properties are optional unless a row says they are required within an emitted array item. Nested values are omitted when the page does not provide usable public data.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `images[]` | URL text | Optional | Omitted if unavailable | One distinct public product image URL. |
| `specifications[<property>]` | Text | Optional | Omitted if unavailable | Public value for a product specification label. |
| `priceTiers[]` | Object | Optional | Omitted if unavailable | One public price tier with a price and quantity range. |
| `priceTiers[].price` | Text | Yes, within item | None | Displayed tier price. |
| `priceTiers[].quantity` | Text | Yes, within item | None | Displayed quantity range or threshold for the tier. |
| `supplier.id` | Text | Optional | Omitted if unavailable | Public supplier identifier. |
| `supplier.storeUrl` | URL text | Optional | Omitted if unavailable | Public supplier storefront URL. |
| `supplier.profileUrl` | URL text | Optional | Omitted if unavailable | Public supplier profile URL. |
| `supplier.membershipYears` | Integer | Optional | Omitted if unavailable | Supplier membership tenure in years. |
| `supplier.verification` | Object | Optional | Omitted if unavailable | Supplier verification information. |
| `supplier.verification.provider` | Text | Optional | Omitted if unavailable | Public verification provider name. |
| `supplier.verification.verified` | Boolean | Optional | Omitted if unavailable | Explicit public verification status. |
| `supplier.reviewScores` | Object | Optional | Omitted if unavailable | Supplier review scores on a 0–5 scale. |
| `supplier.reviewScores.overall` | Number | Optional | Omitted if unavailable | Overall supplier review score. |
| `supplier.reviewScores.productQuality` | Number | Optional | Omitted if unavailable | Supplier product-quality score. |
| `supplier.reviewScores.supplierService` | Number | Optional | Omitted if unavailable | Supplier service score. |
| `supplier.reviewScores.onTimeShipment` | Number | Optional | Omitted if unavailable | Supplier on-time shipment score. |
| `supplier.reviewCount` | Integer | Optional | Omitted if unavailable | Supplier review count. |
| `supplier.certifications` | Array of objects | Optional | Omitted if unavailable | Public supplier certification items. |
| `supplier.certifications[]` | Object | Optional | Omitted if unavailable | One supplier certification with a name and any available badge image details. |
| `supplier.certifications[].name` | Text | Yes, within item | None | Certification name. |
| `supplier.certifications[].imageUrl` | URL text | Optional | Omitted if unavailable | Public certification image URL. |
| `supplier.certifications[].width` | Positive integer | Optional | Omitted if unavailable | Certification image width in pixels. |
| `supplier.certifications[].height` | Positive integer | Optional | Omitted if unavailable | Certification image height in pixels. |
| `certifications[]` | Object | Optional | Omitted if unavailable | One product certification with a name and any available badge image details. |
| `certifications[].name` | Text | Yes, within item | None | Certification name. |
| `certifications[].imageUrl` | URL text | Optional | Omitted if unavailable | Public certification image URL. |
| `certifications[].width` | Positive integer | Optional | Omitted if unavailable | Certification image width in pixels. |
| `certifications[].height` | Positive integer | Optional | Omitted if unavailable | Certification image height in pixels. |
| `packaging[<label>]` | Text | Optional | Omitted if unavailable | Displayed packaging value keyed by its public label. |
| `demand.soldQuantity` | Integer | Optional | Omitted if unavailable | Displayed sold quantity. |
| `demand.viewCount` | Integer | Optional | Omitted if unavailable | Displayed listing view count. |
| `demand.recentInquiries` | Integer | Optional | Omitted if unavailable | Displayed recent inquiry count. |
| `demand.soldText` | Text | Optional | Omitted if unavailable | Original sold-count wording. |
| `demand.viewText` | Text | Optional | Omitted if unavailable | Original view-count wording. |
| `demand.inquiryText` | Text | Optional | Omitted if unavailable | Original recent-inquiry wording. |

Optional fields may be absent from real records. Product and supplier review values are kept separate: top-level `reviewCount` and `reviewScore` describe product aggregates, while supplier review values are nested under `supplier`. The example includes all supported fields to show the record shape; it does not claim that one Alibaba page provides every field. Product detail requests may not return usable matching data, so the Actor can save a valid listing with only the fields available from that listing. It does not guess missing values. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

#### Run summary

The Actor writes one `OUTPUT_SUMMARY` object to the default key-value store. The summary stays separate from product dataset rows.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `status` | Text | Yes | None | `SUCCEEDED` when at least one valid product record is stored; otherwise `FAILED`. |
| `itemsStored` | Nonnegative integer | Yes | None | Number of validated product rows whose dataset writes completed. |
| `isPartial` | Boolean | Yes | None | `true` when collection, product detail enrichment, or a dataset write failed and one or more products were saved. |

The summary below illustrates the result when a run stores no valid product rows; it does not report a current Cloud run.

```json
{
  "status": "FAILED",
  "itemsStored": 0,
  "isPartial": false
}
```

The Actor does not add dummy product rows for blocked, empty, filtered, or invalid runs. If no valid product rows are saved, the summary status is `FAILED`. Review the run log for robots skips, blocked pages, or incomplete detail requests.

### Tips and advanced options

Start with one permitted public catalog/category URL or one query and a small `max_products` value. Adding URLs or pages increases requests and run time. Keep a useful delay between requests, especially when following several pages. A product row may contain only listing fields when a matching product-detail page is unavailable. Numeric prices are compared in their displayed currency; compare the `currency` field before using them across suppliers.

The Actor applies MOQ, price, and badge filters only when the public response provides the needed values. A product without a value required by an enabled filter is excluded. Duplicate products are identified by product ID when possible.

### FAQ, support, and responsible use

**Why did my keyword search return no products?** Alibaba's current robots policy disallows the generated `/trade/search` path used for keyword searches, so the Actor skips those URLs without requesting them. Try a public catalog, category, or showroom URL that is permitted by Alibaba's policy.

**Why are fields missing?** Alibaba may withhold detail data or return pages that do not expose those fields to public requests. Optional fields are omitted rather than inferred. Inspect each run's logs, dataset, and summary before relying on results.

**Where can I get help?** Use the Actor's **Issues** tab for bugs or feature requests. Include the run ID, a short description, and the public input that produced the issue. Do not share credentials or private supplier information. Use the **API** tab for programmatic runs.

This Actor is not affiliated with Alibaba.com. It only requests pages that are public and allowed by Alibaba's robots policy; it does not sign in, use private APIs, access supplier contact pages, rotate proxies, solve CAPTCHAs, or bypass access controls. Use it according to Alibaba's current terms, robots policy, rate limits, privacy requirements, and applicable law. Public listings may contain personal data; only collect and use it when you have a legitimate reason, and consult qualified legal counsel if you are unsure about your obligations.

# Actor input Schema

## `queries` (type: `array`):

Product keywords used to create Alibaba searches when searchUrls is omitted. Defaults to wireless earbuds. Use 1–20 phrases, up to 200 Unicode characters each. Alibaba's current robots policy disallows the generated /trade/search path, so keyword searches are skipped; a permitted public catalog/category or showroom URL may be usable instead.

## `searchUrls` (type: `array`):

Optional HTTPS URLs for public Alibaba search, catalog, category, showroom, or product-detail pages. When supplied, these URLs take precedence over queries. Use 1–20 objects containing only a url. Alibaba.com must allow the requested page under its robots policy.

## `max_pages` (type: `integer`):

Maximum pages to follow for each generated query or supplied search URL. Pagination follows observed next-page links.

## `start_page` (type: `integer`):

One-indexed starting page for generated keyword searches. It does not change a supplied searchUrls entry.

## `max_products` (type: `integer`):

Maximum number of unique product rows saved across all queries and supplied URLs.

## `moq_min` (type: `number`):

Keep products whose displayed minimum order quantity is at least this value. Products without an MOQ do not pass this filter.

## `price_min` (type: `number`):

Keep products whose displayed price range reaches at least this amount. Values are compared as shown; the Actor does not convert currencies.

## `price_max` (type: `number`):

Keep products whose displayed price range starts at or below this amount. Values are compared as shown; the Actor does not convert currencies.

## `trade_assurance` (type: `boolean`):

Keep only products whose public listing is marked Trade Assurance. Missing badge information does not pass the filter.

## `verified_supplier` (type: `boolean`):

Keep only products whose public listing is marked Verified Supplier. Missing badge information does not pass the filter.

## `alibaba_guaranteed` (type: `boolean`):

Keep only products carrying the public Alibaba Guaranteed badge. Missing badge information does not pass the filter.

## `maxRetries` (type: `integer`):

Maximum total attempts, including the first request, for each public page request.

## `requestDelayMs` (type: `integer`):

Minimum delay between public page requests in milliseconds.

## `requestTimeoutMs` (type: `integer`):

Timeout for each public page request in milliseconds.

## `maxBytes` (type: `integer`):

Largest response body accepted from one public page.

## Actor input object example

```json
{
  "queries": [
    "wireless earbuds"
  ],
  "max_pages": 1,
  "start_page": 1,
  "max_products": 300,
  "trade_assurance": false,
  "verified_supplier": false,
  "alibaba_guaranteed": false,
  "maxRetries": 2,
  "requestDelayMs": 1000,
  "requestTimeoutMs": 30000,
  "maxBytes": 5000000
}
```

# Actor output Schema

## `dataset` (type: `string`):

Business product records saved to the default dataset.

## `runSummary` (type: `string`):

The three-field OUTPUT_SUMMARY record in the default 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/alibaba-products-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("codingfrontend/alibaba-products-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 codingfrontend/alibaba-products-scraper --silent --output-dataset

```

## MCP server setup

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