# AliExpress Scraper — Products, Prices, Sold Counts & Sellers (`cryptosignals/aliexpress-scraper`) Actor

Scrape AliExpress search results and product pages: price, original price, discount %, units sold, star rating, review count, seller rating, store name, shipping, and images. Filter by price, country, currency; sort by orders or price. For dropshipping research and price tracking. $0.005/product.

- **URL**: https://apify.com/cryptosignals/aliexpress-scraper.md
- **Developed by:** [Web Data Labs](https://apify.com/cryptosignals) (community)
- **Categories:** E-commerce, Business, Automation
- **Stats:** 120 total users, 9 monthly users, 69.2% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 result 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?

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 Scraper — Products, Prices, Sold Counts & Sellers

Scrape AliExpress product listings, pricing data, seller metrics, and review counts. Handles CloudFront protection, browser fingerprinting, and CAPTCHAs automatically — so you get clean product data without getting blocked mid-run.

### Why AliExpress Data?

AliExpress lists **100M+ products** from millions of sellers worldwide. It's the primary data source for:

- **Dropshipping product sourcing** — find trending products with high sales and good margins
- **Price tracking** — monitor competitor pricing and discount patterns over time
- **Market research** — analyze product niches, pricing strategies, and demand signals
- **Competitive intelligence** — track seller performance, ratings, and inventory

### Use Case: Dropshipping Product Research

Search a niche sorted by `total_tranpro_desc` (most orders) with a price band, and the `soldCount` + `starRating` + `sellerRating` combination tells you in one run which products actually move and which sellers are safe to source from:

```json
{
  "action": "search",
  "query": "posture corrector",
  "sort": "total_tranpro_desc",
  "minPrice": 3,
  "maxPrice": 20,
  "maxItems": 50
}
```

### Use Case: Competitor Price Tracking

Put your competitor's product URLs in `urls` with `action: "product"`, schedule the run daily, and export to Google Sheets. `price` vs `originalPrice` exposes their real discount cadence over time — repricing intelligence for a fraction of a cent per product per day.

### Input Parameters

| Parameter | Type | Required | Default | Description | Example |
|-----------|------|----------|---------|-------------|---------|
| `action` | string | Yes | `"search"` | Scrape mode: `search` for keyword search, `product` for direct URL scraping | `"search"` |
| `query` | string | For search | — | Search keywords | `"bluetooth headphones"` |
| `urls` | array | For product | — | Direct AliExpress product URLs | `["https://aliexpress.com/item/..."]` |
| `maxItems` | integer | No | `5` | Maximum items to return (1–500) | `100` |
| `country` | string | No | `"US"` | Ship-to country (ISO code) — affects prices and availability | `"DE"` |
| `currency` | string | No | `"USD"` | Display currency | `"EUR"` |
| `sort` | string | No | `"default"` | Sort order: `default`, `total_tranpro_desc` (most orders), `price_asc`, `price_desc`, `latest` | `"total_tranpro_desc"` |
| `minPrice` | number | No | — | Minimum price filter | `5` |
| `maxPrice` | number | No | — | Maximum price filter | `50` |
| `proxyConfiguration` | object | No | Apify residential | Proxy settings (residential recommended) | — |

### Output Fields

| Field | Type | Description | Example |
|-------|------|-------------|---------|
| `id` | string | AliExpress product ID | `"1005006234567890"` |
| `title` | string | Product title | `"TWS Wireless Earbuds Bluetooth 5.3"` |
| `price` | number | Current price | `8.99` |
| `originalPrice` | number | Original/list price | `22.00` |
| `discount` | string | Discount percentage | `"59%"` |
| `currency` | string | Price currency | `"USD"` |
| `soldCount` | integer | Total units sold | `15820` |
| `starRating` | number | Average rating (0–5) | `4.7` |
| `reviewCount` | integer | Number of reviews | `3241` |
| `sellerRating` | string | Seller positive feedback rate | `"97.8%"` |
| `shipping` | string | Shipping info | `"Free Shipping"` |
| `store` | string | Store name | `"TechGadgets Official Store"` |
| `storeId` | string | Store ID | `"910234567"` |
| `imageUrl` | string | Main product image URL | `"https://ae01.alicdn.com/kf/..."` |
| `productUrl` | string | Full product page URL | `"https://www.aliexpress.com/item/..."` |

### Example Input

```json
{
    "action": "search",
    "query": "wireless earbuds",
    "maxItems": 50,
    "sort": "total_tranpro_desc",
    "minPrice": 5,
    "maxPrice": 50,
    "country": "US",
    "currency": "USD"
}
```

### Example Output

```json
{
    "id": "1005006234567890",
    "title": "TWS Wireless Earbuds Bluetooth 5.3 HiFi Stereo 40H Battery",
    "price": 8.99,
    "originalPrice": 22.00,
    "discount": "59%",
    "currency": "USD",
    "soldCount": 15820,
    "starRating": 4.7,
    "reviewCount": 3241,
    "sellerRating": "97.8%",
    "shipping": "Free Shipping",
    "store": "TechGadgets Official Store",
    "storeId": "910234567",
    "imageUrl": "https://ae01.alicdn.com/kf/...",
    "productUrl": "https://www.aliexpress.com/item/1005006234567890.html"
}
```

### Using with Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("cryptosignals/aliexpress-scraper").call(run_input={
    "action": "search",
    "query": "mechanical keyboard",
    "maxItems": 30,
    "sort": "total_tranpro_desc",
    "minPrice": 20,
    "maxPrice": 100,
})

