# AliExpress Search Scraper (`pumpkinapi/aliexpress-search-scraper`) Actor

Search AliExpress by keyword or search address and get every product with its exact sold count, price, rating and delivery days. Run it on a schedule and each row says how many units sold since the last run and how the price moved.

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

## Pricing

from $1.75 / 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.
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 with sales tracking: type a keyword or paste a search address and get every product on the AliExpress search pages as a row with the exact sold count, price, rating, delivery days and images, priced for the country and currency you choose. Run it again under the same tracker name and each row also says how the sold count and the price moved since the last run.

- Price: $2.50 per 1,000 products. Platform usage included.
- Input: keywords or AliExpress search addresses, filters, ship-to country, currency, tracker name.
- Output: one row per product with title, price, exact sold count, rating, delivery days, images, labels, and the change since the last run.
- Measured: 60 products from one keyword in 3 seconds, 300 products from 3 keywords priced for Germany in 11 seconds.

Found a bug, need a field, or want a new Actor? Open an issue on the **Issues** tab. If it works well for you, a short review helps others find it.

### How to use it

1. Enter keywords, one per line, in any language. Or paste AliExpress search addresses such as `https://www.aliexpress.com/w/wholesale-dog-toys.html?minPrice=5`, which are read with their filters.
2. Set how many products to take per search. One page holds 60 products, so 60 is one request and 300 is five.
3. Pick the ship-to country and the currency. Prices, delivery days and the product selection follow them.
4. Start the run. Download the rows as JSON, CSV or Excel, or read them through the API.

A first input:

```json
{
    "keywords": ["wireless earbuds", "yoga mat"],
    "maxProductsPerSearch": 100,
    "sort": "orders",
    "shipToCountry": "DE",
    "priceCurrency": "EUR"
}
```

Keyword and address searches can be mixed. A product that appears under two of your searches is saved and charged once, in the row of the search that found it first.

### What data you get

| Field | Meaning |
| --- | --- |
| `productId`, `title`, `productUrl` | The listing and its page. |
| `imageUrl`, `images` | The main image and the gallery shown on the card. |
| `price`, `currency` | The sale price shown to a visitor in the ship-to country. AliExpress shows most visitors a new-shopper deal, flagged in `isNewShopperPrice`. |
| `originalPrice`, `discountPercent` | The struck-through price and the discount, when the card shows them. |
| `rating` | Star rating, 1 to 5. |
| `sold`, `soldLabel` | The exact sold count behind the label. The card says `50,000+ sold`, the row says `64465`. |
| `soldChange`, `daysSinceLastRun`, `soldChangePerDay` | How the sold count moved since the last run with the same tracker name. |
| `previousSold`, `previousPrice`, `priceChange`, `previousRunAt` | What the last run saw and when. |
| `deliveryDaysMin`, `deliveryDaysMax` | The delivery estimate to the ship-to country, in days. |
| `tags` | Labels on the card, such as `Lowest price in 90 days` or `Free shipping`. |
| `isChoice`, `isAd`, `launchedAt`, `categoryIds` | Choice program, sponsored card, listing date, AliExpress categories. |
| `keyword`, `searchUrl`, `page`, `position` | Where the product was found and its rank in the results. |
| `cardType` | `full` when the card carried the sold count and rating, `light` when AliExpress served it without them. |

Fields without a value are `null`. One real row:

