# AliExpress Product Scraper (Search, Prices, Sold Counts) (`locaihost/aliexpress-scraper`) Actor

AliExpress search and product pages, logged out: price, original price, discount, exact sold count, rating, review count, store, shipping cost and time, SKUs and specifications. Only-price-changes mode returns a row just when a product is new or its price moved. PRICE_TODO per 1,000 products.

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

## Pricing

from $1.38 / 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 Product Scraper (Search, Prices, Sold Counts)

Read AliExpress the way a shopper sees it, logged out: search any keywords (or paste search links), pick the ship-to country and currency, and get one row per product with title, price, original price, discount, the exact sold count behind the rounded label, star rating, category and images. A re-run of the same search can return only what is new or re-priced since last time. $2.50 per 1,000 products. The prefill (usb cable, shipped to the US, priced in USD, 40 products) finishes in about 15 seconds.

### How do I start?

Paste this into the input (JSON tab) and press Start:

```json
{
    "keywords": ["usb cable"]
}
```

That reads the current usb cable results in best-match order, 40 products. Want the most-ordered instead, shipped to the UK and priced in pounds?

```json
{
    "keywords": ["usb cable"],
    "shipTo": "GB",
    "currency": "GBP",
    "sort": "orders",
    "maxProducts": 100
}
```

A pasted search link works too, and can sit next to keywords in the same run:

```json
{
    "keywords": ["usb cable", "hdmi"],
    "urls": ["https://www.aliexpress.com/w/wholesale-led-strip-light.html"]
}
```

Both `/w/wholesale-...html` links and `/wholesale?SearchText=...` links are accepted. Product links (`/item/...html`) are not read: AliExpress puts its product pages behind a check page, so the run skips them with a note. Search for the product's title instead.

The whole input is seven fields: `keywords` and `urls` name the work, `shipTo` and `currency` place the shopper, `sort` orders the results and `maxProducts` caps the rows. Under Advanced (optional), `onlyPriceChanges` returns only what moved since your last run.

### What data can I get?

One row per product:

| Field | What it holds |
|---|---|
| `keyword`, `position` | The search the row came from and the product's place in it, 1 and up |
| `productId`, `title`, `url`, `images` | Product id, title, product page link, image list |
| `price`, `currency`, `originalPrice`, `discount` | Sale price with its currency code (USD, GBP, EUR, ...), the crossed-out original, and the discount percent |
| `soldCount`, `soldText` | The exact number of sold items when the page carries it, else the floor of the rounded label, plus the label as shown ("50,000+ sold") |
| `rating` | Star rating as shown on the card |
| `category`, `categoryId` | The search's own Category filter names the card's category when it can |
| `newProduct`, `previousPrice`, `priceChange` | This product at your last run of the same search: whether it is new, what its price was, and how much it moved (negative is down) |
| `detail` | Always `card`: the row comes from the search card |
| `scrapedAt` | When the row was read, ISO date |

Example product row:

```json
{
    "type": "product",
    "keyword": "usb cable",
    "position": 1,
    "productId": "3256812906139628",
    "title": "For PD 35W Fast Quick Charger USB Type C For",
    "url": "https://www.aliexpress.com/item/3256812906139628.html",
    "price": 0.33,
    "currency": "USD",
    "originalPrice": 3.77,
    "discount": 91,
    "soldCount": 85542,
    "soldText": "50,000+ sold",
    "rating": 4.9,
    "category": "Mobile Phone Cables",
    "images": ["https://ae-pic-a.aliexpress-media.com/kf/Example.jpg"],
    "detail": "card",
    "scrapedAt": "2026-11-14T15:00:00.000Z"
}
```

### Free rows, never charged

Every run adds free summary rows: one per search saying what was found, returned and skipped as unchanged, one per search that could not be read or came back empty, and one run summary. None of them is charged.

### What makes it different?

