# Aliexpress Scraper (`khnaami/aliexpress-scraper`) Actor

AliExpress Scraper: Extract product listings, real order counts, live discount prices, customer ratings, image reviews, SKU variations, seller feedback, and shipping methods at scale. Ideal for dropshipping research, finding viral winning items, and competitor retail price tracking online.

- **URL**: https://apify.com/khnaami/aliexpress-scraper.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 85.7% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Dropshipping Scraper (Winning Products, Orders & Shipping)

Extract live AliExpress products, sales order volume, active discounted prices, customer ratings, SKU variants, store feedback, and shipping methods at scale.

> **Apify Store Short Description (294 chars):**\
> `Scrape AliExpress products, winning dropshipping items, order volume, live prices, customer reviews, variants, and shipping options at scale. Supports sorting by orders (best sellers) and keyword search with residential proxy rotation for Shopify dropshipping, product research, and e-commerce.`

***

### 🌟 Key Features

- 🏆 **Winning Product Discovery**: Sort search results by total orders (`orders`) to uncover top-selling viral dropshipping items.
- 📦 **Order Volume Intelligence**: Captures exact sales numbers (e.g. "5,000+ sold") to measure real market demand.
- 💰 **Discounts & Live Pricing**: Extracts current promotional price, original retail price, and discount percentage (e.g. "-60%").
- 🚚 **Shipping & Delivery Tracking**: Extracts shipping fee ("Free Shipping" vs paid carrier), service method, and estimated delivery dates.
- ⭐ **Seller Credibility**: Extracts store name, positive feedback rating percentage (e.g. "98.4%"), and store followers.
- 🖼️ **HD Gallery Images**: High-resolution product images and review photos for e-commerce advertising.
- 🌍 **Ship-To Geolocation**: Supports custom country targeting (`shipToCountry`) to extract accurate local shipping costs and currencies.
- 🛡️ **Anti-Ban Architecture**: Bypasses AliExpress anti-scraping punisher redirects using Apify residential proxies.

***

### 📥 Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `productUrls` | Array | `["https://www.aliexpress.com/item/..."]` | List of direct AliExpress item links. |
| `searchKeywords` | Array | `[]` | Keywords to search on AliExpress (e.g. `'sunset lamp'`). |
| `sortBy` | String | `"orders"` | Sort order: `orders` (winning products), `default`, `priceAsc`, `priceDesc`, `rating`. |
| `shipToCountry` | String | `"US"` | Country destination code for shipping calculation (e.g. `US`, `GB`, `FR`, `DE`, `SA`). |
| `maxProducts` | Integer | `40` | Maximum product records to extract per keyword. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Apify Proxy settings to bypass IP blocks. |

***

### 📤 Output Data Format

```json
{
  "itemId": "1005006245389123",
  "title": "Sunset Projection Lamp Rainbow Atmosphere Led Night Light for Room Decor",
  "price": 4.89,
  "originalPrice": 12.50,
  "discount": "-61%",
  "currency": "USD",
  "ordersCount": "8,000+ sold",
  "ordersCountNumber": 8000,
  "rating": 4.8,
  "reviewsCount": 1640,
  "storeName": "Lumina Official Store",
  "storeRating": "97.8% positive",
  "shippingFee": "Free Shipping",
  "shippingMethod": "AliExpress Standard Shipping",
  "deliveryDate": "Delivery: Nov 25",
  "thumbnail": "https://ae01.alicdn.com/kf/S123456789.jpg",
  "images": [
    "https://ae01.alicdn.com/kf/S123456789.jpg",
    "https://ae01.alicdn.com/kf/S987654321.jpg"
  ],
  "url": "https://www.aliexpress.com/item/1005006245389123.html",
  "scrapedAt": "2026-11-10T12:10:00.000Z"
}
```

***

### 💡 Practical Dropshipping Use Cases

1. **Winning Product Scouting**: Automate daily searches sorted by order volume to detect breakout consumer trends early.
2. **Shopify Product Import**: Export clean product titles, high-res images, and pricing to populate your Shopify store.
3. **Price Arbitrage & Margin Analysis**: Benchmark supplier costs against Amazon and TikTok Shop retail prices.
4. **Supplier Quality Verification**: Filter out low-rated suppliers by vetting feedback percentages and order counts.

***

### ⚖️ License

Apache-2.0

# Actor input Schema

## `productUrls` (type: `array`):

List of direct AliExpress item links (e.g. https://www.aliexpress.com/item/1005006245389123.html). Leave empty to search by keywords.

## `searchKeywords` (type: `array`):

Keywords to search for products on AliExpress (e.g. 'sunset lamp', 'wireless earbuds').

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

Sort order for search results. Choose 'Orders (Best Selling)' to find trending winning dropship products.

## `shipToCountry` (type: `string`):

Target destination country for shipping prices and currency (e.g. 'US', 'GB', 'FR', 'DE', 'ES', 'SA', 'AE').

## `maxProducts` (type: `integer`):

Maximum number of product listings to extract per search keyword.

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

Use Apify Residential or Datacenter Proxy to bypass AliExpress anti-scraping and geographic redirection.

## Actor input object example

```json
{
  "productUrls": [],
  "searchKeywords": [
    "wireless earbuds"
  ],
  "sortBy": "orders",
  "shipToCountry": "US",
  "maxProducts": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Scraped records stored in the default Apify dataset.

## `overview` (type: `string`):

High-level summary report and execution metrics stored in Key-Value store.

# 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 = {
    "productUrls": [],
    "searchKeywords": [
        "wireless earbuds"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/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 = {
    "productUrls": [],
    "searchKeywords": ["wireless earbuds"],
}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/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 '{
  "productUrls": [],
  "searchKeywords": [
    "wireless earbuds"
  ]
}' |
apify call khnaami/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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