# AliExpress Scraper (`chartedsea/aliexpress-scraper`) Actor

Scrape AliExpress search results, categories, products, reviews, sellers, and
marketplace discovery feeds without maintaining anti-bot headers, signatures,
cookies, browser sessions, or mobile API behavior.

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

## Pricing

from $2.72 / 1,000 aliexpress record scrapeds

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

## AliExpress Scraper

Scrape AliExpress search results, categories, products, reviews, sellers, and
discovery feeds without maintaining anti-bot headers, signatures, cookies, or
browser sessions.

The Actor accepts AliExpress URLs with a two-letter country subdomain. Each
request is processed independently and produces one row in the default dataset.

### Quick start

```json
{
  "requests": [
    {
      "url": "https://sg.aliexpress.com/w/wholesale-wireless-earbuds.html?page=1"
    }
  ]
}
```

A run accepts 1 to 100 requests. The Actor waits for every request to reach a
terminal state before publishing results and charging finalized events.

### Country routing

Every submitted URL must use a two-letter ISO country prefix:

```text
https://${countryCode}.aliexpress.com/...
```

For example, use `sg.aliexpress.com` for Singapore or `gb.aliexpress.com` for
the United Kingdom. The prefix selects the task country and proxy location.
Do not submit `www.aliexpress.com`, because it does not identify a task country.
The selected country must have a configured proxy.

### Input

Shared options apply to every request. A value inside an individual request
overrides the shared value for that request.

- `requests` - Required array containing 1 to 100 AliExpress requests.
- `emulateMobileDevice` - Emulate mobile web traffic. Default: `false`.
- `language` - Optional request language.

Per-request fields:

- `url` - Required AliExpress URL with a two-letter country subdomain.
- `method` - `GET`. Default: `GET`.
- Any shared option above - Overrides that option for this request.

`cleanResponseBody` is not supported. Unknown request options are passed to the
backend for forward compatibility.

#### Product search and Seller products options

These options affect only Product search and Seller products requests, whether
supplied at the input or request level:

- `productListing_crawlNextPages` - Crawl subsequent listing pages.
- `productListing_crawlNextPages_maxPages` - Maximum listing pages.
- `productListing_crawlNextPages_maxUniqueProducts` - Maximum unique products.
- `productListing_crawlNextPages_stopWhenNewPageOnlyContainsDuplicates` - Stop
  on a page containing only products already collected. Default: `true`.
- `productListing_crawlNextPages_stopWhenNoMorePagesIsTrue` - Stop when
  AliExpress reports no more pages. Default: `true`.

### Supported AliExpress APIs

#### Product search by keyword

```text
https://${countryCode}.aliexpress.com/w/wholesale-${keywordSlug}.html?page=${page}
```

```json
{
  "requests": [
    { "url": "https://sg.aliexpress.com/w/wholesale-wireless-earbuds.html?page=1" }
  ]
}
```

