# 🛒 AliExpress Products Scraper (`api-empire/aliexpress-products-scraper`) Actor

🛒 AliExpress Products Scraper extracts product details from AliExpress—prices, titles, images & specs—fast and reliable. 🚀 Perfect for dropshipping, price tracking, market research & catalog building. 📦 Export data easily for smarter decisions.

- **URL**: https://apify.com/api-empire/aliexpress-products-scraper.md
- **Developed by:** [API Empire](https://apify.com/api-empire) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🛒 AliExpress Products Scraper

Scrape **AliExpress search and category pages** at scale and turn them into clean, structured product data — prices, discounts, ratings, review counts, order volume, images, and promo tags. Perfect for product research, dropshipping, price monitoring, and finding best-sellers.

Give it **keywords** (e.g. `wireless earbuds`) and/or **ready-made AliExpress URLs**, and it returns one row per product.

---

### ✨ Why Choose This Actor?

- 🧠 **Search + URL input** — type keywords *or* paste AliExpress search / category / item URLs (bulk supported).
- 🌐 **Smart proxy ladder** — starts on a **direct** connection and only escalates to **datacenter → residential** proxies if AliExpress blocks the request. Once escalated, it sticks to the working tier. Every transition is logged.
- 💸 **Real discounts & promos** — current price, original price, discount %, and promotional tags (bulk-price, new-shopper deals).
- ⭐ **Real review counts** — optional enrichment fills the true review count from AliExpress's public feedback service.
- 💾 **Live results** — every product is saved the moment it's found; a crash never loses collected data.
- 🔁 **Anti-bot resilient** — rotating browser fingerprints + retry with backoff ride out transient blocks.

---

### 🔑 Key Features

| Feature | Description |
|--------|-------------|
| Search queries | One keyword per line → AliExpress search pages |
| Direct URLs | Search, category, or item URLs (bulk / file upload) |
| Sort order | Default, price ↑, price ↓, best-selling |
| Max products | Cap per source |
| Review enrichment | Optional real review counts + rating backfill |
| Proxy ladder | direct → datacenter → residential (sticky) |
| Dataset views | Overview, Pricing, Ratings & Sales, Media |

---

### 📥 Input

```json
{
  "searchQueries": ["wireless earbuds", "smartphone"],
  "startUrls": [
    { "url": "https://www.aliexpress.com/category/100003109/women-clothing.html" }
  ],
  "sortBy": "orders",
  "maxItems": 50,
  "fetchReviews": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
````

| Field | Type | Description |
|------|------|-------------|
| `searchQueries` | array | Keywords, one per line. **Required if no URLs.** |
| `startUrls` | array | AliExpress search / category / item URLs (bulk). |
| `sortBy` | string | `default`, `price_asc`, `price_desc`, `orders`. |
| `maxItems` | integer | Max products per source (default 50). |
| `fetchReviews` | boolean | Fetch real review counts (default `true`). |
| `proxyConfiguration` | object | Apify proxy settings; country recommended `US`. |

> At least one of `searchQueries` or `startUrls` must be provided.

***

### 📤 Output

Each product is one dataset record:

```json
{
  "productId": "3256811621288203",
  "title": "Pro 3 Bluetooth noise cancelling wireless earphones …",
  "productUrl": "https://www.aliexpress.us/item/3256811621288203.html",
  "searchQuery": "wireless earbuds",
  "scrapedAt": "2026-06-18T09:45:24.005Z",
  "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/….png",
  "imageWidth": 350,
  "imageHeight": 350,
  "priceCurrent": "US $19.87",
  "priceCurrentMin": 19.87,
  "priceCurrentMax": 19.87,
  "priceOriginal": "US $49.75",
  "priceOriginalMin": 49.75,
  "priceOriginalMax": 49.75,
  "priceDiscount": 60,
  "priceCurrency": "$",
  "ratingValue": 4.9,
  "reviewCount": 127,
  "soldCount": 3,
  "soldDescription": "3,000+ sold",
  "tags": "Save $29.88"
}
```

| Field | Description |
|------|-------------|
| `productId` | AliExpress product ID |
| `title` | Product title |
| `productUrl` | Canonical item URL |
| `searchQuery` | Source keyword / category term |
| `scrapedAt` | UTC timestamp (ISO 8601) |
| `imageUrl` / `imageWidth` / `imageHeight` | Main image |
| `priceCurrent*` | Current/sale price (formatted + min/max) |
| `priceOriginal*` | Original price (formatted + min/max) |
| `priceDiscount` | Discount percentage |
| `priceCurrency` | Currency symbol |
| `ratingValue` | Star rating |
| `reviewCount` | Review count (filled when `fetchReviews` is on) |
| `soldCount` / `soldDescription` | Orders / units sold |
| `tags` | Promotional selling-point tags |

The Output tab provides four ready-made views: **🛍️ Overview**, **💰 Pricing & Discounts**, **⭐ Ratings & Sales**, and **🖼️ Media**.

***

### 🚀 How to Use (Apify Console)

1. Log in at <https://console.apify.com> → **Actors**.
2. Open **AliExpress Products Scraper**.
3. Enter **Search Queries** and/or **URLs**, pick a **Sort** order and **Max Products**.
4. (Optional) Adjust **Proxy Configuration** — `US` is recommended.
5. Click **Start** and watch products stream into the log in real time.
6. Open the **Output** tab and export to **JSON / CSV / XLSX**.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"searchQueries":["wireless earbuds"],"maxItems":50,"sortBy":"orders"}'
```

***

### 💡 Best Use Cases

- 🛍️ Dropshipping product research & winner-finding
- 📉 Price & discount monitoring over time
- 📊 Market and competitor analysis
- 🔎 Building product catalogs / feeds

***

### 💳 Pricing

This Actor uses **Pay Per Event**: you're charged per **product result** returned. No results, no charge for results. Underlying platform usage (compute, proxies) follows your plan.

***

### ❓ FAQ

**Do I need a proxy?** The Actor tries a direct connection first and automatically escalates to datacenter, then residential proxies only if AliExpress blocks it. Leaving Apify Proxy enabled (US) gives the most reliable results.

**Why is `reviewCount` sometimes null?** Listing cards don't include review counts. With `fetchReviews` on, the Actor fetches them from AliExpress's public feedback service; if that call fails for a product, the field stays null.

**Can I scrape a whole category?** Yes — paste a `/category/<id>/<name>.html` URL into **URLs**.

**What currency are prices in?** USD by default (US region/locale). Prices are geo-driven and pinned via cookie.

***

### ⚖️ Legal & Compliance

Data is collected only from **publicly available** AliExpress pages. You are responsible for complying with applicable laws (GDPR, CCPA), AliExpress Terms of Service, and reasonable rate limits.

### 🆘 Support & Feedback

Open an issue on the Actor's **Issues** tab with your run ID and input, and we'll help.

# Actor input Schema

## `searchQueries` (type: `array`):

List of keywords to search on AliExpress — one per line. Each keyword becomes an AliExpress search. ✅ Required if no URLs are provided below.

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

Ready-made AliExpress search, category, or item URLs (bulk supported — paste a list or upload a file). Scraped alongside your search queries.

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

Ordering applied to every search / category page.

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

Maximum number of products to collect per search query / URL.

## `fetchReviews` (type: `boolean`):

Make one extra lightweight call per product to fill the real review count (and backfill rating when the card lacks one). Turn off for a faster, lighter run.

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

The scraper starts on a DIRECT connection and only escalates to a datacenter → residential proxy if AliExpress blocks it. US is recommended for English listings & USD prices.

## Actor input object example

```json
{
  "searchQueries": [
    "smartphone"
  ],
  "startUrls": [
    "https://www.aliexpress.us/w/wholesale-laptop.html?spm=a2g0o.home.search.0"
  ],
  "sortBy": "default",
  "maxItems": 10,
  "fetchReviews": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "searchQueries": [
        "smartphone"
    ],
    "startUrls": [
        "https://www.aliexpress.us/w/wholesale-laptop.html?spm=a2g0o.home.search.0"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("api-empire/aliexpress-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 = {
    "searchQueries": ["smartphone"],
    "startUrls": ["https://www.aliexpress.us/w/wholesale-laptop.html?spm=a2g0o.home.search.0"],
}

# Run the Actor and wait for it to finish
run = client.actor("api-empire/aliexpress-products-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "smartphone"
  ],
  "startUrls": [
    "https://www.aliexpress.us/w/wholesale-laptop.html?spm=a2g0o.home.search.0"
  ]
}' |
apify call api-empire/aliexpress-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=api-empire/aliexpress-products-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🛒 AliExpress Products Scraper",
        "description": "🛒 AliExpress Products Scraper extracts product details from AliExpress—prices, titles, images & specs—fast and reliable. 🚀 Perfect for dropshipping, price tracking, market research & catalog building. 📦 Export data easily for smarter decisions.",
        "version": "0.1",
        "x-build-id": "Ue4XwYOmMl24ecdw2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/api-empire~aliexpress-products-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-api-empire-aliexpress-products-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/api-empire~aliexpress-products-scraper/runs": {
            "post": {
                "operationId": "runs-sync-api-empire-aliexpress-products-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/api-empire~aliexpress-products-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-api-empire-aliexpress-products-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchQueries"
                ],
                "properties": {
                    "searchQueries": {
                        "title": "🔍 Search Queries",
                        "type": "array",
                        "description": "List of keywords to search on AliExpress — one per line. Each keyword becomes an AliExpress search. ✅ Required if no URLs are provided below.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "🔗 Product / Search / Category URLs",
                        "type": "array",
                        "description": "Ready-made AliExpress search, category, or item URLs (bulk supported — paste a list or upload a file). Scraped alongside your search queries.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "sortBy": {
                        "title": "↕️ Sort By",
                        "enum": [
                            "default",
                            "price_asc",
                            "price_desc",
                            "orders"
                        ],
                        "type": "string",
                        "description": "Ordering applied to every search / category page.",
                        "default": "default"
                    },
                    "maxItems": {
                        "title": "📦 Max Products per Source",
                        "minimum": 1,
                        "maximum": 200000,
                        "type": "integer",
                        "description": "Maximum number of products to collect per search query / URL.",
                        "default": 10
                    },
                    "fetchReviews": {
                        "title": "⭐ Fetch Review Counts",
                        "type": "boolean",
                        "description": "Make one extra lightweight call per product to fill the real review count (and backfill rating when the card lacks one). Turn off for a faster, lighter run.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "🌐 Proxy Configuration",
                        "type": "object",
                        "description": "The scraper starts on a DIRECT connection and only escalates to a datacenter → residential proxy if AliExpress blocks it. US is recommended for English listings & USD prices.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
