# AliExpress Search Scraper (`samer-samaha/aliexpress-search`) Actor

Scrape AliExpress search results by keyword: title, price, discount %, units sold & images. No API key needed.

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

## Pricing

from $3.00 / 1,000 result delivereds

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 Search Scraper

Scrape AliExpress search results by keyword: title, price, discount %, units sold & images. No API key needed.

### What you get

Every row contains:

- `id`
- `sourceUrl`
- `title`
- `imageUrl`
- `price`
- `originalPrice`
- `currency`
- `unitsSold`
- `discountPercent`
- `scrapedAt`

```json
{
  "id": "https://www.aliexpress.us/item/3256811441313356.html",
  "sourceUrl": "https://www.aliexpress.us/item/3256811441313356.html",
  "title": "2025 MSI Stealth 18 HX AI Gaming Laptop 18 Inch 4K 120Hz MiniLED Screen Netbook Intel Ultra 9-275HX 64GB 2TB RTX5090 Notebook PC",
  "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/S38f22465d71b4fc3b55fd65e1dd3184fw.jpg_480x480q75.jpg_.avif",
  "price": 3682.94,
  "originalPrice": 5951.52,
  "currency": "USD",
  "unitsSold": 15,
  "discountPercent": 38,
  "scrapedAt": "2026-08-21T02:23:29.824Z"
}
```

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `startUrls` | array | yes | Listing pages to scrape. Paste a category or search-results URL from the site — the actor follows pagination from there. |
| `maxItems` | integer | no | Stops the run once this many results have been delivered. AliExpress starts refusing after roughly 3 pages (~36 results) even on residential IPs, so a higher number simply ends the run early rather than costing you more. Default: `60`. |
| `useBrowser` | boolean | no | Leave off unless results come back empty. Off is several times faster and cheaper; turn it on only if the site renders its listings with JavaScript. Default: `false`. |
| `proxyConfiguration` | object | no | AliExpress blocks datacenter IPs outright — it serves them a 2.4 KB challenge page instead of results. Residential proxies are required, not optional, and are the default here. Default: `{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]}`. |

### Use cases

- Dropshipping research — rank candidate products by units sold before listing them.
- Price monitoring — track the current price against the struck-through original over time.
- Competitive analysis — benchmark what a category actually sells for, not what it lists for.

### Pricing

$3.00 per 1,000 results. You are charged once per record written to the dataset, and never for a result you do not receive — validation failures and duplicates are dropped before billing.

**The first 10 results of every run are free**, so you can check that the output has the fields you need before paying for any of it.

### Notes

- Search-results pages only. Product descriptions, specs and reviews are not included.
- Pagination is followed automatically via `?page=N`, up to 60 pages or `maxItems`, whichever comes first.
- `price` is what a buyer pays now; `originalPrice` is the struck-through figure and is null when the item is not discounted.
- `currency` follows the locale AliExpress serves your request, so it is not always USD.
- AliExpress serves datacenter IP ranges differently. If a run returns nothing, remove the proxy setting or switch to residential.

### Support

Open an issue on this Actor if a field stops populating or a run returns nothing. Selector drift is a bug, not a fact of life — these parsers are re-tested weekly against the live site.

# Actor input Schema

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

Listing pages to scrape. Paste a category or search-results URL from the site — the actor follows pagination from there.

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

Stops the run once this many results have been delivered. AliExpress starts refusing after roughly 3 pages (~36 results) even on residential IPs, so a higher number simply ends the run early rather than costing you more.

## `useBrowser` (type: `boolean`):

Leave off unless results come back empty. Off is several times faster and cheaper; turn it on only if the site renders its listings with JavaScript.

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

AliExpress blocks datacenter IPs outright — it serves them a 2.4 KB challenge page instead of results. Residential proxies are required, not optional, and are the default here.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.aliexpress.com/w/wholesale-laptop.html"
    }
  ],
  "maxItems": 60,
  "useBrowser": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All records found in this run.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.aliexpress.com/w/wholesale-laptop.html"
        }
    ],
    "maxItems": 60,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("samer-samaha/aliexpress-search").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 = {
    "startUrls": [{ "url": "https://www.aliexpress.com/w/wholesale-laptop.html" }],
    "maxItems": 60,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("samer-samaha/aliexpress-search").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 '{
  "startUrls": [
    {
      "url": "https://www.aliexpress.com/w/wholesale-laptop.html"
    }
  ],
  "maxItems": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call samer-samaha/aliexpress-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,samer-samaha/aliexpress-search"
        }
    }
}

```

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/UXlvi8dQzdih56jDf/builds/mb4UDKU5nO1LHau3f/openapi.json