for product in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{product['title'][:60]}")
    print(f"  ${product['price']} (was ${product.get('originalPrice', 'N/A')}) — {product.get('soldCount', 0)} sold")
    print(f"  Rating: {product.get('starRating', 'N/A')} — Store: {product.get('store', 'N/A')}")
```

### Using with JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('cryptosignals/aliexpress-scraper').call({
    action: 'search',
    query: 'usb c hub',
    maxItems: 25,
    sort: 'price_asc',
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(p => {
    console.log(`${p.title.slice(0, 50)} — $${p.price} (${p.soldCount} sold)`);
});
```

### Proxy

AliExpress serves different prices and content by region, and blocks datacenter IPs immediately. Residential proxies are required for consistent results, especially at scale.

[ThorData](https://thordata.partnerstack.com/partner/0a0x4nzh) offers residential proxies in 195+ countries that handle AliExpress's aggressive anti-bot measures reliably.

### 💰 Pricing

Pay-per-result: **$0.005 per product scraped**. No compute-unit surprises — you pay for data, not runtime.

- 100 products = $0.50
- 1,000 products = $5.00
- Daily tracking of 50 competitor products = ~$7.50/month

### Integrations

Connect this actor to **Google Sheets**, **Airtable**, **BigQuery**, **Slack**, **Zapier**, **Make**, or use the [Apify API](https://docs.apify.com/api) for programmatic access and webhook notifications.

### ⭐ Leave a Review

If this actor saved you time, **please take 30 seconds to leave a review**: 👉 https://apify.com/cryptosignals/aliexpress-scraper/reviews

Reviews are the primary way this actor reaches new users and gets maintained and updated.

***

Built by [cryptosignals](https://apify.com/cryptosignals)

# Actor input Schema

## `action` (type: `string`):

Type of scraping action: 'search' for keyword search, 'product' for detailed product page scraping

## `query` (type: `string`):

Search keywords (required when action is 'search'). Example: 'bluetooth headphones'

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

List of AliExpress product URLs to scrape (required when action is 'product')

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

Maximum number of items to return

## `country` (type: `string`):

ISO country code for shipping destination. Affects prices and availability. Examples: US, GB, DE, FR

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

Currency code for displayed prices. Examples: USD, EUR, GBP

## `sort` (type: `string`):

Sort order for search results

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

Filter products with price above this value

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

Filter products with price below this value

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

Proxy settings. Default Apify (datacenter) proxy works well and is far cheaper. Only switch to residential groups if you see blocks.

## Actor input object example

```json
{
  "action": "search",
  "query": "bluetooth headphones",
  "maxItems": 5,
  "country": "US",
  "currency": "USD",
  "sort": "default",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "action": "search",
    "query": "bluetooth headphones",
    "maxItems": 5,
    "country": "US",
    "currency": "USD",
    "sort": "default",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("cryptosignals/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 = {
    "action": "search",
    "query": "bluetooth headphones",
    "maxItems": 5,
    "country": "US",
    "currency": "USD",
    "sort": "default",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("cryptosignals/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 '{
  "action": "search",
  "query": "bluetooth headphones",
  "maxItems": 5,
  "country": "US",
  "currency": "USD",
  "sort": "default",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call cryptosignals/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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