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

Extract public Alibaba wholesale product listings, pricing, MOQ, and supplier signals for sourcing research.

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

## Pricing

from $2.99 / 1,000 products

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 this Actor do?

This Actor collects product observations from [public Alibaba.com product search, category, showroom, and product-detail pages](https://www.alibaba.com/). It combines public JSON-LD, Alibaba's embedded offer data, visible product cards, and browser-rendered pages when JavaScript is required.

It is useful for wholesale product discovery, supplier shortlisting, price and MOQ comparison, sourcing research, and building a searchable product dataset. You can process several queries or public source URLs, follow ordered pagination, deduplicate repeated products, filter by public sourcing signals, sort the result, and keep product-scoped media and supplier context.

#### Scope and access boundary

The Actor reads only public pages. It does not log in, use private supplier portals, call authenticated APIs, solve CAPTCHAs, spoof browser fingerprints, or bypass access controls. If Alibaba returns a challenge, robots restriction, or other access boundary, the Actor fails closed and records a numeric issue count in `OUTPUT_SUMMARY` with details in logs; it does not add an error or placeholder row to the Dataset.

Generated searches use Alibaba's public country-search view (`/countrysearch/CN/<query>.html`), which currently exposes public listing payloads without requiring the blocked trade-search shell. Explicit public trade-search URLs remain accepted, but the Actor fails closed if Alibaba challenges them. The parser accepts JSON-LD, Alibaba embedded offer payloads, and visible product-card evidence; fields are omitted when the public page does not expose them.

### Run in Console

#### Console steps

1. Open the [Alibaba Products Scraper Store page](https://apify.com/devcake/alibaba-products-scraper).
2. Click **Try for free** or **Start** and open the **Input** tab.
3. Paste one of the JSON inputs below, or fill the form fields.
4. Click **Start** and wait for the run to finish.
5. Open the **Dataset** tab for product rows. Open the Key-Value Store records `OUTPUT_SUMMARY` and `SOURCE_METADATA` for run status, issue counts, and pagination metadata.

#### Cost

There is no hard-coded price in this repository. Your total cost is determined by the Apify compute, memory, storage, and optional proxy usage shown in your account and run settings. Review the [Apify pricing page](https://apify.com/pricing) before a large run. Public-page delays, pagination, browser rendering, and proxy routing can increase runtime or usage.

### Input

#### Basic search

```json
{
  "queries": ["wireless earbuds", "rechargeable led work light"],
  "maxPages": 2,
  "maxProducts": 100,
  "sortBy": "relevance"
}
```

#### Multiple public sources

```json
{
  "sourceUrls": [
    {
      "url": "https://www.alibaba.com/countrysearch/CN/wireless-earbuds.html"
    },
    {
      "url": "https://www.alibaba.com/countrysearch/CN/led-work-light.html"
    }
  ],
  "maxPages": 3,
  "deduplicate": true,
  "maxProducts": 250
}
```

#### Filters and sorting

```json
{
  "queries": ["wireless earbuds"],
  "minPrice": 20,
  "maxPrice": 800,
  "minMoq": 10,
  "maxMoq": 500,
  "supplierCountries": ["CN", "China"],
  "minProductRating": 4.5,
  "minReviewCount": 10,
  "minSupplierYears": 3,
  "requiredBadges": ["certified"],
  "tradeAssurance": true,
  "verifiedSupplier": true,
  "sortBy": "rating_desc"
}
```

Supported `sortBy` values are `relevance`, `price_asc`, `price_desc`, `moq_asc`, `moq_desc`, `rating_desc`, `reviews_desc`, `sold_desc`, `supplier_years_desc`, `supplier_name_asc`, and `title_asc`.

#### Advanced and proxy options

```json
{
  "queries": ["wireless earbuds"],
  "renderJavaScript": true,
  "requestDelayMs": 1000,
  "maxConcurrency": 2,
  "maxRequestRetries": 3,
  "requestTimeoutSecs": 60,
  "browserWaitMs": 1500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

Proxy routing is optional. It changes the network route only; it is not a CAPTCHA, login, or access-control bypass. Use the standard Apify Proxy setting unless you have a documented reason to supply a public custom proxy URL. Respect Alibaba's terms and robots policy.

#### Local QA inputs

The fixture fields are for deterministic local validation and are rejected in Cloud runs. They never replace a public Alibaba source in a production run.

```json
{
  "sourceUrls": [
    {
      "url": "http://127.0.0.1:8771/products.html"
    }
  ],
  "renderJavaScript": false,
  "requestDelayMs": 0,
  "maxPages": 2,
  "maxProducts": 10
}
```

#### Complete input reference

All supported keys are listed below. Compatibility aliases normalize to the canonical key shown in the description.

| Key                                       | Type and purpose                                                                                                                                                       |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `queries`                                 | Array of up to 25 search strings. Defaults to `wireless earbuds`.                                                                                                      |
| `searchQuery`                             | Primary query string used as source context.                                                                                                                           |
| `sourceUrls`                              | Array of public Alibaba result/detail URLs.                                                                                                                            |
| `startUrls`, `searchUrls`, `urls`         | Compatibility aliases for `sourceUrls`.                                                                                                                                |
| `url`                                     | Compatibility alias for one source URL.                                                                                                                                |
| `startPage`                               | First page number, 1–1000; default `1`.                                                                                                                                |
| `start_page`                              | Compatibility alias for `startPage`.                                                                                                                                   |
| `maxPages`                                | Maximum pages per source, 1–100; default `2`.                                                                                                                          |
| `max_pages`                               | Compatibility alias for `maxPages`.                                                                                                                                    |
| `maxProducts`                             | Maximum product rows after deduplication, filters, and sorting, 1–5000; default `300`.                                                                                 |
| `max_products`, `maxItems`, `max_items`   | Compatibility aliases for `maxProducts`.                                                                                                                               |
| `sortBy`                                  | `relevance`, `price_asc`, `price_desc`, `moq_asc`, `moq_desc`, `rating_desc`, `reviews_desc`, `sold_desc`, `supplier_years_desc`, `supplier_name_asc`, or `title_asc`. |
| `textQuery`                               | Case-insensitive text filter over observed title, supplier, location, category, badge, promotion, and description text.                                                |
| `supplierCountries`                       | Array of country or region text filters.                                                                                                                               |
| `countries`                               | Compatibility alias for `supplierCountries`.                                                                                                                           |
| `currency`                                | Three-letter currency filter such as `USD`, `EUR`, `INR`, or `CNY`.                                                                                                    |
| `minPrice`, `price_min`                   | Minimum observed price-range threshold and alias.                                                                                                                      |
| `maxPrice`, `price_max`                   | Maximum observed price-range threshold and alias.                                                                                                                      |
| `minMoq`, `moqMin`, `moq_min`             | Minimum observed MOQ threshold and aliases.                                                                                                                            |
| `maxMoq`, `moqMax`, `moq_max`             | Maximum observed MOQ threshold and aliases.                                                                                                                            |
| `minSupplierRating`                       | Minimum observed supplier rating from 0 to 5.                                                                                                                          |
| `minProductRating`                        | Minimum observed product rating from 0 to 5.                                                                                                                           |
| `minReviewCount`                          | Minimum public review count.                                                                                                                                           |
| `minSoldCount`                            | Minimum public sold/order count.                                                                                                                                       |
| `minSupplierYears`                        | Minimum observed supplier years.                                                                                                                                       |
| `minReorderRatePercent`                   | Minimum observed reorder rate from 0 to 100.                                                                                                                           |
| `requiredBadges`                          | Array of badge or selling-point fragments; every requested value must match.                                                                                           |
| `requiredCertifications`                  | Array of certification fragments; every requested value must match.                                                                                                    |
| `tradeAssurance`, `trade_assurance`       | Keep only public Trade Assurance evidence and alias.                                                                                                                   |
| `verifiedSupplier`, `verified_supplier`   | Keep only public verified-supplier evidence and alias.                                                                                                                 |
| `alibabaGuaranteed`, `alibaba_guaranteed` | Keep only public Alibaba Guaranteed evidence and alias.                                                                                                                |
| `certifiedOnly`                           | Keep only publicly certified products.                                                                                                                                 |
| `deduplicate`                             | Merge repeated product IDs or canonical URLs; default `true`.                                                                                                          |
| `includeMedia`                            | Include product-scoped public CDN media; default `true`.                                                                                                               |
| `includeAttributes`                       | Include attributes, variations, and specifications; default `true`.                                                                                                    |
| `includeSupplierDetails`                  | Include supplier identity, profile, country, ratings, badges, and trust signals; default `true`.                                                                       |
| `renderJavaScript`, `useBrowser`          | Use Chromium for dynamic pages, or its compatibility alias; default `true`.                                                                                            |
| `requestDelayMs`, `pageDelayMs`           | Delay before each public request in milliseconds, 0–15000.                                                                                                             |
| `maxConcurrency`, `concurrency`           | Maximum independent sources processed at once, 1–5.                                                                                                                    |
| `maxRequestRetries`, `maxRetries`         | Maximum retries for transient failures, 0–10.                                                                                                                          |
| `requestTimeoutSecs`, `timeoutSecs`       | Per-request timeout in seconds, 15–300.                                                                                                                                |
| `requestTimeoutMs`                        | Millisecond compatibility alias for the timeout.                                                                                                                       |
| `maxResponseBytes`, `maxBytes`            | Safety cap for downloaded/rendered HTML, 100000–50000000 bytes.                                                                                                        |
| `browserWaitMs`, `renderWaitMs`           | Additional browser wait after DOM content loads, 0–10000 milliseconds.                                                                                                 |
| `proxyConfiguration`                      | Object with `useApifyProxy`, optional `apifyProxyGroups`, `apifyProxyCountry`, or public `proxyUrls`. Proxying does not bypass access controls.                        |
| `userAgent`                               | Optional transparent User-Agent override for public requests. Do not use it to impersonate a browser or evade controls.                                                |
| `locale`                                  | Browser locale such as `en-US`; default `en-US`.                                                                                                                       |

### Output dataset

#### Record families

The Dataset contains source-backed product observations only. Product values are observed facts, not inferred guarantees. Optional values are omitted when Alibaba does not expose them; blocked pages, extraction failures, and successful empty results do not create Dataset rows.

Product fields cover identity and provenance (`title`, `name`, `productId`, `productUrl`, `url`, `sourceType`, `sourceUrl`, `pageUrl`, `pageNum`, `position`, `query`), commercial values (`price`, `priceMin`, `priceMax`, `currency`, `priceFormatted`, `moq`, `minimumOrderQuantity`, `minimumOrderUnit`), supplier values (`supplierName`, `companyName`, `supplierProfileUrl`, `supplierCountry`, `supplierLocation`, `supplierYears`, `yearsAsGoldSupplier`, `supplierRating`, `supplierServiceScore`), public demand/trust signals, product media, attributes, variations, specifications, delivery text, promotions, selling points, badges, category, description, and `scrapedAt`.

Images are restricted to product-scoped public Alibaba CDN assets. Country flags, UI icons, logos, and unrelated assets are excluded.

#### Rich product example

```json
{
  "title": "Compact Wireless Earbuds",
  "name": "Compact Wireless Earbuds",
  "productId": "1601234567890",
  "productUrl": "https://www.alibaba.com/product-detail/Compact-Wireless-Earbuds_1601234567890.html",
  "url": "https://www.alibaba.com/product-detail/Compact-Wireless-Earbuds_1601234567890.html",
  "sourceType": "alibaba_product_search",
  "sourceUrl": "https://www.alibaba.com/countrysearch/CN/wireless-earbuds.html",
  "pageUrl": "https://www.alibaba.com/countrysearch/CN/wireless-earbuds.html",
  "pageNum": 1,
  "position": 1,
  "query": "wireless earbuds",
  "price": 100,
  "priceMin": 100,
  "priceMax": 120,
  "currency": "INR",
  "priceFormatted": "₹100.00-120.00",
  "moq": 10,
  "minimumOrderQuantity": 10,
  "minimumOrderUnit": "pieces",
  "supplierName": "Compact Audio Co., Ltd.",
  "companyName": "Compact Audio Co., Ltd.",
  "supplierProfileUrl": "https://compact.en.alibaba.com/company_profile.html",
  "supplierCountry": "CN",
  "supplierYears": 8,
  "productRating": 4.8,
  "reviewCount": 20,
  "soldCount": 5,
  "reorderRatePercent": 35,
  "mainImage": "https://s.alicdn.com/@sc04/kf/compact-main.jpg_300x300.jpg",
  "images": [
    "https://s.alicdn.com/@sc04/kf/compact-main.jpg_300x300.jpg",
    "https://s.alicdn.com/@sc04/kf/compact-side.jpg_300x300.jpg"
  ],
  "imageCount": 2,
  "badges": ["Reorder rate 35%", "certified"],
  "badgeTexts": ["Reorder rate 35%", "certified"],
  "isCertified": true,
  "isVerifiedSupplier": true,
  "isAd": true,
  "canAddToCart": true,
  "canChatNow": true,
  "scrapedAt": "2026-09-08T10:00:00.000Z"
}
```

#### Fallback product example

When only the product identity and public link are available, the Actor emits a valid smaller product row and omits unavailable commercial, supplier, and media fields.

```json
{
  "title": "USB-C Earbuds",
  "name": "USB-C Earbuds",
  "productUrl": "https://www.alibaba.com/product-detail/USB-C-Earbuds_1601234567891.html",
  "url": "https://www.alibaba.com/product-detail/USB-C-Earbuds_1601234567891.html",
  "sourceType": "alibaba_product_search",
  "sourceUrl": "https://www.alibaba.com/countrysearch/CN/wireless-earbuds.html",
  "pageUrl": "https://www.alibaba.com/countrysearch/CN/wireless-earbuds.html",
  "pageNum": 1,
  "position": 2,
  "query": "wireless earbuds",
  "scrapedAt": "2026-09-08T10:00:00.000Z"
}
```

#### Operational issue counts

When a source request fails, `OUTPUT_SUMMARY` keeps the numeric issue count and the run logs contain failure details. Operational issues are never written as Dataset rows or stored as detailed key-value records.

#### Run summary example

The `OUTPUT_SUMMARY` and compatibility `OUTPUT` records contain run metrics, not product rows:

```json
{
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "PARTIAL",
  "recordCount": 24,
  "diagnosticItems": 0,
  "diagnosticCount": 1,
  "recordsEmitted": 24,
  "requests": 6,
  "retries": 1,
  "successfulRequests": 5,
  "failedRequests": 1,
  "sourcesProcessed": 2,
  "pagesProcessed": 6,
  "candidatesFound": 31,
  "uniqueProducts": 27,
  "filteredOutCount": 3,
  "rejectedInputCount": 0,
  "queries": [
    "wireless earbuds",
    "led work light"
  ],
  "maxProducts": 100,
  "maxPages": 3,
  "sortBy": "relevance",
  "deduplicate": true,
  "renderJavaScript": true,
  "maxConcurrency": 2,
  "proxyEnabled": false,
  "fixtureMode": false,
  "completedAt": "2026-09-08T10:00:00.000Z"
}
```

#### Key-Value Store artifacts

- `OUTPUT_SUMMARY`: run status and counters.
- `OUTPUT`: compatibility copy of the summary.
- `SOURCE_METADATA`: per-source request, retry, failure, and page metadata.

The product Dataset intentionally excludes Actor instrumentation, HTTP internals, transport metadata, debugging wrappers, and run counters.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Troubleshooting

#### The Dataset contains no products

Check `OUTPUT_SUMMARY`, `SOURCE_METADATA`, and the run logs. `ACCESS_BOUNDARY`, HTTP 401/403/429/451, CAPTCHA/challenge text, off-host redirects, and robots/access restrictions are fail-closed outcomes. When source-backed products were parsed but filters remove all of them, the run completes with `status: SUCCEEDED` and `dataStatus: NO_RESULTS`. If no product evidence can be parsed, the run reports an extraction failure; a request or extraction failure without saved products fails the run. Reduce request volume, verify that the source is public, and follow Alibaba's terms; do not add login or bypass logic.

#### The run returns no products

Check that the query or `sourceUrls` points to a public Alibaba result/detail route. Remove restrictive filters, increase `maxPages`, or inspect `SOURCE_METADATA` and the run logs to distinguish a valid empty result from an extraction failure.

#### A field is missing

Missing values mean the public page did not expose that field in the supported JSON-LD, embedded offer, or visible-card structures. The Actor does not fabricate values. Use `includeMedia`, `includeAttributes`, and `includeSupplierDetails` to control optional output groups.

#### A local fixture is rejected

Local parser tests use checked-in HTML fixtures. Public Actor inputs use Alibaba URLs and do not expose fixture overrides; Cloud runs always request the public source.

#### Browser rendering is unavailable

Set `renderJavaScript` to `false` only when the source is static HTML or for local fixtures. Browser startup failures are reported in logs and the Key-Value Store; no access-control bypass is attempted.

### API and support

The [Apify API documentation](https://docs.apify.com/api/v2) describes programmatic runs and Dataset downloads. The Actor API identifier is `devcake~alibaba-products-scraper`.

```bash
curl -X POST "https://api.apify.com/v2/acts/devcake~alibaba-products-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["wireless earbuds"],"maxProducts":25}'
```

For support or an issue report, use the [Actor Store page](https://apify.com/devcake/alibaba-products-scraper) and include the run ID, input, status, and relevant failure details from run logs. Do not include credentials or private supplier data.

### Privacy, legal, and affiliation

This Actor requests public Alibaba pages and stores the resulting observations in your Apify Dataset and Key-Value Store. It does not request or store Alibaba credentials. You are responsible for using the Actor lawfully, respecting Alibaba's terms, robots directives, applicable privacy rules, and any rights attached to the collected content.

This Actor is an independent community tool and is not affiliated with, endorsed by, or sponsored by Alibaba.com or Alibaba Group. Product, supplier, price, rating, and availability values are public observations at scrape time and are not guarantees.

### Local validation

```bash
npm install
apify validate-schema
npm test
apify run --purge --input-file ./test/inputs/pagination.json
npm run validate
```

The repository's QA inputs exercise default fields, pagination, multiple sources, filters and sorting, media opt-out, developer options, successful empty output, and fail-closed errors without requiring a live Alibaba request. Issue counts stay in the run summary, and details stay in run logs.

Run summaries include the required `status`, `runStatus`, and `dataStatus` fields. `status` and `runStatus` are `SUCCEEDED` when source-backed rows were saved or a run completed cleanly with no matches; they are `FAILED` only when a real failure occurs before any rows are saved. `dataStatus` is `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. Failure details stay in the run logs; key-value summaries retain counts only.

# Actor input Schema

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

Product keywords. Each query becomes an independent public Alibaba product-search source when source URLs are not supplied.

## `searchQuery` (type: `string`):

Compatibility alias used as the first generated search query.

## `sourceUrls` (type: `array`):

One or more public Alibaba product-search, category, showroom, or product-detail URLs. These take precedence over generated queries.

## `startUrls` (type: `array`):

Compatibility alias for sourceUrls.

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

Compatibility alias for sourceUrls.

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

Compatibility alias for sourceUrls.

## `url` (type: `string`):

Compatibility alias for one public Alibaba source URL.

## `startPage` (type: `integer`):

One-based page at which each source starts.

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

Compatibility alias for startPage.

## `maxPages` (type: `integer`):

Maximum ordered public result pages to request for each source. Observed next-page links and safe page-number fallbacks are supported.

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

Compatibility alias for maxPages.

## `maxProducts` (type: `integer`):

Maximum unique product observations emitted after aggregation, filters, and sorting.

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

Compatibility alias for maxProducts.

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

Compatibility alias for maxProducts.

## `max_items` (type: `integer`):

Compatibility alias for maxProducts.

## `sortBy` (type: `string`):

Stable ordering applied after all sources and pages are aggregated.

## `textQuery` (type: `string`):

Keep products whose title, supplier, country, category, badge, promotion, or description contains this text.

## `supplierCountries` (type: `array`):

Keep products whose observed supplier country/location contains one of these values, for example CN, IN, or China.

## `countries` (type: `array`):

Compatibility alias for supplierCountries.

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

Keep products whose observed price is in this three-letter currency code.

## `minPrice` (type: `number`):

Keep products whose observed price range reaches this value.

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

Compatibility alias for minPrice.

## `maxPrice` (type: `number`):

Keep products whose observed price range starts at or below this value.

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

Compatibility alias for maxPrice.

## `minMoq` (type: `number`):

Keep products with a minimum order quantity at or above this value.

## `moqMin` (type: `number`):

Compatibility alias for minMoq.

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

Compatibility alias for minMoq.

## `maxMoq` (type: `number`):

Keep products with a minimum order quantity at or below this value.

## `moqMax` (type: `number`):

Compatibility alias for maxMoq.

## `moq_max` (type: `number`):

Compatibility alias for maxMoq.

## `minSupplierRating` (type: `number`):

Keep products whose observed supplier rating meets this threshold.

## `minProductRating` (type: `number`):

Keep products whose observed product rating meets this threshold.

## `minReviewCount` (type: `number`):

Keep products with at least this many public reviews.

## `minSoldCount` (type: `number`):

Keep products with at least this many public sold/order signals.

## `minSupplierYears` (type: `number`):

Keep products from suppliers with at least this many observed years.

## `minReorderRatePercent` (type: `number`):

Keep products whose public reorder-rate badge meets this threshold.

## `requiredBadges` (type: `array`):

Keep products containing every requested public badge or selling point.

## `requiredCertifications` (type: `array`):

Keep products containing every requested certification text.

## `tradeAssurance` (type: `boolean`):

Keep only product cards marked with public Trade Assurance evidence.

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

Compatibility alias for tradeAssurance.

## `verifiedSupplier` (type: `boolean`):

Keep only cards with public verified-supplier evidence.

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

Compatibility alias for verifiedSupplier.

## `alibabaGuaranteed` (type: `boolean`):

Keep only cards with public Alibaba Guaranteed evidence.

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

Compatibility alias for alibabaGuaranteed.

## `certifiedOnly` (type: `boolean`):

Keep only cards with a public certified badge.

## `deduplicate` (type: `boolean`):

Merge repeated product IDs or canonical product URLs across pages and sources.

## `includeMedia` (type: `boolean`):

Include product-scoped public Alibaba CDN images only; country flags and UI assets are excluded.

## `includeAttributes` (type: `boolean`):

Include observed attribute, variation, and specification fields.

## `includeSupplierDetails` (type: `boolean`):

Include supplier identity/profile, country, years, ratings, badges, and public trust signals.

## `renderJavaScript` (type: `boolean`):

Use a real Chromium page so dynamically rendered Alibaba result cards and pagination are available. Disable only for static fixtures or direct HTML testing.

## `useBrowser` (type: `boolean`):

Compatibility alias for renderJavaScript.

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

Respectful delay before each live public request.

## `pageDelayMs` (type: `integer`):

Compatibility alias for requestDelayMs.

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

Maximum independent source crawls. Pages within a source remain ordered.

## `concurrency` (type: `integer`):

Compatibility alias for maxConcurrency.

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

Retries for transient public request failures.

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

Compatibility alias for maxRequestRetries.

## `requestTimeoutSecs` (type: `integer`):

Timeout for one public page request.

## `timeoutSecs` (type: `integer`):

Compatibility alias for requestTimeoutSecs.

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

Compatibility alias for requestTimeoutSecs.

## `maxResponseBytes` (type: `integer`):

Safety cap for downloaded or rendered HTML.

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

Compatibility alias for maxResponseBytes.

## `browserWaitMs` (type: `integer`):

Additional wait for dynamically rendered cards after DOM content loads.

## `renderWaitMs` (type: `integer`):

Compatibility alias for browserWaitMs.

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

Optional standard Apify Proxy routing. Proxying changes the route only; it does not bypass CAPTCHAs or access controls.

## `userAgent` (type: `string`):

Optional transparent browser User-Agent for public requests.

## `locale` (type: `string`):

Locale used by the browser context, such as en-US.

## Actor input object example

```json
{
  "queries": [
    "wireless earbuds"
  ],
  "startPage": 1,
  "maxPages": 2,
  "maxProducts": 300,
  "sortBy": "relevance",
  "tradeAssurance": false,
  "verifiedSupplier": false,
  "alibabaGuaranteed": false,
  "certifiedOnly": false,
  "deduplicate": true,
  "includeMedia": true,
  "includeAttributes": true,
  "includeSupplierDetails": true,
  "renderJavaScript": true,
  "requestDelayMs": 1000,
  "maxConcurrency": 2,
  "maxRequestRetries": 3,
  "requestTimeoutSecs": 60,
  "maxResponseBytes": 20000000,
  "browserWaitMs": 1500,
  "locale": "en-US"
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

## `sourceMetadata` (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("w3crawler/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("w3crawler/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 w3crawler/alibaba-products-scraper --silent --output-dataset

```

## MCP server setup

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