# AliExpress Search Scraper + Price Tracker (`szabidev/aliexpress-search-scraper`) Actor

Scrape AliExpress search results by keyword or URL: price, rating, units sold, images. Set any currency and ship-to country. Built-in price tracking flags price drops between runs.

- **URL**: https://apify.com/szabidev/aliexpress-search-scraper.md
- **Developed by:** [Szabi Dev](https://apify.com/szabidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 products

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 Search Scraper + Price Tracker

Scrape AliExpress search results by keyword or by URL. For each product you get the **price, rating, units sold, images and link**, in **any currency and for any ship-to country**. Turn on **price tracking** and the Actor remembers prices between runs and flags every drop or rise. You can use that to monitor competitors, find products to dropship, or get price alerts.

**$0.60 per 1,000 products.** You pay only for products delivered. Skipped ads and unchanged prices (when filtered out) are free.

### What you can do with it

- **Dropshipping and product research:** find best-sellers in any niche, sorted by orders, with real "sold" counts.
- **Price monitoring:** schedule a daily run and get only the products whose price changed.
- **Market and competitor analysis:** compare price ranges, ratings and sales volume across keywords.
- **Feed your tools:** export to JSON, CSV or Excel, or connect to Google Sheets, Make, Zapier or n8n through Apify integrations.

### Input

| Field | What it does |
|---|---|
| `keywords` | Search terms, one search each (`"wireless earbuds"`, `"usb c cable"`) |
| `startUrls` | Any AliExpress search or category URL, with your filters already applied |
| `maxItemsPerQuery` | Max products per keyword or URL (60 per page). With `onlyChangedPrices`, the number of top results checked |
| `sort` | Best match, most orders, price low→high, price high→low |
| `minPrice` / `maxPrice` | Price range in your currency |
| `currency` | USD, EUR, GBP, PLN, HUF, BRL… |
| `shipToCountry` | Prices as buyers in that country see them (US, DE, FR, GB…) |
| `skipSponsored` | Leave out ad placements |
| `trackPriceChanges` | Compare with the previous run of the same search |
| `onlyChangedPrices` | Output only products whose price moved (turns tracking on; first run = full baseline) |

Example:

```json
{
  "keywords": ["wireless earbuds", "phone case"],
  "maxItemsPerQuery": 200,
  "sort": "orders",
  "currency": "EUR",
  "shipToCountry": "DE",
  "trackPriceChanges": true
}
```

### Output

```json
{
  "productId": "1005007502032342",
  "url": "https://www.aliexpress.com/item/1005007502032342.html",
  "title": "Magnetic Luxury Lens Protector Matte Translucent Case For iPhone 17 ...",
  "price": 2.79,
  "originalPrice": null,
  "discountPercent": null,
  "currency": "EUR",
  "rating": 4.7,
  "soldCount": 100000,
  "soldText": "100K+ sold",
  "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/S3b41....jpg",
  "images": ["https://ae-pic-a1.aliexpress-media.com/kf/S3b41....jpg"],
  "isSponsored": false,
  "query": "phone case",
  "page": 1,
  "position": 1,
  "shipTo": "DE",
  "scrapedAt": "2026-11-23T10:00:00+00:00",
  "previousPrice": 3.19,
  "priceChange": -0.4,
  "priceChangePercent": -12.54,
  "isNew": false
}
```

The `previousPrice`, `priceChange`, `priceChangePercent` and `isNew` fields appear only when price tracking is on. `soldCount` is AliExpress's rounded figure ("1,000+ sold" becomes 1000).

### Price tracking: how it works

With `trackPriceChanges` on, the Actor stores the last price of every product, per search, in a named key-value store in your account (`aliexpress-price-tracker`). On the next run with the **same search settings**, each product is compared to that stored price. Schedule the Actor (for example daily) and add `onlyChangedPrices` to pay only for the changes. The first tracked run of a search has nothing to compare with, so it outputs every product once as the baseline (`isNew: true`). Sponsored listings are tracked too, even when you skip them.

### Cost

$0.60 per 1,000 products, plus a tiny per-run start fee. 1,000 best-sellers across 5 keywords cost about $0.60. A daily price check of 200 products with only changes returned usually costs a few cents.

### Tips

- Keep the default residential proxy. AliExpress blocks datacenter IPs more often.
- Ratings and sold counts are missing on some listings (AliExpress doesn't show them for new products). Those fields come back as `null`.
- Need full product pages (variants, specs, shipping options, store info)? Open an issue and tell us your use case. A detail mode is on the roadmap.

### Is it legal to scrape AliExpress?

This Actor collects only publicly visible product listing data. It doesn't log in and doesn't collect personal data. You're responsible for how you use the data. Check AliExpress's terms and your local laws for your use case.

# Actor input Schema

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

One search per keyword, e.g. "phone case", "usb c cable".

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

AliExpress search or category result URLs (with your own filters). Paginated automatically.

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

Stops after this many products for each keyword or URL (60 per results page). With 'Output only products whose price changed' on, this is how many top results are checked.

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

Applies to keywords only (URLs keep their own sorting).

## `minPrice` (type: `integer`):

Whole number in the chosen currency. Keywords only.

## `maxPrice` (type: `integer`):

Whole number in the chosen currency. Keywords only.

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

3-letter currency code for prices, e.g. USD, EUR, GBP, PLN, HUF, BRL.

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

Prices and availability as shown to buyers in this country, e.g. US, DE, FR, GB, PL.

## `skipSponsored` (type: `boolean`):

Leave out paid placements. Skipped items are not charged.

## `trackPriceChanges` (type: `boolean`):

Remembers prices per search. Each product gets previousPrice, priceChange, priceChangePercent and isNew. Schedule the Actor daily to monitor prices.

## `onlyChangedPrices` (type: `boolean`):

Output (and pay for) only products whose price moved since the last run of the same search. Turns tracking on automatically. The first run outputs everything once as the baseline.

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

Residential proxy is the most reliable for AliExpress.

## Actor input object example

```json
{
  "keywords": [
    "wireless earbuds"
  ],
  "maxItemsPerQuery": 100,
  "sort": "best_match",
  "currency": "USD",
  "shipToCountry": "US",
  "skipSponsored": false,
  "trackPriceChanges": false,
  "onlyChangedPrices": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All scraped products as a table (also JSON, CSV, Excel via the dataset API).

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("szabidev/aliexpress-search-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"] }

# Run the Actor and wait for it to finish
run = client.actor("szabidev/aliexpress-search-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"
  ]
}' |
apify call szabidev/aliexpress-search-scraper --silent --output-dataset

```

## MCP server setup

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