# AliExpress Scraper - Prices, Sold Counts & Stores ($0.50/1K) (`ragnum/aliexpress-scraper`) Actor

Scrape AliExpress search results by keyword: titles, USD prices and discounts, sold counts, ratings, store names, Choice badges and more - $0.50 per 1,000 products with platform usage included, failed pages and duplicates are free.

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

## Pricing

from $0.35 / 1,000 product results

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

### What does AliExpress Scraper do?

**AliExpress Scraper** turns **[AliExpress.com](https://www.aliexpress.com) search results into clean, typed product rows**. Enter one or more keywords, or paste AliExpress search or category URLs. You get one row for each product AliExpress lists. Use it as an **AliExpress product search API alternative**.

Each row gives you the search-result data you need for price research and product discovery:

- **product title**, product link and image URL
- **price in US dollars** as a number, plus the **original price** and **discount percent**
- **units sold** as a number (`"10,000+ sold"` → `10000`), plus the text as shown
- **star rating** (null when a product has no rating yet)
- **store name**, when the search card carries it
- **AliExpress Choice** badge, **free shipping** tag, **ships-from country** and the card's other badges
- **sponsored** flag, keyword, page and position

It reads AliExpress's public search pages without a login, which keeps it **fast and cheap: $0.50 per 1,000 products**.

**One schema across marketplaces.** The core fields (`marketplace`, `productId`, `title`, `url`, `price`, `currency`, `rating`, `soldCount`, `storeName`…) have the same names and types in Ragnum's **Alibaba, DHgate and Facebook Marketplace** scrapers. You can merge datasets from all of them without remapping.

### Why scrape AliExpress?

- 📈 **Price monitoring and research.** Track prices, discounts and sold counts for a keyword over time. The schema is stable and the fields are numeric, so it diffs cleanly.
- 🔎 **Product discovery and dropshipping research.** Find best-sellers and AliExpress Choice items, and see where they ship from.
- 🛒 **Cross-marketplace comparison.** Compare the same product across AliExpress, Alibaba and DHgate using the shared core schema.
- 🤖 **AI agents and automations.** Get typed JSON that agents, spreadsheets and databases can use directly.

Running on the Apify platform also gives you scheduling, monitoring, API access and integrations (Make, Zapier, Google Sheets, webhooks…), with proxies managed for you.

### How much does it cost to scrape AliExpress?

**$0.50 per 1,000 products ($0.0005 per product).** Platform usage, including proxies, is **included in the price**.

You only pay for product rows that end up in your dataset:

- **Failed or blocked pages are free.** Every retry is on us.
- **Empty pages are free.**
- **Duplicates are free.** A product that shows up on several pages, or for several keywords, is delivered and charged once per run.
- **Promo gift cards are skipped.** AliExpress mixes "FREE with any purchase" new-shopper gift cards into search results. They have no price and aren't real search results, so they are left out and never charged.

| Products | Price |
|---|---|
| 100 | $0.05 |
| 1,000 | $0.50 |
| 10,000 | $5.00 |

**Max products per keyword** controls how much you spend. You can also set a **maximum cost per run** in the run options. The scraper stops cleanly when it reaches that limit and never charges beyond it.

### How to scrape AliExpress search results

1. Click **Try for free**.
2. Enter one or more **search keywords**, for example `yoga mat` or `led strip`.
3. Optionally choose a **sort order** (best match, most orders, price) and a **price range**.
4. Set **Max products per keyword** (default 20) and **Max results pages per keyword** (default 2). One results page has up to 60 products.
5. Click **Start**. 150 products per keyword usually take well under a minute.
6. Download the data as **JSON, CSV, Excel or HTML**, or read it through the **API**.

### Input

The **Input** tab lists every option. Example:

```json
{
    "keywords": ["yoga mat", "led strip"],
    "sortBy": "orders",
    "minPrice": 5,
    "maxPrice": 50,
    "maxItemsPerKeyword": 150,
    "maxPagesPerKeyword": 3
}
```

| Field | Default | What it does |
|---|---|---|
| `keywords` | `["yoga mat"]` if no keywords or URLs are given | Runs one AliExpress search per keyword. |
| `startUrls` | — | Optional listing URLs to use instead of keywords. Search results such as `https://www.aliexpress.com/w/wholesale-yoga-mat.html` (add `?page=3` to start at page 3; filters in the URL are kept). Category listings such as `https://www.aliexpress.com/category/100003109/women-clothing.html`. |
| `sortBy` | `default` | `default` (best match), `orders` (most orders), `price_asc`, `price_desc`. Applies to keywords. |
| `minPrice` / `maxPrice` | — | AliExpress's own price filter, in USD. Applies to keywords. |
| `shipToCountry` | `US` | Country that prices and delivery are shown for. Prices are in USD. |
| `maxItemsPerKeyword` | 20 | Stops a keyword after this many unique products (max 3,000). |
| `maxPagesPerKeyword` | 2 | Upper limit of results pages per keyword (max 60, which is all AliExpress shows). Raise it together with `maxItemsPerKeyword`: up to 60 products per page. |
| `maxRetriesPerPage` | 10 | How many times a blocked page is retried. Retries are free. |
| `proxyConfiguration` | Managed for you | Included in the price. Leave the default. |

#### How many pages are read, and what happens when a page fails

For each keyword, the scraper reads results pages in order (page 1, 2, 3…). It stops at the **first** of these:

1. **Max products per keyword**: enough unique products have been delivered.
2. **Max results pages per keyword**: this many pages have been tried. Failed pages count, because they were tried.
3. **The last results page** AliExpress reports for that search.

**A failed page doesn't stop the keyword.** That includes a page still blocked after all retries, and a page that loads without products. The scraper records the page in `RUN_SUMMARY`, doesn't charge for it, and moves on to the next page. It never reads extra pages to make up for failed ones. To get a specific number of products, set **Max results pages per keyword** a page above *products ÷ 60*. **Max products per keyword** still stops the run at your target.

### Output

Each product is one dataset row. You can download the dataset as JSON, CSV, Excel, XML or HTML.

| Field | Type | Description | Example |
|---|---|---|---|
| `marketplace` | string | Always `aliexpress` (shared schema) | `aliexpress` |
| `productId` | string | AliExpress product ID | `3256806808957451` |
| `title` | string | Product title as shown in search results | Yoga Mat Pilates Fitness Mat… |
| `url` | string | Product page URL | `https://www.aliexpress.com/item/3256806808957451.html` |
| `imageUrl` | string | Main product image URL (not downloaded) | `https://ae-pic-a1.aliexpress-media.com/kf/…jpg` |
| `price` | number | Current (sale) price, in `currency`. The lowest price for products with variants | 5.19 |
| `originalPrice` | number | Crossed-out original price, when shown | 13.84 |
| `discountPercent` | number | Discount shown on the card | 62 |
| `currency` | string | ISO currency code. Prices are never converted | `USD` |
| `currencyMismatch` | boolean | `true` when the row's currency isn't USD | `false` |
| `rating` | number | Star rating out of 5. `null` when the card shows no rating | 4.9 |
| `reviewCount` | integer | `null` for AliExpress: search cards don't include a review count. Kept for the shared schema | `null` |
| `soldCount` | integer | Units sold, parsed from `soldText` | 10000 |
| `soldText` | string | Sold count as displayed | `10,000+ sold` |
| `storeName` | string | Store name, when the search card carries it (mostly on sponsored cards) | `Shop1103776049 Store` |
| `storeId` / `storeUrl` | string | `null` for AliExpress: search cards don't include them. Kept for the shared schema | `null` |
| `keyword` | string | Search that produced the row (`null` for category URLs) | `yoga mat` |
| `page` / `position` | integer | Results page and 1-based position on it | 1 / 2 |
| `isSponsored` | boolean | `true` for sponsored (ad) listings | `false` |
| `scrapedAt` | string | ISO timestamp of the fetch | `2026-11-07T19:40:00.000Z` |
| `isChoice` | boolean | Card shows the AliExpress Choice badge | `true` |
| `freeShipping` | boolean | `true` when the card shows "Free shipping". `null` when it doesn't say | `null` |
| `shipsFrom` | string | Country the item ships from (ISO 3166-1 alpha-2) | `CN` |
| `badges` | string\[] | Text badges and promo labels on the card | `["Dollar Express", "Fastest delivery in 6 days"]` |
| `priceText` | string | Sale price as displayed | `US $5.19` |

```json
{
    "marketplace": "aliexpress",
    "productId": "3256806808957451",
    "title": "Yoga Mat Pilates Fitness Mat 3/4/6mm Thicknes Non Slip Yoga Cushion Travel Fitness Exercise Pad for Women Home Gym Floor Workout",
    "url": "https://www.aliexpress.com/item/3256806808957451.html",
    "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/S2519edadb8104a8a914b2c6c1ff4151bZ.jpg",
    "price": 5.19,
    "originalPrice": 13.84,
    "discountPercent": 62,
    "currency": "USD",
    "currencyMismatch": false,
    "rating": 4.9,
    "reviewCount": null,
    "soldCount": 10000,
    "soldText": "10,000+ sold",
    "storeName": "Shop1103776049 Store",
    "storeId": null,
    "storeUrl": null,
    "keyword": "yoga mat",
    "page": 1,
    "position": 2,
    "isSponsored": false,
    "scrapedAt": "2026-11-07T19:40:00.000Z",
    "isChoice": true,
    "freeShipping": null,
    "shipsFrom": "CN",
    "badges": ["Dollar Express", "Save $8.65", "Fastest delivery in 6 days"],
    "priceText": "US $5.19"
}
```

#### Run summary (`RUN_SUMMARY`)

Each run also saves a **`RUN_SUMMARY`** record in its key-value store. Find it under Storage → Key-value store, or through the **Run summary** link in the Output tab. It shows how complete a run was:

- **Success rate.** Pages attempted, succeeded and failed, per keyword and in total. Also attempts per page and the share of blocked attempts. If a keyword came back short because a page stayed blocked through every retry, it shows up here. You aren't charged for that page.
- **Rows.** Products pushed, duplicates skipped, and the currency of every page.
- **Field fill rates.** The share of rows that have each field.
- **Warnings:**
  - `STRUCTURE_CHANGE_SUSPECTED`: a page loaded but had no usable product data, or key fields went missing. That usually means AliExpress changed its page layout. Please open an issue if you see it.
  - `CHARGE_LIMIT_REACHED`: the run stopped at your maximum cost per run.
  - `CURRENCY_MISMATCH`: a page stayed in a currency other than USD after retries, and its rows are flagged.

### Use with AI agents (Apify MCP server)

AI agents can call this scraper as a tool through the [Apify MCP server](https://docs.apify.com/mcp). Add this server URL to Claude, Cursor, VS Code or any other MCP client:

```
https://mcp.apify.com?tools=ragnum/aliexpress-scraper
```

The agent can then ask for things like *"Find the 100 best-selling yoga mats on AliExpress under $20 and list the ones with the Choice badge"*. It gets typed JSON back and pays the same $0.50 per 1,000 products. The output uses the same core fields as Ragnum's Alibaba, DHgate and Facebook Marketplace scrapers, so an agent can compare marketplaces in one step.

### Tips

- **Prices are in US dollars.** The scraper requests US prices. Prices are labelled with `currency` and are never converted. If a page still comes back in another currency, the scraper retries a couple of times. After that it keeps the rows and sets `currencyMismatch: true`.
- **Prices are what a logged-out US visitor sees.** That includes AliExpress's promotions for new shoppers.
- **Products are de-duplicated** by `productId` within a run, across pages and keywords.
- **Blocked pages.** AliExpress sometimes refuses automated requests. The scraper doesn't try to get around this; it retries the page later, up to `maxRetriesPerPage` times, at no cost to you.

### FAQ, disclaimers and support

#### Is it legal to scrape AliExpress?

This Actor reads only publicly visible search results, without logging in. It collects product and store-level data only, with no personal data and no reviews.

**You are responsible for making sure your use of the data complies with AliExpress.com's terms of use, its robots.txt, and the laws that apply to you**, including data-protection and intellectual-property law. If you are unsure whether your use case is allowed, consult a lawyer.

#### Why did I get fewer products than I asked for?

Usually one of three reasons:

- The search has fewer results than you asked for.
- A page stayed blocked through all retries. It counts toward **Max results pages per keyword**.
- Duplicates were removed.

`RUN_SUMMARY` shows which one applies. Missing products are never charged.

#### Feedback

Found a bug or need a field? Open an issue in the **Issues** tab. For programmatic access, see the **API** tab.

# Actor input Schema

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

What to search for on AliExpress.com, one keyword per line, in English (for example "yoga mat", "led strip", "bluetooth earbuds"). Each keyword runs its own search. If you leave this and the listing URLs below empty, the scraper searches "yoga mat".

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

Alternative to keywords: AliExpress search result URLs such as https://www.aliexpress.com/w/wholesale-yoga-mat.html (add ?page=3 to start at page 3; filters already in the URL are kept) or category listing URLs such as https://www.aliexpress.com/category/100003109/women-clothing.html. Sort and price filters below apply to keywords only. Product, store and review pages make the run fail with a clear message before any request is made.

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

Order of the search results, using AliExpress's own sort options: best match (default), most orders, price low to high, or price high to low.

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

Only products priced at or above this amount, in US dollars (AliExpress's own price filter). Leave empty for no lower limit.

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

Only products priced at or below this amount, in US dollars (AliExpress's own price filter). Leave empty for no upper limit.

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

Country AliExpress prices and delivery options are shown for. Version 1 supports the United States (prices in USD).

## `maxItemsPerKeyword` (type: `integer`):

Stop a keyword (or listing URL) after this many unique products (default 20). One results page has up to 60 products, so 150 needs about 3 pages. This is the main control of how much a run costs: 1,000 products = $0.50.

## `maxPagesPerKeyword` (type: `integer`):

Upper limit of results pages tried per keyword (default 2) or per listing URL, counting from its start page. AliExpress shows at most 60 pages. A keyword stops at whichever comes first: this limit, Max products per keyword, or the last results page. A page that stays blocked after all retries does not stop the keyword (the next page is still fetched), but it counts toward this limit.

## `maxRetriesPerPage` (type: `integer`):

AliExpress sometimes refuses automated requests. The scraper never tries to get around this: a refused page is retried later, up to this many times. Retries are free for you.

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

Managed for you and included in the price. Leave the default unless you know you need something else.

## Actor input object example

```json
{
  "keywords": [
    "yoga mat"
  ],
  "sortBy": "default",
  "shipToCountry": "US",
  "maxItemsPerKeyword": 20,
  "maxPagesPerKeyword": 2,
  "maxRetriesPerPage": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

No description

# 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": [
        "yoga mat"
    ],
    "sortBy": "default",
    "shipToCountry": "US",
    "maxItemsPerKeyword": 20,
    "maxPagesPerKeyword": 2,
    "maxRetriesPerPage": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ragnum/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": ["yoga mat"],
    "sortBy": "default",
    "shipToCountry": "US",
    "maxItemsPerKeyword": 20,
    "maxPagesPerKeyword": 2,
    "maxRetriesPerPage": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ragnum/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": [
    "yoga mat"
  ],
  "sortBy": "default",
  "shipToCountry": "US",
  "maxItemsPerKeyword": 20,
  "maxPagesPerKeyword": 2,
  "maxRetriesPerPage": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}' |
apify call ragnum/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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