[Keyword products example](https://www.chartedsea.com/assets/files/keyword_products-e4f1621db8e82eb64a9aed75a4616960.json)

#### Product search by category

```text
https://${countryCode}.aliexpress.com/category/${categoryId}/${categorySlug}.html?page=${page}
```

```json
{
  "requests": [
    { "url": "https://sg.aliexpress.com/category/200003482/women-clothing.html?page=1" }
  ]
}
```

[Category products example](https://www.chartedsea.com/assets/files/category_products-5a495ed788c2b205ba40a4cec57d2be9.json)

#### Seller products

```text
https://${countryCode}.aliexpress.com/store/${storeId}?page=${page}
```

The `page` parameter selects seller products. Without `page`, the URL selects
seller details.

[Seller products example](https://www.chartedsea.com/assets/files/seller_products-ede2e54fbff3969bdb8c3d3165652ecb.json)

#### Product details

```text
https://${countryCode}.aliexpress.com/item/${productId}.html
```

```json
{
  "requests": [
    { "url": "https://sg.aliexpress.com/item/1005011672102938.html" }
  ]
}
```

[Product detail example](https://www.chartedsea.com/assets/files/product_detail-e3f6d086154cd3e34c940c81a1c7ad2c.json)

#### Product reviews

```text
https://${countryCode}.aliexpress.com/pdp/review/getReviewList?itemId=${productId}&page=${page}&filter=${filter}&sort=complex_default
```

Supported review parameters:

- `page` or `pageNo` - One-based page. Default: `1`.
- `filter` - `all` or `image`. Default: `all`.
- `sort` - Only `complex_default` is supported.
- `pageSize` - Use `10` for `all` or `6` for `image` when supplied.

Star filters and alternative sort modes are not supported.

[Product reviews example](https://www.chartedsea.com/assets/files/product_reviews-cd8da8dd88bcc8f4d979bdd287e60e58.json)

#### Seller details

```text
https://${countryCode}.aliexpress.com/store/${storeId}
```

Do not add `page` to a seller-detail URL.

[Seller detail example](https://www.chartedsea.com/assets/files/seller_detail-e1ae057997e4129a4b2f879919b9f557.json)

#### Category navigation

```text
https://${countryCode}.aliexpress.com/h5/mtop.lazada.guided.shopping.categories.categorieslpcommon/1.0/
```

This endpoint extracts homepage category navigation for the selected country,
not a complete category tree.

[Category navigation example](https://www.chartedsea.com/assets/files/category_tree-2fb48c5406f3ede10ddaf8d7efec230f.json)

#### Keyword listing

```text
https://${countryCode}.aliexpress.com/fn/seo-alphabet/index?channel=popular&pageNo=${page}
```

The `channel` value must be `popular`.

[Keyword listing example](https://www.chartedsea.com/assets/files/keyword_listing-9deaac3f6221709c804ac5b91d946c6f.json)

### Unsupported APIs

AliExpress does not support:

- Seller promoted products.
- Product Reviews V2. Use Product Reviews instead.
- Seller listing through `sitemap-sellers.xml`.

Unsupported requests are rejected before execution and are not billed.

### Output

The default dataset contains one row per input request:

```json
{
  "marketplaceRunUuid": "...",
  "taskUuid": "...",
  "url": "https://sg.aliexpress.com/item/1005011672102938.html",
  "status": "SUCCESS",
  "responseBody": {}
}
```

Output fields:

- `marketplaceRunUuid` - Marketplace run ID.
- `taskUuid` - Task ID.
- `url` - Original requested URL.
- `status` - Terminal request status.
- `responseBody` - Native AliExpress response for a successful request.
- `error` - Error description for an unsuccessful request.

Rows remain in the same logical request order. One failed request does not hide
successful rows from the same batch.

### Related Actors

- [Lazada Scraper](https://apify.com/chartedsea/lazada-scraper) - Scrape Lazada searches, products, ratings, sellers, and categories.
- [Shopee Scraper](https://apify.com/chartedsea/shopee-api-scraper) - Scrape Shopee Web searches, products, ratings, shops, categories, and recommendations.

### Pricing and charging

Pay as you go with no subscription or monthly minimum:

- Successful AliExpress request: $0.00272 per request, or $2.72 per 1,000
  successful requests.
- Proxy usage: $0.00013 per started block of 100 proxy units.
- Actor start: $0.00005 per GB of Actor memory, with a minimum of one event.
- Dataset result: $0.00001 per result written to the default dataset.

This is a PAY\_PER\_EVENT Actor. It charges one `csea-scrape-aliexpress` event per
successful AliExpress request and finalized `csea-proxy-unit` events for proxy
usage. Failed or cancelled requests are not charged as successful AliExpress
requests. Use Apify's maximum total charge setting to bound an execution's cost.

### Graceful aborts and retries

A graceful Apify abort cancels known scraping tasks and waits for backend
finalization. Interrupted Actor executions persist their marketplace-run,
charging, and output state so they can resume without intentionally duplicating
charges or dataset rows.

### Operational guidance

- Treat response fields and live totals as marketplace-controlled data.
- Monitor success rates during major sales and high-traffic periods.
- Prefer bounded listing crawls over unbounded multi-page requests.

# Actor input Schema

## `requests` (type: `array`):

One to 100 AliExpress requests. Use a two-letter country subdomain such as sg.aliexpress.com.

## `emulateMobileDevice` (type: `boolean`):

Whether to emulate mobile web traffic.

## `language` (type: `string`):

Language for this request.

## `productListing_crawlNextPages` (type: `boolean`):

Whether to crawl subsequent product-listing pages.

## `productListing_crawlNextPages_maxPages` (type: `integer`):

Maximum number of product-listing pages to crawl.

## `productListing_crawlNextPages_maxUniqueProducts` (type: `integer`):

Maximum number of unique products to collect.

## `productListing_crawlNextPages_stopWhenNewPageOnlyContainsDuplicates` (type: `boolean`):

Stop when a listing page contains only products already collected.

## `productListing_crawlNextPages_stopWhenNoMorePagesIsTrue` (type: `boolean`):

Stop when the marketplace reports that no more listing pages exist.

## Actor input object example

```json
{
  "requests": [
    {
      "url": "https://sg.aliexpress.com/w/wholesale-wireless-earbuds.html?page=1"
    }
  ],
  "emulateMobileDevice": false,
  "language": "en",
  "productListing_crawlNextPages": false,
  "productListing_crawlNextPages_stopWhenNewPageOnlyContainsDuplicates": true,
  "productListing_crawlNextPages_stopWhenNoMorePagesIsTrue": true
}
```

# Actor output Schema

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

Complete result rows in the 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 = {
    "requests": [
        {
            "url": "https://sg.aliexpress.com/w/wholesale-wireless-earbuds.html?page=1"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("chartedsea/aliexpress-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 = { "requests": [{ "url": "https://sg.aliexpress.com/w/wholesale-wireless-earbuds.html?page=1" }] }

# Run the Actor and wait for it to finish
run = client.actor("chartedsea/aliexpress-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 '{
  "requests": [
    {
      "url": "https://sg.aliexpress.com/w/wholesale-wireless-earbuds.html?page=1"
    }
  ]
}' |
apify call chartedsea/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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