# Cheap AliExpress Scraper - Products, Prices & Ratings (`themineworks/aliexpress-products`) Actor

Cheapest AliExpress product scraper: titles, prices, ratings & orders. $2.50/1,000 results, 25 free, pay-per-result, no subscription. Works in Claude, ChatGPT & any MCP-compatible AI agent.

- **URL**: https://apify.com/themineworks/aliexpress-products.md
- **Developed by:** [The Mine Works](https://apify.com/themineworks) (community)
- **Categories:** Business, Developer tools, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper - Products, Prices & Ratings

Search **AliExpress** by keyword and get clean, structured product data: title, price, currency, original (pre-discount) price, orders sold, star rating, store name, product ID, image URL and the canonical product link. No login, no API key. Built for analysts, dropshippers, price-trackers and AI agents.

Prices are **pinned to a currency you choose** so they never drift between proxy IPs (see *Currency stability* below) — a problem that silently corrupts most AliExpress scrapers.

Works in **Claude, ChatGPT and any MCP-compatible AI agent** via the Apify MCP server, and as a normal Apify Actor over the API or Console.

---

### What it does

Given a search keyword (e.g. `wireless earbuds`), the Actor opens the AliExpress search results page, reads the product list that AliExpress server-renders into the page (no flaky XHR replay needed), paginates through `&page=` until it has collected the number of products you asked for, deduplicates by product ID, and returns one tidy record per product.

It runs over **Apify Residential proxies** because AliExpress blocks datacenter IPs. Transport errors and anti-bot interstitials are caught and retried on a **fresh residential IP** automatically — the run never crashes on a network blip and never charges you for an empty result.

---

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `searchText` | string | yes | `wireless earbuds` | Product keyword to search for. |
| `maxResults` | integer | no | `60` | Max products to return (1–1000). Pagination walks pages until this many unique products are collected or results run out. |
| `country` | string | no | `US` | Ship-to country as a 2-letter ISO code (US, GB, DE, AU, …). Drives the forced currency. |
| `proxyConfiguration` | object | no | Residential / US | Apify proxy settings. **Residential is required** for AliExpress. |

#### Example input

```json
{
  "searchText": "mechanical keyboard",
  "maxResults": 100,
  "country": "US",
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US" }
}
````

***

### Output

One record per product, plus a final `summary` record. Example product record:

```json
{
  "title": "TWS Wireless Earbuds Bluetooth 5.3 Headphones HiFi Stereo",
  "price": 8.99,
  "currency": "USD",
  "original_price": 23.65,
  "orders_sold": 5000,
  "rating": 4.7,
  "store_name": "TechGadget Global Store",
  "product_id": "1005006123456789",
  "image_url": "https://ae01.alicdn.com/kf/Sabc123.jpg",
  "url": "https://www.aliexpress.com/item/1005006123456789.html",
  "scraped_at": "2026-06-16T09:30:00.000Z"
}
```

| Field | Description |
|-------|-------------|
| `title` | Product title as shown in search. |
| `price` | Current sale price (numeric), in the forced currency. |
| `currency` | Currency code (forced from `country`, e.g. `USD`). |
| `original_price` | Pre-discount / list price when present. |
| `orders_sold` | Lifetime orders/sold count, parsed to an integer (`5,000+` → `5000`). |
| `rating` | Average star rating, 0–5. |
| `store_name` | Seller / store name. |
| `product_id` | AliExpress product ID (stable dedupe key). |
| `image_url` | Primary product image. |
| `url` | Canonical product page URL. |
| `scraped_at` | ISO-8601 timestamp of capture. |

Fields that AliExpress does not expose for a given card are omitted rather than set to null.

***

### Currency stability (why prices don't drift)

AliExpress decides which **currency** and **shipping country** to display from the visitor's IP and geo cookies. Over a rotating residential pool that means the *same product* can come back priced in USD, EUR, GBP or INR on different requests — quietly poisoning any price analysis.

This Actor eliminates that. Every request forces the display currency and ship-to region **independently of the proxy IP**, via both the query string (`currency`, `region`, `locale`) and the `aep_usuc_f` geo cookie. Set `country: "US"` and every price comes back in USD no matter where the residential IP physically sits. Change `country` to switch the whole run to another market (e.g. `GB` → GBP, `DE` → EUR).

***

### Pricing — Pay Per Result

This Actor uses **Pay-Per-Event**: you are charged **$0.002 per product** delivered. The first **25 products per Apify account are free** (lifetime), so you can trial it at no cost. Empty searches, anti-bot blocks and failed runs deliver nothing and are **never charged**. You still pay Apify platform compute + residential proxy usage at standard rates.

| Volume | Product cost |
|--------|--------------|
| First 25 (lifetime) | Free |
| 1,000 products | ~$2.00 |
| 10,000 products | ~$20.00 |

***

### FAQ

**Do I need a proxy?** Yes — residential. AliExpress blocks datacenter IPs. The default Residential/US prefill works out of the box.

**Why residential and not datacenter?** AliExpress fingerprints and blocks datacenter ranges within a request or two. Residential IPs look like real shoppers and the Actor rotates to a fresh one on any block.

**Can I get more than one page?** Yes. Set `maxResults` higher and the Actor paginates automatically (proven across multiple pages), deduping by product ID.

**Why are some prices in a different currency than I expected?** They won't be if you set `country`. Currency is locked to the country's major currency (US→USD, GB→GBP, DE/FR/ES→EUR, etc.).

**Does it need login or cookies from me?** No. It reads only the public, server-rendered search results.

**Is this affiliated with AliExpress / Alibaba?** No. It only reads publicly available search pages. Use responsibly and in line with applicable terms and laws.

**The run finished with 0 products — why?** AliExpress likely served an anti-bot page on every retry for that IP batch, or the keyword genuinely has no results. Re-run (a fresh residential session usually clears it). You are not charged for zero results.

# Actor input Schema

## `searchText` (type: `string`):

Product keyword to search AliExpress for (e.g. "wireless earbuds", "running shoes", "phone case").

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

Maximum number of products to return. Pagination walks \&page= until this many unique products are collected or results run out.

## `country` (type: `string`):

Ship-to country as a 2-letter ISO code (e.g. US, GB, DE, AU). Currency is forced from this (US→USD, DE→EUR …) so prices stay reproducible regardless of which residential proxy IP serves the page.

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

AliExpress aggressively blocks datacenter IPs. RESIDENTIAL proxies are required for reliable access. Country is independent of the ship-to/currency setting above.

## Actor input object example

```json
{
  "searchText": "wireless earbuds",
  "maxResults": 20,
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "searchText": "wireless earbuds",
    "maxResults": 20,
    "country": "US",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("themineworks/aliexpress-products").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 = {
    "searchText": "wireless earbuds",
    "maxResults": 20,
    "country": "US",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("themineworks/aliexpress-products").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchText": "wireless earbuds",
  "maxResults": 20,
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call themineworks/aliexpress-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=themineworks/aliexpress-products",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Cheap AliExpress Scraper - Products, Prices & Ratings",
        "description": "Cheapest AliExpress product scraper: titles, prices, ratings & orders. $2.50/1,000 results, 25 free, pay-per-result, no subscription. Works in Claude, ChatGPT & any MCP-compatible AI agent.",
        "version": "0.1",
        "x-build-id": "erIQW1Bq4P6WXg2hi"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/themineworks~aliexpress-products/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-themineworks-aliexpress-products",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/themineworks~aliexpress-products/runs": {
            "post": {
                "operationId": "runs-sync-themineworks-aliexpress-products",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/themineworks~aliexpress-products/run-sync": {
            "post": {
                "operationId": "run-sync-themineworks-aliexpress-products",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchText": {
                        "title": "Search keyword",
                        "type": "string",
                        "description": "Product keyword to search AliExpress for (e.g. \"wireless earbuds\", \"running shoes\", \"phone case\")."
                    },
                    "maxResults": {
                        "title": "Max products",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of products to return. Pagination walks &page= until this many unique products are collected or results run out.",
                        "default": 60
                    },
                    "country": {
                        "title": "Ship-to country (ISO-2)",
                        "type": "string",
                        "description": "Ship-to country as a 2-letter ISO code (e.g. US, GB, DE, AU). Currency is forced from this (US→USD, DE→EUR …) so prices stay reproducible regardless of which residential proxy IP serves the page."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "AliExpress aggressively blocks datacenter IPs. RESIDENTIAL proxies are required for reliable access. Country is independent of the ship-to/currency setting above.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
