# AliExpress Product Search Scraper | Prices, Sold Count & Deals (`tactful_anvil/aliexpress-product-search-scraper`) Actor

Search AliExpress by keyword or URL: sale/original price, discount, sold count, rating, ship-from, sponsored & Choice flags, stock hints. Sort by orders/price; filter price range, ship-from, free shipping, Choice. Any currency/region. Monitor mode for new & price changes. $1.60 per 1,000 products.

- **URL**: https://apify.com/tactful\_anvil/aliexpress-product-search-scraper.md
- **Developed by:** [Mr Zack](https://apify.com/tactful_anvil) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## AliExpress Product Search Scraper — Prices, Sold Count, Ratings & Deals

Search AliExpress by **keyword or URL** and get every result as clean JSON: sale & original price, discount %, **sold count**, star rating, ship-from warehouse, sponsored / Choice flags, low-stock hints, images and listing date. Sort by **orders** (best-sellers first), price; filter by price range, ship-from country, free shipping, sale, Choice. Pick your **currency and ship-to region** so prices are never geo-converted. **Monitor mode** pushes only new or price-changed listings on scheduled runs. No browser, no API key, no proxies — **$1.60 per 1,000 products**.

### Who uses this

- **Dropshippers & Amazon/TikTok Shop sellers** — find what's actually selling (`sortBy: orders`) and source it at the right price bracket; compare with our Amazon and TikTok Shop scrapers.
- **Price-tracking & repricing tools** — `onlyNew` + a schedule = a change feed of new listings and price moves per keyword, charged only for what changed.
- **Market researchers & brands** — free `market-summary` per keyword: total results, price buckets, median price, sold totals, ship-from split, sponsored share, top-5 sellers.
- **Affiliates & deal sites** — `saleOnly`, `discountPct`, `lowStock` ("only 1 left"), Choice listings.

### Input

| Field | Description |
|---|---|
| `keywords` | Search terms, one per line. |
| `searchUrls` | Full AliExpress search/category URLs (filters below are added on top). |
| `maxProducts` | Per keyword, 60 per page (max 3,000). |
| `sortBy` | `default` (best match) / `orders` / `price_asc` / `price_desc`. |
| `minPrice`, `maxPrice`, `shipFrom` | Price range and ISO-2 warehouse country (CN, US, ES, PL…). |
| `freeShippingOnly`, `saleOnly`, `choiceOnly` | AliExpress' own filters. |
| `includeSponsored`, `minSold` | Free pre-filters. |
| `currency`, `region` | e.g. `USD`+`US`, `EUR`+`DE`, `BRL`+`BR` — sets AliExpress preferences so prices match what a local shopper sees. |
| `onlyNew`, `priceChangeMinPct` | Monitor mode: remember seen listings per keyword+filters; later runs push only new ones or price moves ≥ N %. |
| `includeMarketSummary` | Free summary row per keyword. |

```json
{ "keywords": ["air fryer", "wireless earbuds"], "sortBy": "orders", "maxProducts": 120, "minPrice": 20, "maxPrice": 80, "shipFrom": "US", "currency": "USD", "region": "US" }
```

### Output

**`product`**

```json
{ "type": "product", "keyword": "air fryer", "productId": "3256805916160088", "url": "https://www.aliexpress.com/item/3256805916160088.html",
  "title": "10L Large Capacity Electric Air Fryers Oil-free Automatic Household Kitchen 360°Baking Convection Oven Deep Fryer without Oil",
  "salePrice": 63.1, "originalPrice": 198.9, "currency": "USD", "discountPct": 68, "soldCount": 209, "soldText": "209 sold", "rating": 4.4,
  "shipFrom": "CN", "isSponsored": false, "isChoice": false, "lowStock": null, "tags": ["New shoppers save $135.8", "Lowest price in 90 days"],
  "listedAt": "2023-10-06", "image": "https://ae-pic-a1.aliexpress-media.com/kf/S0ab8ce42aa6e42e58a3b9acf43092c0al.jpg", "images": ["…"],
  "page": 1, "position": 2, "isNew": true, "priceChanged": false, "previousPrice": null, "sortBy": "orders", "region": "US", "scrapedAt": "2026-09-07T12:04:21Z" }
```

**`market-summary`** (free): `totalResults, scanned, sponsored, choice, minPrice, medianPrice, avgPrice, maxPrice, avgDiscountPct, withSoldCount, totalSold, medianSold, avgRating, shipFrom{CN,US,…}, priceBuckets{under10…over100}, topSold[5]`.

Keywords that fail (blocked page, layout change) are pushed as `type: "failed"` and **never charged**.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Product | $0.0016 |
| Actor start | $0.001 |

1,000 products ≈ **$1.60**. Market summaries and failed rows are free. In monitor mode you pay only for new / changed listings.

### Notes

- `soldCount` and `rating` are shown by AliExpress only on part of the cards (roughly a third on best-match, most on `orders` sort); `shipFrom` is available for all cards.
- AliExpress prices wobble by a few cents between requests (coupon logic) — `priceChangeMinPct` (default 5 %) keeps monitor mode quiet.
- Search results only: product-page details (variants, store rating, reviews) are behind an anti-bot wall and are out of scope of this actor.
- Related: **Amazon Product Search & Details Scraper**, **TikTok Shop Scraper**, **YouTube Channel & Shorts Scraper** on this profile.

### Changelog

- **0.0.3 (9 Sep 2026)** — Escalating egress per page: `direct ×2` with a generated browser TLS/header fingerprint (got-scraping), then a proxy `×2` rotating sessions — your `proxyConfiguration` if supplied, otherwise the Apify datacenter proxy included in your plan ($0). New optional input `proxyConfiguration` (pick residential for very large runs). `SUMMARY` now reports `blockedDirect`, `directRetries`, `proxyUsed`, `proxyBlocked`. Charging is wrapped so a billing hiccup cannot kill a run that already produced rows. **No price change, no field removed.**

### Found this useful? A review helps more than you'd think

If this Actor saved you time, a short review on the **Reviews** tab of this Store page takes 30 seconds and is the only signal other buyers have before they spend anything. If something is broken instead, open a ticket on the **Issues** tab — parser bugs and field requests get fixed.

**Related Actors from the same account**

- [Amazon Scraper AIO](https://apify.com/tactful_anvil/amazon-product-search-scraper)
- [TikTok Shop Scraper AIO](https://apify.com/tactful_anvil/tiktok-shop-scraper)

# Actor input Schema

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

Search terms, one per line. Each keyword is scraped up to Max products (60 per page).

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

Full AliExpress search/category URLs (aliexpress.com/w/…, /category/…). Filters below are added on top.

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

60 per page; pages are fetched until this limit or the end of results.

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

AliExpress sort order. Use Orders to get best-sellers first.

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

Lower price bound in the selected currency (0 = none).

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

Upper price bound in the selected currency (0 = none).

## `shipFrom` (type: `string`):

ISO-2 country code, e.g. CN, US, ES, PL. Empty = all warehouses.

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

Apply AliExpress' Free shipping filter.

## `saleOnly` (type: `boolean`):

Apply AliExpress' Sale filter (discounted listings).

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

Only AliExpress Choice listings (fast shipping, free returns).

## `includeSponsored` (type: `boolean`):

Sponsored cards are flagged isSponsored=true; untick to drop them for free.

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

Free pre-filter: keep only listings with at least this many orders shown.

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

ISO currency code for prices (USD, EUR, GBP, BRL, …). Set via AliExpress preference cookie.

## `region` (type: `string`):

ISO-2 ship-to country used for availability, local warehouses and prices (US, DE, BR, …).

## `onlyNew` (type: `boolean`):

Remembers products per keyword+filters in a named key-value store; later runs push (and charge) only listings that are new or whose sale price changed. Perfect for scheduled runs.

## `priceChangeMinPct` (type: `integer`):

In monitor mode, a seen product is re-pushed only when its sale price moved by at least this percentage (AliExpress prices wobble by a few cents between requests).

## `includeMarketSummary` (type: `boolean`):

Per keyword: total results, min/median/avg/max price, price buckets, sold totals, sponsored & Choice share, ship-from breakdown, top-5 sellers. Never charged.

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

Optional. Only used as a fallback when AliExpress blocks the direct request from Apify’s IP. Leave empty to fall back to the Apify datacenter proxy (included in your plan); pick residential here for very large runs.

## Actor input object example

```json
{
  "keywords": [
    "air fryer"
  ],
  "maxProducts": 60,
  "sortBy": "default",
  "freeShippingOnly": false,
  "saleOnly": false,
  "choiceOnly": false,
  "includeSponsored": true,
  "minSold": 0,
  "currency": "USD",
  "region": "US",
  "onlyNew": false,
  "priceChangeMinPct": 5,
  "includeMarketSummary": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (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": [
        "air fryer"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tactful_anvil/aliexpress-product-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": ["air fryer"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("tactful_anvil/aliexpress-product-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": [
    "air fryer"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call tactful_anvil/aliexpress-product-search-scraper --silent --output-dataset

```

## MCP server setup

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