```json
{
    "productId": "1005012736891126",
    "title": "TWS Wireless Bluetooth Headset LED Display Gamer Earbuds with Mic Wireless Headphones Noise Cancelling Bluetooth Earphones X15",
    "productUrl": "https://www.aliexpress.com/item/1005012736891126.html",
    "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/S623d5c89b35e423e8575ff54bbfcf345r.jpg",
    "price": 1.09,
    "originalPrice": null,
    "currency": "USD",
    "discountPercent": 95,
    "isNewShopperPrice": true,
    "rating": 4.9,
    "sold": 99771,
    "soldLabel": "90K+ sold",
    "isChoice": false,
    "isAd": false,
    "launchedAt": "2026-07-15",
    "deliveryDaysMin": 5,
    "deliveryDaysMax": 11,
    "tags": [],
    "categoryIds": [
        "44",
        "100000306",
        "63705"
    ],
    "cardType": "full",
    "soldChange": 273,
    "daysSinceLastRun": 2.27,
    "soldChangePerDay": 120.3,
    "previousSold": 99498,
    "previousPrice": 25.22,
    "priceChange": -24.13,
    "previousRunAt": "2026-11-07T02:04:06.598Z",
    "keyword": "wireless earbuds",
    "searchUrl": "https://www.aliexpress.com/w/wholesale-wireless-earbuds.html",
    "page": 1,
    "position": 3,
    "shipTo": "US",
    "scrapedAt": "2026-11-09T08:27:19.377Z"
}
```

This row came from the second run of a tracker. The sold count had risen by 273 in 2.27 days, about 120 a day. The shown price fell from 25.22 to 1.09 because AliExpress gave this run a new-shopper deal it had not shown before, which is why `isNewShopperPrice` sits next to `priceChange`.

The **SEARCHES** record in the key-value store lists every search with the number of products AliExpress reported, the pages read, how many products were found, matched your filters and were saved, and a message when a search was blocked, found nothing, or was not a search address.

### How much does it cost?

| Event | Price |
| --- | --- |
| Product saved to the dataset | $2.50 per 1,000 |
| Actor start | $0.00005 |

Three keywords with 100 products each give 300 rows for $0.75. Products that fail your filters, repeat within the run, or are left out by `onlyChanged` are not saved and not charged. The platform cost of a run is included in the price.

### How to track sales and prices

Every run remembers the sold count and the price of each product under the tracker name in `monitorName`. The next run with the same name fills `soldChange`, `soldChangePerDay`, `priceChange` and `previousRunAt`. The first run is the baseline and leaves them empty.

Two days after the first run, the same three searches returned 300 products of which 262 had been seen before. The sold count rose for 116 and fell for 77. The fastest mover, a pair of HTC NE79 earbuds, went from 21,751 to 22,982 sold in 2.25 days, about 547 a day.

To watch a niche, create a Task with your keywords and a tracker name, and schedule it daily. Turn on `onlyChanged` to save and pay only for products whose sold count or price moved. Use one tracker name per schedule, because two schedules sharing a name compare against each other's runs.

### How to find best sellers in a price band

Set `sort` to `orders`, `minPrice` and `maxPrice` to your band, and `minSold` to the floor you trust. AliExpress applies the price filters, so filtered products never reach the run. A run for `phone case` with `minSold` of 100 read 600 products from 13 pages and saved the 415 that passed, in 163 seconds.

### Limits

- AliExpress ends every search at page 60, so one search gives at most 3,600 products.
- The sold count is the figure behind the card label. AliExpress counts recent sales, so it can fall between runs, and `soldChange` is then negative. Treat it as a net change, not as units sold.
- The shown price is what an anonymous visitor sees in the ship-to country. It often includes a new-shopper deal and can differ from the price a logged-in buyer pays.
- Results are re-ranked between requests, so two runs of the same search share most but not all products. A product missing from a run is not forgotten by the tracker.
- Sometimes AliExpress serves the second half of a page as light cards without the sold count and rating. The Actor asks for the page again and keeps the fuller answer. Light rows that remain have `cardType` set to `light` and `sold` set to `null`.
- A keyword with no real matches gets `few_results` in the SEARCHES record and no rows, because AliExpress fills such pages with unrelated products.
- The card does not say which country a product ships from, so there is no ships-from field. Use the Ships from filter to limit a search instead.
- `choiceOnly` applies the Choice filter of AliExpress itself. Outside the United States the filter and the Choice badge on the card do not always agree, so some of those rows carry `isChoice` set to `false`, as the website shows them.
- Category pages, product pages and store pages are not search pages and are reported as bad input.
- The Actor reads one page a second and does not solve bot checks. When AliExpress asks for one, the run waits and retries, then marks the search as `blocked`.
- Seller names and other personal data are not collected.

