# AliExpress Product & Price Scraper (`reventadata/aliexpress-scraper`) Actor

Fast, reliable AliExpress scraper for products, prices, discounts, and ratings. Extracts structured e-commerce data with proxy-resilient unblocker support.

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

## Pricing

from $1.00 / 1,000 results

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 Product & Price Scraper

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to AliExpress or Alibaba Group. "AliExpress" is a trademark of its
> respective owner and is used here only to describe what this tool reads. It reads the same
> public search pages a browser does.

Fast, lightweight scraper that extracts product listings, prices, customer ratings, units sold, and merchant metadata from AliExpress search results across global locales into clean JSON/CSV datasets.

### What does it do?

Searches AliExpress across any keyword or category and extracts structured listing data:

- **Product Details:** Product ID, title, canonical URL, thumbnail image, and gallery image links.
- **Pricing & Discounts:** Current sale price, list price, and discount percentage across currencies (USD, EUR, GBP).
- **Social Proof:** Customer star rating and units sold.
- **Shipping & Offers:** Free shipping indicators and delivery service tags.
- **Clean Output:** Normalized numeric fields for sorting and programmatic analysis.

### Why use it?

- **Zero Browser Overhead:** High-throughput HTTP execution backed by Apify Unblocker proxy integration to avoid slow browser instances and excessive memory charges.
- **512 MB Standard:** Engineered to run smoothly on a minimal 512 MB memory footprint.
- **Privacy-First:** Strictly collects public merchant and product data; never extracts personal phone numbers or buyer identities.
- **Configurable Quality Filters:** Filter results by minimum star rating, minimum units sold, or specific price bands directly at the crawl stage.

### How to use it

1. Enter search queries in `searchQueries` (e.g. `["wireless earbuds", "mechanical keyboard"]`).
2. Specify target ship-to `country` and `currency` (defaults to `US` and `USD`).
3. Set optional price, rating, or sold thresholds.
4. Run the Actor and export the dataset to JSON, CSV, or Excel.

#### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | array | `["phone case"]` | List of search keywords or target queries. |
| `maxItems` | integer | `60` | Maximum total products to collect. |
| `maxPages` | integer | `5` | Maximum pagination pages per query. |
| `country` | string | `"US"` | Ship-to destination country code (e.g. US, ES, FR, DE, UK). |
| `currency` | string | `"USD"` | Price currency code (e.g. USD, EUR, GBP). |
| `minPrice` | number | - | Optional minimum price filter. |
| `maxPrice` | number | - | Optional maximum price filter. |
| `minRating` | number | - | Minimum star rating threshold (0.0 to 5.0). |
| `minSold` | integer | - | Minimum sold count threshold. |
| `proxyConfiguration` | object | `UNBLOCKER` | Proxy configuration (Unblocker recommended). |

#### Sample Input

```json
{
    "searchQueries": ["mechanical keyboard"],
    "maxItems": 40,
    "country": "US",
    "currency": "USD",
    "minRating": 4.5,
    "minSold": 100
}
```

#### Sample Output

```json
{
    "id": "1005010497678198",
    "title": "Auriculares Inalámbricos Bluetooth 5.3 HiFi Estéreo Resistente al Sudor Cascos Calgante Deportivo TEISCHE SW-08",
    "url": "https://www.aliexpress.com/item/1005010497678198.html",
    "price": 7.71,
    "originalPrice": null,
    "discountPercent": null,
    "currency": "EUR",
    "rating": 4.9,
    "soldCount": 38,
    "soldText": "38 vendidos",
    "thumbnailUrl": "https://ae-pic-a1.aliexpress-media.com/kf/E8a248d80dbf340dfa7bb04ad6b8d07a0h.jpg_480x480q75.jpg_.avif",
    "galleryImages": [
        "https://ae-pic-a1.aliexpress-media.com/kf/E8a248d80dbf340dfa7bb04ad6b8d07a0h.jpg_480x480q75.jpg_.avif",
        "https://ae-pic-a1.aliexpress-media.com/kf/Eb36c445f517d42efa7b4f1b916048f2ef.jpg_480x480q75.jpg_.avif"
    ],
    "shippingDisplay": "Envío gratis a partir de 10,9€",
    "isFreeShipping": true,
    "matchedKeyword": "wireless earbuds",
    "scrapedAt": "2026-10-16T17:05:13.000Z"
}
```

### Privacy & Compliance

This Actor extracts exclusively public catalog information from search result cards. Private seller contact details, personal phone numbers, and individual buyer identities are excluded by design.

# Actor input Schema

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

List of keywords or search queries to run on AliExpress.

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

Total maximum number of product listings to scrape and save.

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

Maximum number of pagination pages to walk per query.

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

Destination country code (ISO 3166-1 alpha-2, e.g. US, ES, FR, DE, UK).

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

Currency code for prices (e.g. USD, EUR, GBP).

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

Optional minimum price filter.

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

Optional maximum price filter.

## `minRating` (type: `number`):

Optional minimum star rating threshold (e.g. 4.5).

## `minSold` (type: `integer`):

Optional minimum sold units threshold (e.g. 50).

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

Proxy configuration. Uses Apify Unblocker by default to bypass bot defenses.

## Actor input object example

```json
{
  "searchQueries": [
    "phone case"
  ],
  "maxItems": 5,
  "maxPages": 1,
  "country": "US",
  "currency": "USD",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}
```

# Actor output Schema

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

Items scraped from the target website.

# 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": [
        "phone case"
    ],
    "maxItems": 5,
    "maxPages": 1,
    "country": "US",
    "currency": "USD",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "UNBLOCKER"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/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 = {
    "searchQueries": ["phone case"],
    "maxItems": 5,
    "maxPages": 1,
    "country": "US",
    "currency": "USD",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["UNBLOCKER"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/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 '{
  "searchQueries": [
    "phone case"
  ],
  "maxItems": 5,
  "maxPages": 1,
  "country": "US",
  "currency": "USD",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}' |
apify call reventadata/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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