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

🛒 AliExpress Products Scraper automatically extracts product data from AliExpress for pricing, catalog building & market research. ⚡️ Fast, reliable, and easy to use—perfect for e-commerce analytics, dropshipping & competitive monitoring.

- **URL**: https://apify.com/scraper-engine/aliexpress-products-scraper.md
- **Developed by:** [Scraper Engine](https://apify.com/scraper-engine) (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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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("scraper-engine/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("scraper-engine/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 scraper-engine/aliexpress-products-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/HmDdgJlK1a30CULdI/builds/DidxVysczvszOFaQb/openapi.json