### API and integrations

Start runs and read the dataset through the Apify API, or connect the Actor to Make, Zapier or Google Sheets from the Integrations tab. Schedules run it daily without your hand. For the reviews of the products you find, see [AliExpress Reviews Scraper](https://apify.com/pumpkinapi/aliexpress-reviews-scraper).

### FAQ

**Is the sold count exact?** It is the number AliExpress attaches to the card, before rounding into the label. The card shows `4K+ sold`, the row shows the figure, for example `4203`.

**Why did the price change when I did nothing?** AliExpress varies new-shopper deals between visits. Compare `priceChange` together with `isNewShopperPrice`, or use `originalPrice` when the card shows it.

**Can I search in my language?** Yes. The keyword goes into the AliExpress search address as typed, and titles come back in English.

**Does it use a proxy or a browser?** No. It reads the public search pages over plain HTTP, which keeps the price at $2.50 per 1,000 products.

**What happens at my spending limit?** The run stops saving and ends with a status message that says so. Rows already saved stay in the dataset.

*This Actor is an independent tool with no connection to AliExpress or Alibaba Group. All trademarks belong to their owners.*

# Actor input Schema

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

What to search for on AliExpress, one keyword per line, in any language. Example: wireless earbuds. Use this, Search addresses, or both.

## `searchUrls` (type: `array`):

AliExpress search result addresses, one per line, such as https://www.aliexpress.com/w/wholesale-dog-toys.html?minPrice=5. Filters in the address stay unless you set the same filter below. Category and product pages are not search pages.

## `maxProductsPerSearch` (type: `integer`):

How many products to take from each keyword or address. One page holds 60 products and AliExpress stops at page 60, so the most one search can give is 3,600.

## `maxProducts` (type: `integer`):

The run stops after saving this many products in total. 0 means no limit.

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

The order AliExpress lists the products in. Most orders finds the best sellers first.

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

Only products priced at this or more, in the chosen currency. AliExpress applies it, so filtered products are never saved or charged.

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

Only products priced at this or less, in the chosen currency.

## `minSold` (type: `integer`):

Only products that sold at least this many units in total. Products without a sold count are left out.

## `minRating` (type: `integer`):

Only products rated at least this many stars, 1 to 5. Products without a rating are left out.

## `freeShippingOnly` (type: `boolean`):

Only products with free shipping to the ship-to country.

## `choiceOnly` (type: `boolean`):

Only products in the Choice program.

## `shipFromCountry` (type: `string`):

Only products shipped from this country, as a two-letter code such as US or CN. Empty means any.

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

The country you buy for, as a two-letter code such as US, DE or BR. Prices, delivery days and the product selection follow it.

## `priceCurrency` (type: `string`):

The currency for every price, as a three-letter code such as USD, EUR or JPY.

## `monitorName` (type: `string`):

The run remembers the sold count and price of every product under this name and compares the next run against it. Use one name per schedule, or one for every search you repeat. Letters, numbers and hyphens.

## `onlyChanged` (type: `boolean`):

Save only products that sold at least one unit or changed price since the last run with this tracker name. The first run saves everything as the baseline. Products not saved are not charged.

## Actor input object example

```json
{
  "keywords": [
    "wireless earbuds"
  ],
  "searchUrls": [],
  "maxProductsPerSearch": 60,
  "maxProducts": 1000,
  "sort": "best_match",
  "freeShippingOnly": false,
  "choiceOnly": false,
  "shipToCountry": "US",
  "priceCurrency": "USD",
  "monitorName": "default",
  "onlyChanged": false
}
```

# Actor output Schema

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

One row per product with price, sold count and the change since the last run.

## `searches` (type: `string`):

One record per keyword or address: how many products AliExpress listed, how many were read, matched and saved, and what went wrong.

# 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"
    ],
    "searchUrls": [],
    "maxProductsPerSearch": 60
};

// Run the Actor and wait for it to finish
const run = await client.actor("pumpkinapi/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"],
    "searchUrls": [],
    "maxProductsPerSearch": 60,
}

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

```

## MCP server setup

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