# AliExpress Scraper — Products, Prices, Discounts & Sales (`jeffev/aliexpress-products-scraper`) Actor

Scrape AliExpress search results: product title, price, original price, discount %, units sold, rating, free shipping, Choice badge, images and product URL, in the country and currency you choose. Sort by orders or price and filter by price, rating, sales or free shipping.

- **URL**: https://apify.com/jeffev/aliexpress-products-scraper.md
- **Developed by:** [Jefferson Valandro](https://apify.com/jeffev) (community)
- **Categories:** E-commerce
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.56 / 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 Scraper — Products, Prices, Discounts & Sales

Scrape **AliExpress search results**: product title, **price, original price and discount %, units sold, rating**, free shipping, **Choice badge**, sponsored flag, main and gallery images, listing date and product URL, for the **country and currency you choose** (prices and shipping change by country).

Sort by **most orders** or price and filter by price range, rating, units sold, free shipping or no ads.

Built for **dropshipping product research, price monitoring, competitor and trend analysis, and e-commerce catalog building**.

### Why this one

- **Units sold as a number** (`sold`), so you can rank winning products instantly.
- **Any ship-to country and currency** (US/USD, BR/BRL, DE/EUR, GB/GBP...).
- **Winning-product filters**: minimum sales, minimum rating, price range, free shipping only, exclude sponsored. Filtered products are not charged.
- **Fast**: reads the search page data directly, 60 products per page, no browser.

### Input

Best-selling wireless earbuds under $20 with 4.5+ stars, shipped to the US:

```json
{
  "searchQueries": ["wireless earbuds", "bluetooth headphones"],
  "sortBy": "orders",
  "maxPrice": 20,
  "minRating": 4.5,
  "minSold": 1000,
  "shipTo": "US",
  "currency": "USD",
  "maxProductsPerSearch": 300
}
```

### Output

| Field | Description |
|---|---|
| `productId`, `title`, `url`, `image`, `images` | product |
| `price`, `originalPrice`, `discountPercent`, `currency`, `formattedPrice` | price |
| `sold`, `soldText`, `rating` | popularity |
| `freeShipping`, `choice`, `sponsored`, `listedSince` | badges |
| `search` | which search returned it |

### Example output

One real item from a test run (long texts and lists shortened):

```json
{
  "type": "product",
  "productId": "3256806852238319",
  "title": "Lenovo LP75 Sports Wireless Earphones with Mics,Button Control, LED Power Display,Hifi Stereo Sound Bluetooth 5.3 TWS Headphones",
  "url": "https://www.aliexpress.com/item/3256806852238319.html",
  "price": 11.58,
  "originalPrice": 31.76,
  "discountPercent": 63,
  "currency": "USD",
  "formattedPrice": "US $11.58",
  "rating": 4.9,
  "soldText": "10,000+ sold",
  "sold": 10000,
  "freeShipping": true,
  "choice": true,
  "listedSince": "2024-05-24",
  "image": "https://ae-pic-a1.aliexpress-media.com/kf/S69314da165114ce2b8c11234aeb02395C.png",
  "images": [
    "https://ae-pic-a1.aliexpress-media.com/kf/S69314da165114ce2b8c11234aeb02395C.png",
    "https://ae-pic-a1.aliexpress-media.com/kf/S2d4daa9047144742bec49f0d441fc371v.jpg",
    "https://ae-pic-a1.aliexpress-media.com/kf/Sa31df6dcbfcd45d4a85967b982f71df3O.jpg"
  ],
  "sponsored": false,
  "search": "wireless earbuds"
}
```

### Notes

- Prices are AliExpress search prices for the chosen country; welcome-deal prices for new customers may appear on some items.

### Feedback

Found a problem or need a field? Open an issue in the **Issues** tab: every issue is read and answered. If the actor helped you, a review on the Store helps a lot.

### How much does it cost?

You pay only for results delivered, at a fixed price per item. **Apify platform usage is included** in that price, so there are no compute costs on top. Errors and items that couldn't be found are free.

| What you get | Price | Example |
|---|---|---|
| Product | $0.0008 each | 1,000 products = $0.80 |

The Apify **Free plan includes $5 of monthly credit**, enough for about **6,250 products** per month at no cost. You can also set a maximum spend per run.

On paid Apify plans it gets cheaper automatically: **10% off on Starter, 20% on Scale and 30% on Business**.

# Actor input Schema

## `searchQueries` (type: `array`):

Product keywords, one per line (60 products per results page).

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

Maximum products per search.

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

Order of the results.

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

Two-letter country code that prices and shipping are shown for (US, BR, GB, DE, FR...).

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

Currency code (USD, EUR, BRL, GBP...).

## `minPrice` (type: `number`):

Skip products cheaper than this.

## `maxPrice` (type: `number`):

Skip products more expensive than this.

## `minRating` (type: `number`):

Skip products rated below this (0 to 5).

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

Skip products with fewer sales (e.g. 1000).

## `onlyFreeShipping` (type: `boolean`):

Keep only products with free shipping.

## `excludeSponsored` (type: `boolean`):

Skip sponsored (ad) results.

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

Search URLs like https://www.aliexpress.com/w/wholesale-phone-case.html (the keyword is read from the URL).

## Actor input object example

```json
{
  "searchQueries": [
    "wireless earbuds"
  ],
  "maxProductsPerSearch": 60,
  "sortBy": "bestMatch",
  "shipTo": "US",
  "currency": "USD",
  "onlyFreeShipping": false,
  "excludeSponsored": false
}
```

# Actor output Schema

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

AliExpress products.

# 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 = {
    "searchQueries": [
        "wireless earbuds"
    ],
    "maxProductsPerSearch": 60
};

// Run the Actor and wait for it to finish
const run = await client.actor("jeffev/aliexpress-products-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 = {
    "searchQueries": ["wireless earbuds"],
    "maxProductsPerSearch": 60,
}

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

```

## MCP server setup

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