# AliExpress Scraper - Product Search, Prices, Sold Count (`kalilfagundes.w/aliexpress-scraper`) Actor

\[Limited Launch Offer $2.5/1K] Scrape AliExpress search results and deals by keyword or category URL: prices, discount, sold count, rating, Choice badge, delivery. 24 ship-to countries, no browser.

- **URL**: https://apify.com/kalilfagundes.w/aliexpress-scraper.md
- **Developed by:** [Scrape With Me](https://apify.com/kalilfagundes.w) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.13 / 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 - Product Search, Prices & Sold Count

Scrape **AliExpress search results** by keyword or from any AliExpress search/category URL - no login, no browser.
Get every product's **price, original price and discount**, **sold count**, **star rating**, delivery estimate,
AliExpress Choice badge, deal badges, images and product link, for the ship-to country and currency you choose.
Up to 3,600 products per search (60 pages). Export to JSON, CSV or Excel, or call it as an API.

### AliExpress prices, discounts and sold count - what you get

- Title, product ID and link, main image and gallery images.
- Price and original price, currency, price as shown, discount %.
- Sold count (exact when AliExpress exposes it, e.g. 8,302; otherwise from "10,000+ sold") and the text as shown.
- Star rating, delivery estimate, Choice flag, badges (savings, deals, free shipping), sponsored flag.
- Position in the search and page number, listed-since date.

### Why this scraper

- **Fast and light**: reads the data AliExpress embeds in its search pages - 60 products per request, no browser.
- **Market-aware**: pick the ship-to country and currency (US, UK, EU countries, Canada, Australia, Brazil and more).
- **Filters**: sort by best match, orders (best sellers) or price; minimum and maximum price; or paste a URL with any
  filters already applied.
- **Low price** per product (see Pricing).

### Use cases

- Product research and dropshipping: find best sellers and their prices in your niche.
- Price monitoring and competitor tracking (schedule daily runs).
- Market research datasets: prices, discounts and sales volume per keyword.

### Input example

```json
{
  "searchQueries": ["wireless earbuds", "led strip lights"],
  "sortBy": "orders",
  "minPrice": 5,
  "maxPrice": 40,
  "shipToCountry": "US",
  "maxProductsPerSearch": 300
}
```

### Output example

```json
[
  {
    "type": "product",
    "productId": "3256812453673234",
    "url": "https://www.aliexpress.us/item/3256812453673234.html",
    "title": "Lenovo XT53 Wireless Bluetooth 5.3 Earphones Gaming Low Latency Dual Mode Music Earbuds Sports In-Ear Headset With Mic New Gifts",
    "price": 11.58,
    "originalPrice": 31.77,
    "currency": "USD",
    "priceText": "US $11.58",
    "discountPercent": 63,
    "soldText": "10,000+ sold",
    "soldCount": 46870,
    "rating": 4.9,
    "deliveryEstimate": "Delivery: Oct 19 - 24",
    "isChoice": true,
    "badges": [
      "Save $20.19"
    ],
    "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/S7c0a301a1f29413097d40e9f05eafcdbZ.png",
    "images": [
      "https://ae-pic-a1.aliexpress-media.com/kf/S7c0a301a1f29413097d40e9f05eafcdbZ.png",
      "https://ae-pic-a1.aliexpress-media.com/kf/Acab955b08c7f459fa83a2512fb6a517e0.jpg"
    ],
    "listedSince": "2026-07-02",
    "isAd": false,
    "rank": 1,
    "page": 1,
    "source": "search",
    "input": "wireless earbuds",
    "scrapedAt": "2026-10-13T21:56:12Z"
  }
]
```

### Run it on a schedule and connect it to your tools

**Schedule:** in Apify Console open *Schedules → Create*, pick this actor and your input, and set it to run
daily or weekly for a current product search dataset for price and assortment comparisons. Each run returns the full, current result set as a new dataset.

**Integrations** (Actor → *Integrations* tab, no code):

- **Google Sheets** — append every run's rows to a sheet.
- **Make, Zapier, n8n** — start the actor from a scenario/zap/workflow and use the rows in the next steps.
- **Webhook** — get a POST to your endpoint when a run succeeds, then download the dataset.
- **Slack / email** — notify your team when a scheduled run finishes.

**AI agents (MCP)** — Claude, ChatGPT, Cursor, VS Code or any MCP client can run it as a tool: add the Apify MCP
server `https://mcp.apify.com?actors=kalilfagundes.w/aliexpress-scraper` (sign in with your Apify account) and ask for the data in
plain language. The agent fills the input from the input schema and reads the dataset back.

**API** — call it from your code (`pip install apify-client` / `npm i apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("kalilfagundes.w/aliexpress-scraper").call(run_input={
    "searchQueries": [
        "wireless earbuds",
        "led strip lights"
    ],
    "sortBy": "orders",
    "minPrice": 5,
    "maxPrice": 40,
    "maxProductsPerSearch": 130,
    "maxItems": 300
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('kalilfagundes.w/aliexpress-scraper').call({
  "searchQueries": [
    "wireless earbuds",
    "led strip lights"
  ],
  "sortBy": "orders",
  "minPrice": 5,
  "maxPrice": 40,
  "maxProductsPerSearch": 130,
  "maxItems": 300
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Related actors

- [Amazon Price Tracker & Product Scraper - ASIN, BSR, 23 Sites](https://apify.com/kalilfagundes.w/amazon-product-scraper)
- [Walmart Product Search Scraper - Prices, Ratings, Sellers](https://apify.com/kalilfagundes.w/walmart-scraper)
- [TikTok Shop Product Data Scraper - Sales, Prices & Reviews](https://apify.com/kalilfagundes.w/tiktok-shop-scraper)

### Pricing

Pay only for the products you get (launch offer, lower on higher Apify plans):

| Event | Price |
|---|---|
| Product | $2.50 per 1,000 |
| Run start | $0.002 |

Example: 10 keywords x 300 products = 3,000 products = $7.50.

### Limits and FAQ

- Search results only: product page details (full description, variants/SKUs, seller info, reviews) are not included
  yet. Tell us on the Issues tab if you need them.
- AliExpress shows up to 60 pages per search; use more specific keywords or price ranges to go deeper.
- When AliExpress slows a session down the scraper continues on a new proxy IP automatically.
- Only public data is collected. No login, cookies or CAPTCHA solving.

Questions or a missing field? Open an issue on the Issues tab - feedback is answered quickly.

# Actor input Schema

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

Products matching each keyword.

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

AliExpress search or category pages, e.g. https://www.aliexpress.us/w/wholesale-wireless-earbuds.html (filters in the URL are kept).

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

Order of the results.

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

In the selected currency.

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

In the selected currency.

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

Prices, shipping and availability for this country.

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

ISO code, e.g. USD, EUR, GBP. Default: the currency of the ship-to country.

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

60 per page, up to 60 pages.

## `maxItems` (type: `integer`):

Stop after this many products. 0 = no limit.

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

Used when AliExpress blocks a session: the run continues on a new proxy IP.

## Actor input object example

```json
{
  "searchQueries": [
    "phone case"
  ],
  "sortBy": "best_match",
  "shipToCountry": "US",
  "maxProductsPerSearch": 60,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

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

OUTPUT record: per search, products saved, pages and total results.

# 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": [
        "phone case"
    ],
    "maxProductsPerSearch": 60,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kalilfagundes.w/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 = {
    "searchQueries": ["phone case"],
    "maxProductsPerSearch": 60,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("kalilfagundes.w/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 '{
  "searchQueries": [
    "phone case"
  ],
  "maxProductsPerSearch": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call kalilfagundes.w/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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