# AliExpress Search Scraper - Products, Prices, Sales & Ratings (`renzomacar/aliexpress-search-scraper`) Actor

Search AliExpress by keyword or search URL and get every product with price, original price, discount, rating, units sold, ship-from country, store, delivery and images. Choose ship-to country and currency, sort by orders or price, filter by rating and sales. No login.

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

## Pricing

$1.50 / 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 Search Scraper - Products, Prices, Sales & Ratings

Type a search term (or paste an AliExpress search URL) and get every product AliExpress shows for it: price, original price, discount, star rating, units sold, ship-from country, store, delivery and images. Pick the ship-to country and currency, sort by orders or price, and keep only the rows you need. No login, no cookies, no API key.

### What you get

One row per product, in the order AliExpress shows them:

| Field | Example |
|---|---|
| `query` / `position` / `page` | `yoga mat`, 1, 1 |
| `productId` / `url` | `1005012610567429`, `https://www.aliexpress.com/item/1005012610567429.html` |
| `title` | VIKAMA 1/2-Piece Minimalist Oval Floor Mat Set, Non-Slip and Quick-Drying... |
| `price` / `originalPrice` / `currency` | 3.77 / 24.55 / `USD` |
| `discountPercent` / `priceText` | 84 / `US $3.77` |
| `rating` | 5 (null when the product has no reviews yet) |
| `sold` / `soldText` | 16 / `16 sold` (`10K+ sold` becomes 10000) |
| `shipFrom` / `shipTo` | `CN` / `US` |
| `freeShipping` / `deliveryText` | false / `Delivery: Nov. 30 - Dec. 05` |
| `storeName` / `sellerCompany` | `Shop1105149047 Store` (when AliExpress shows it on the card) |
| `badges` | `["New shoppers save $20.78", "Delivery: Nov. 30 - Dec. 05"]` |
| `imageUrl` / `images` | main image and the gallery images shown in the results |
| `isAd` / `newShopperDeal` | sponsored card / price is a new-shopper welcome deal |
| `listedAt` / `scrapedAt` | when the product was listed / when it was read |

The `productId` is the one in the product page URL, so it joins directly with product-detail and review scrapers.

### Input

| Field | What it does |
|---|---|
| `queries` | One search per line, as you would type it on AliExpress. |
| `startUrls` | AliExpress search or category pages copied from the browser, with their own filters. Other URLs are skipped with a warning. |
| `maxResults` | Products per search (default 100). AliExpress shows 60 per page and up to 60 pages. |
| `sortBy` | `best_match`, `orders` (best sellers first), `price_asc`, `price_desc`. |
| `shipTo` / `currency` | Two-letter country and three-letter currency, for example `GB` + `GBP`, `DE` + `EUR`, `BR` + `BRL`. AliExpress changes prices, stock and delivery by destination. |
| `shipFrom` | Only products sent from a warehouse in that country (`US`, `ES`, `FR`, `CN`...). |
| `minPrice` / `maxPrice` | Price range in the chosen currency, applied by AliExpress. |
| `minRating` / `minSold` | Keep only products rated at least this, or with at least this many sold. |
| `includeAds` | Off = organic results only. |
| `proxyConfiguration` | Not needed. Apify Proxy is used on its own: datacenter first, residential if AliExpress stops answering. |

Example: best sellers delivered to the UK, priced in pounds, rated 4.5 or more, no sponsored cards:

```json
{
  "queries": ["phone case", "led strip lights"],
  "maxResults": 200,
  "sortBy": "orders",
  "shipTo": "GB",
  "currency": "GBP",
  "minRating": "4.5",
  "includeAds": false
}
```

### Uses

- **Product research and dropshipping**: find what sells (`sold`, `sortBy: orders`) in a niche and at what price, per destination country.
- **Price monitoring**: run the same searches on a schedule and compare `price`, `discountPercent` and `badges` over time.
- **Competitor and supplier lists**: stores, ship-from warehouses and listing dates for a category.
- **Catalog and feed building**: titles, images and product URLs ready for a spreadsheet, a database or an LLM.

### Call it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/renzomacar~aliexpress-search-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "content-type: application/json" \
  -d '{"queries":["yoga mat"],"maxResults":60,"sortBy":"orders"}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("renzomacar/aliexpress-search-scraper").call(run_input={
    "queries": ["yoga mat"], "maxResults": 120, "sortBy": "orders",
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["sold"], p["price"], p["currency"], p["title"][:60])
```

The Actor also works as a tool for Claude, ChatGPT and other AI agents through the Apify MCP server (`https://mcp.apify.com/?tools=renzomacar/aliexpress-search-scraper`).

### Good to know

- Results are read from the public search pages, the same ones a visitor sees without signing in. Prices and ranking can differ a little from what a signed-in shopper sees.
- Cards marked `newShopperDeal` show AliExpress' welcome price for first-time buyers; the regular price can be higher.
- `sold` turns AliExpress' rounded labels into numbers (`10K+ sold` becomes 10000).
- Store name is filled only when AliExpress prints it on the search card; open the product page for the full seller profile.
- A run summary (searches, totals per search, rows left out by each filter, connection used) is saved in the key-value store as `SUMMARY`.

### Price

Pay per product returned, with the price shown on this page. Rows left out by your filters are not charged, and you can set a maximum cost per run.

# Actor input Schema

## `queries` (type: `array`):

One search per line, as you would type it on AliExpress (for example yoga mat, wireless earbuds).

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

Optional: AliExpress search or category pages copied from the browser, with their own filters (https://www.aliexpress.com/w/wholesale-yoga-mat.html?...).

## `maxResults` (type: `integer`):

AliExpress shows 60 products per page and up to 60 pages.

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

The order AliExpress shows the results in.

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

Two-letter country code (US, GB, DE, FR, BR, AU...). AliExpress changes prices, stock and delivery by destination.

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

Three-letter code: USD, EUR, GBP, BRL, CAD, AUD...

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

Optional: only products sent from a local warehouse, such as US, ES, FR or CN.

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

Optional, in the chosen currency.

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

Optional, in the chosen currency.

## `minRating` (type: `string`):

Optional: keep only products rated at least this (for example 4.5). Products without a rating are left out when this is set.

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

Optional: keep only products with at least this many sold (AliExpress rounds large numbers: 1,000+, 10,000+).

## `includeAds` (type: `boolean`):

Off = only organic results. Rows left out by any filter are not charged.

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

Not needed. Apify Proxy is used on its own: datacenter first, residential if AliExpress stops answering.

## Actor input object example

```json
{
  "queries": [
    "yoga mat"
  ],
  "maxResults": 100,
  "sortBy": "best_match",
  "shipTo": "US",
  "currency": "USD",
  "includeAds": true
}
```

# Actor output Schema

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

One row per product found, with price, discount, rating, units sold and shipping.

# 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 = {
    "queries": [
        "yoga mat"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("renzomacar/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 = { "queries": ["yoga mat"] }

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

```

## MCP server setup

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