- The exact sold count. AliExpress shows shoppers a rounded label ("50,000+ sold"); the page also carries the exact number it was rounded from, and that is what lands in `soldCount`.
- Ship-to and currency that hold. Both are set as the page's own preference cookie, so the prices you get are the prices a shopper in that country sees, in the currency you asked for.
- Only what changed. With `onlyPriceChanges` on, a product comes back only when it is new for that search or its price moved; unchanged products are skipped and counted, and re-priced rows carry `previousPrice` and `priceChange`.
- Numbers you can use. Dates are ISO, prices and counts are numbers, currencies are ISO codes, never decorative strings.
- Nothing charged for bad news. Blocks, empty searches and unreadable links end up as free summary rows; bad input ends the run with a clear message and no charge.

### How much does it cost?

You pay per result: $2.50 per 1,000 products on the Starter plan (lower on Scale and Business), plus Apify's $0.00005 start charge per run. The first search page usually covers a whole default run. Free summary rows are never charged. On a free Apify plan the run stops at 100 rows and 10 search pages; any paid plan removes those caps.

### How do I track prices over time?

Schedule the run (same searches, same ship-to and currency) with `onlyPriceChanges` on. Each run then returns only new and re-priced products, each with `previousPrice` and `priceChange`, and remembers everything else for the next run. The memory lives in the Actor's own named key-value store, so it survives between runs.

### Is it allowed?

The Actor reads pages any logged-out visitor can see, one at a time, through Apify's proxy, and never logs in, never creates accounts and never sends account cookies. AliExpress's terms place limits on automated access, and what you do with the data (reselling listings, contacting sellers, publishing prices) may carry its own rules and local laws; check both before you build on it. You are responsible for using it lawfully.

### FAQ

**Which countries and currencies?** `shipTo` takes any two-letter country code (US, GB, DE, ...), `currency` any three-letter code (USD, EUR, BRL, ...). The input form offers the common ones; the JSON tab accepts all.

**What can `sort` be?** `default` (best match), `orders` (most ordered), `price_asc` (cheapest first), `price_desc` (dearest first).

**How many products can I get?** `maxProducts` up to 400 per run (60 cards per search page, up to 10 searches). Split bigger crawls into several runs.

**A search came back empty.** That is AliExpress answering, not a failure: the run stays SUCCEEDED, you get a free summary row saying so, and nothing is charged for it.

**Can I get SKUs, specifications or shipping per product?** Not at the moment. Those sit on the product pages, which AliExpress keeps behind a check page for automated visitors, so this Actor reads search results only.

**Can I call it from my own tools?** Yes, the input is plain JSON, the aliases `searchTerms`, `startUrls` and `maxItems` are accepted too, and the output is a dataset you can export as JSON, CSV or XML and feed into anything, including your own agents and pipelines.

# Changelog

This Actor's version history is a separate document: https://apify.com/locaihost/aliexpress-scraper/changelog.md

# Actor input Schema

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

What to search for on AliExpress, for example usb cable or led strip light. Each term becomes one search with its own free summary row.

## `urls` (type: `array`):

AliExpress search links, like https://www.aliexpress.com/w/wholesale-usb-cable.html. Product links are not read: AliExpress puts product pages behind a check page.

## `shipTo` (type: `string`):

The country prices, availability and delivery estimates are shown for. Any ISO code works in the JSON input even if it is not in the list.

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

Currency for every price in the output. Any ISO code AliExpress supports works in the JSON input even if it is not in the list.

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

How AliExpress orders the search results.

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

The most product rows this run returns in total across all searches (60 products fit on one search page).

## `onlyPriceChanges` (type: `boolean`):

Return a product row only when the product is new for this search since your last run, or its price moved. Everything else is skipped and not charged.

## Actor input object example

```json
{
  "keywords": [
    "usb cable",
    "wireless earbuds"
  ],
  "urls": [
    "https://www.aliexpress.com/w/wholesale-phone-case.html",
    "https://www.aliexpress.com/item/1005006959700436.html",
    "1005013092454380"
  ],
  "shipTo": "US",
  "currency": "USD",
  "sort": "default",
  "maxProducts": 40,
  "onlyPriceChanges": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Price, original price, discount, exact sold count, rating, store and shipping, newest first.

## `summary` (type: `string`):

One free row per search (found, returned, new products, price changes) and one free run summary.

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

Searches read, products returned, new products, price changes and cost.

# 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": [
        "usb cable"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/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": ["usb cable"] }

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

```

## MCP server setup

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