# AliExpress Scraper: Search Products, Prices & Orders (`subimpact/aliexpress-scraper`) Actor

AliExpress search results without login or browser: product title, sale and original price, discount, orders sold, rating, image and item URL, with paging and sort by orders. $1.00 per 1,000 products.

- **URL**: https://apify.com/subimpact/aliexpress-scraper.md
- **Developed by:** [subimpact network](https://apify.com/subimpact) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 3 monthly users, 95.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 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 Scraper: Search Results, Prices & Orders Sold

Get AliExpress search results as clean rows for any keyword: title, sale price, original price, discount percent,
orders sold, rating, selling-point tags, image, product id and item URL. One row per product, about 60 products per
page, with paging and a sort by orders sold. Plain HTTP, no login, no browser, no API key.

Pay only for what you get: **$1.00 per 1,000 products**. No start fee. A run for 20 products costs **$0.02**, with
platform usage included.

### What you get

- **Prices as AliExpress shows them**: `salePrice`, `originalPrice`, `currency`, `discountPercent` and
  `formattedSalePrice` ("US $1.12"), so you can compare listings without scraping product pages.
- **Demand signals**: `soldText` ("10,000+ sold") plus `soldCount` (10000) as a number, `rating`, and the
  `sellingPoints` tags AliExpress prints on the card ("Top selling on AliExpress", "Free shipping").
- **Identity and links**: `productId`, `itemId` and `itemUrl` (`https://www.aliexpress.com/item/<id>.html`), image URL,
  `storeName`, `searchTerm`, `page`, `position` (rank across the pages of that keyword), `searchResultType` and
  `totalResults`.
- **Paging and sorting**: each keyword is paged until `maxItemsPerSearch` is reached, AliExpress reports the last page,
  or a page comes back empty. `sortBy` is `relevance` (AliExpress best match) or `orders` (most sold first), the two
  sort modes that were verified on the live site.
- **Free error rows**: a keyword whose page cannot be read, or an input line that is a product link instead of a
  keyword, still gets a row saying so with `status` `error`, and is never charged. One bad line never costs you the
  rest of the run.
- **A status message** with the number of products delivered, per-keyword failures and how many events were charged.

### Quick start

Input that works exactly as written (one keyword, 20 products, about $0.02):

```json
{
  "searchTerms": ["usb c cable"],
  "maxItemsPerSearch": 20
}
```

Two keywords with paging, sorted by how many units the listing sold:

```json
{
  "searchTerms": ["usb c cable", "phone case"],
  "maxItemsPerSearch": 120,
  "sortBy": "orders",
  "maxItems": 200
}
```

Leave `searchTerms` empty (or send `{}` from the API) and the actor searches for `usb c cable`, so a first run always
returns rows. Keywords are used as the URL slug AliExpress expects: "usb c cable" becomes `wholesale-usb-c-cable.html`.

### Output example

A real row for the first result of `usb c cable`:

```json
{
  "productId": "3256809314752819",
  "itemId": "1005009501067571",
  "itemUrl": "https://www.aliexpress.com/item/1005009501067571.html",
  "productTitle": "60W Type C to Type C Cable Data Line For Iphone 15 16 17 Samsung Xiaomi Fast Charging USB C to C Cable Type C Data Charger 1m2m",
  "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/S4272e6d17d04495f975bea4288ac762fD.png",
  "salePrice": 1.12,
  "originalPrice": 4.12,
  "currency": "USD",
  "discountPercent": 72,
  "formattedSalePrice": "US $1.12",
  "soldText": "10,000+ sold",
  "soldCount": 10000,
  "rating": 4.8,
  "sellingPoints": ["New shoppers save $3", "Top selling on AliExpress"],
  "storeName": "Shop APFen Store",
  "storeUrl": null,
  "searchTerm": "usb c cable",
  "page": 1,
  "position": 1,
  "searchResultType": "normal_result",
  "totalResults": 35128,
  "status": "success",
  "error": null,
  "scrapedAt": "2026-10-30T12:00:00.000Z"
}
```

The same keyword returns 60 products on page 1; page 2 starts with `3256809314305761` (`itemId` `1005009500620513`,
sale price `1.09`). The `phone case` keyword sorted by orders reports `totalResults` 97086 and its first card sold
`100K+ sold` (`soldCount` 100000) at `1.09` with `discountPercent` 85.

A keyword that cannot be read comes back as a free row:

```json
{
  "searchTerm": "phone case",
  "productId": null,
  "status": "error",
  "error": "Search \"phone case\" page 1 could not be read after up to 3 attempt(s): aliexpress.com answered HTTP 503 for https://www.aliexpress.com/w/wholesale-phone-case.html. No row was charged."
}
```

### Pricing

Pay per event, charged only after the row is in the dataset:

| Event | Price | Charged when |
|---|---|---|
| `product` | $0.001 per product ($1.00 per 1,000) | a product row was pushed |
| `apify-actor-start` | $0.00005 per run | the run starts (platform event) |

Platform usage is included in the price. There is no start fee of our own.

Typical costs: 20 products = **$0.02**, 120 products = **$0.12**. The Console default (the two prefilled keywords,
60 products each) delivers up to 120 products, so up to **$0.12**; `maxItems` (300) is the hard ceiling of a default
run. Error rows, empty searches and unreadable input lines cost nothing.

### How this compares

Free-plan list prices on the Apify Store, checked 30 October 2026. Competitor prices are their own list prices, dated;
their Apify platform usage is charged on top by their listings (see each listing, prices change).

| Actor | Price | Users | What the price buys |
|---|---|---|---|
| kawsar/aliexpress-search-scraper | $9.00 per 1,000 results | 1,289 users in 30 days, 89% run success | AliExpress search results |
| zen-studio/aliexpress-scraper | $2.49 per 1,000 products | 350 users | AliExpress products |
| **this actor** | **$1.00 per 1,000 products** | new | AliExpress search results, no start fee |

Platform usage is included in the event price.

### Limits

- **Search pages only**: no product detail pages, no reviews, no seller pages. AliExpress answers product detail pages
  with a captcha, so an input line that is a product link is returned as an uncharged error row explaining that only
  search is supported.
- **USD prices as AliExpress shows them to US visitors**: the currency comes from the response (`currencyCode`), and
  prices can include AliExpress promotions for new buyers. Free-gift promotion cards carry no price block; their prices
  come from the same card's tracking data (in cents) and use the page's currency.
- **Sort by relevance or orders only**: other sort, price-range and ship-to parameters were not verified and are not
  exposed.
- **About 60 products per page**, up to 600 products per keyword and 10,000 per run. A page that repeats pinned cards
  is de-duplicated by `productId`, so you pay once per product.
- `itemUrl` is built only from the item id AliExpress itself puts on the card (`1005...` for current listings, an
  11-digit id such as `32842585740` for older ones). If a card carries neither, `itemId` and `itemUrl` are null instead of a
  guessed link.
- `storeUrl` is normally null: search cards carry the store name but not the store URL.
- Search result counts and rankings change over time, so two runs of the same keyword can return different products.

### Responsible use

This actor reads public AliExpress search pages at a polite rate (3 keywords in parallel, 30 second timeouts, retries
on a fresh proxy session). Use it for market research and price monitoring on listings you are allowed to look at,
keep concurrency and scheduling reasonable, and respect AliExpress's terms and any applicable law. Do not use it to
copy protected content or to overload the site.

### Run monitoring and privacy

If a run fails or times out, this Actor tells its developer the run ID and status, so we can fix problems fast. It never sends your input, your results or your account data.

# Actor input Schema

## `searchTerms` (type: `array`):

AliExpress search keywords, one per line, e.g. usb c cable or phone case. Each keyword is searched on its own and its results are paged. Links are not accepted: this actor reads search result pages, not product detail pages. Entries that cannot be read come back as free error rows. Leave empty to search for usb c cable.

## `maxItemsPerSearch` (type: `integer`):

How many products to collect for each keyword (1 to 600). AliExpress returns about 60 products per page, so 60 is one page and 120 is two pages. Paging stops early when AliExpress reports the last page or returns an empty page.

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

relevance keeps AliExpress's best-match order. orders sorts by how many units the listing sold, most first, which is the usual way to find proven products.

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

Hard cap on how many product rows the whole run can deliver, across all keywords (1 to 10000). The run stops cleanly when it is reached. Only delivered products are charged.

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

Apify datacenter proxy is the default and works for AliExpress search pages. Set useApifyProxy to false to go direct from the Apify platform. A proxy failure fails that request, it never silently falls back to a direct one.

## Actor input object example

```json
{
  "searchTerms": [
    "usb c cable",
    "phone case",
    "wireless earbuds"
  ],
  "maxItemsPerSearch": 60,
  "sortBy": "relevance",
  "maxItems": 300,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `productId` (type: `string`):

AliExpress internal product id from the search card, e.g. 3256809314752819; null on error rows

## `itemId` (type: `string`):

Canonical item id used in the item URL, e.g. 1005009501067571; null when the card carries no 1005-style id

## `itemUrl` (type: `string`):

https://www.aliexpress.com/item/<itemId>.html; null when no item id is available

## `productTitle` (type: `string`):

Product title as AliExpress shows it in the search results

## `imageUrl` (type: `string`):

Main product image URL on AliExpress's CDN

## `salePrice` (type: `string`):

Current sale price, lowest variant, e.g. 1.12

## `originalPrice` (type: `string`):

List price before the discount, lowest variant, e.g. 4.12

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

Currency code AliExpress returned, USD for US visitors

## `discountPercent` (type: `string`):

Discount AliExpress advertises, e.g. 72 for 72 percent off

## `formattedSalePrice` (type: `string`):

Sale price exactly as AliExpress prints it, e.g. US $1.12

## `soldText` (type: `string`):

Orders sold exactly as AliExpress prints it, e.g. 10,000+ sold

## `soldCount` (type: `string`):

soldText parsed to a number, e.g. 10000 for 10,000+ sold and 100000 for 100K+ sold; null when there is no such text

## `rating` (type: `string`):

Average star rating, e.g. 4.8; null when the listing has no rating yet

## `sellingPoints` (type: `string`):

Short tag texts AliExpress prints on the card, e.g. Top selling on AliExpress, Free shipping

## `storeName` (type: `string`):

Seller store name when the card carries one, e.g. BASEUS Choice Store

## `storeUrl` (type: `string`):

Store URL when the card carries one; search cards usually do not, so this is normally null

## `searchTerm` (type: `string`):

The keyword exactly as it was given in searchTerms

## `page` (type: `string`):

Search result page this product came from, 1-based

## `position` (type: `string`):

1-based rank of this product across the pages of its keyword

## `searchResultType` (type: `string`):

normal_result or few_result, as AliExpress reports the search

## `totalResults` (type: `string`):

How many results AliExpress says the keyword has, e.g. 35128

## `status` (type: `string`):

success or error; only success rows are charged

## `error` (type: `string`):

Why the search or the entry failed; null on success rows

## `scrapedAt` (type: `string`):

When this page was scraped, ISO 8601 UTC

# 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 = {
    "searchTerms": [
        "usb c cable",
        "phone case"
    ],
    "maxItemsPerSearch": 60,
    "sortBy": "relevance",
    "maxItems": 300,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("subimpact/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 = {
    "searchTerms": [
        "usb c cable",
        "phone case",
    ],
    "maxItemsPerSearch": 60,
    "sortBy": "relevance",
    "maxItems": 300,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("subimpact/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 '{
  "searchTerms": [
    "usb c cable",
    "phone case"
  ],
  "maxItemsPerSearch": 60,
  "sortBy": "relevance",
  "maxItems": 300,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call subimpact/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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