# AliExpress Search Scraper (products, prices, orders) (`tamnt67/aliexpress-scraper`) Actor

Scrape AliExpress search results: product title, sale price, discount, star rating, orders sold, images, ad flag and product URL as clean JSON or CSV. Search by keyword or paste AliExpress search URLs with filters. No login.

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

## Pricing

from $2.50 / 1,000 product scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Search Scraper (products, prices, orders)

Extract products from **AliExpress search results**. Enter keywords or paste AliExpress search URLs with your filters and get every product with sale price, discount, star rating, number sold, images, sponsored flag and product URL.

Use it for dropshipping and product research, price monitoring, finding best sellers in a niche, competitor tracking or feeding product data into your own tools.

### What you get for each product

| Field | Example |
|-------|---------|
| `productId` / `skuId` | 3256811467917760 / 12000056161162045 |
| `title` | SK Small Headphones Wireless Bluetooth Headset Sport ... |
| `price` / `priceText` / `currency` | 3.94 / US $3.94 / USD |
| `discountPercent` | 87 |
| `rating` | 4.9 |
| `soldText` / `soldCount` | 5K+ sold / 5000 |
| `productType` / `isAd` | natural / false |
| `image` / `images` / `url` | main image, all images, product URL |
| `page` / `query` / `scrapedAt` | 1 / keyword "wireless earbuds" / ISO timestamp |

Download as JSON, CSV, Excel or XML, or read through the API.

### How to use

1. Enter **keywords**, or paste **AliExpress search URLs** such as `https://www.aliexpress.com/w/wholesale-wireless-earbuds.html`. Filters you set on the website (price range, free shipping, ratings, ship from) stay in the URL and are respected.
2. Choose a **sort order**: best match, most orders or price.
3. Decide whether to keep **sponsored items** (flagged `isAd`).
4. Set **max products per keyword or URL**. AliExpress returns 60 products per page.
5. Run. Results appear in the dataset as pages are scraped.

#### Example input

```json
{
  "keywords": ["wireless earbuds", "phone case"],
  "sortBy": "orders",
  "includeAds": false,
  "maxItemsPerQuery": 300
}
```

### Pricing

You pay per product record. Platform usage and residential proxy traffic are included in the price. Set a maximum total charge per run in the run options for a hard cap.

### Tips

- **Most orders** sort is the fastest way to find proven winners for dropshipping.
- Prices and currency follow the proxy country. The default is the United States (USD); change the proxy country in the proxy settings to see local prices.
- Schedule daily runs on your keywords and connect to Google Sheets to track price drops.

### Limitations

- Search listing data only. Product detail pages (variants, full description, store name, reviews) are not scraped.
- AliExpress can change its site at any time. If the Actor stops returning data, report an issue and it will be fixed quickly.

### Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

# Actor input Schema

## `keywords` (type: `array`):

Search terms, e.g. "wireless earbuds". Each keyword is searched separately.

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

Optional. Paste AliExpress search URLs such as https://www.aliexpress.com/w/wholesale-wireless-earbuds.html or category listing URLs. Filters and sort in the URL are kept.

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

Order of results, same options as the AliExpress website.

## `includeAds` (type: `boolean`):

AliExpress mixes sponsored products into results. They are flagged with isAd. Turn off to skip them.

## `maxItemsPerQuery` (type: `integer`):

AliExpress returns 60 products per page.

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

Keep the default: Apify residential proxy in the United States (prices in USD). AliExpress blocks datacenter IPs. Change the proxy country to get local currency and shipping.

## Actor input object example

```json
{
  "keywords": [
    "wireless earbuds"
  ],
  "startUrls": [],
  "sortBy": "default",
  "includeAds": true,
  "maxItemsPerQuery": 180,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset with one record per product: title, price, discount, rating, orders sold, images, ad flag, URL.

## `productsCsv` (type: `string`):

The same dataset exported as CSV.

# 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 = {
    "keywords": [
        "wireless earbuds"
    ],
    "maxItemsPerQuery": 180,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tamnt67/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 = {
    "keywords": ["wireless earbuds"],
    "maxItemsPerQuery": 180,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("tamnt67/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 '{
  "keywords": [
    "wireless earbuds"
  ],
  "maxItemsPerQuery": 180,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call tamnt67/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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