# AliExpress Search Scraper: Prices, Sold Counts, Ratings (`v0iddo/mint-aliexpress-scraper`) Actor

Scrape AliExpress search results into product rows: product ID, title, sale price, original price, discount, star rating, units sold, Choice and free shipping flags, delivery estimate, image and link.

- **URL**: https://apify.com/v0iddo/mint-aliexpress-scraper.md
- **Developed by:** [vøiddo](https://apify.com/v0iddo) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 results

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 Search Scraper: Prices, Sold Counts, Ratings

Scrape AliExpress search results into product rows: product ID, title, sale price, original price, discount, star rating, units sold, Choice and free shipping flags, delivery estimate, image and link.

### What you get

Every result is one row in the run's dataset. Download it as JSON, CSV, Excel or HTML, or read it through the Apify API. The main fields:

| Field | Meaning |
|---|---|
| `productId` | Product ID |
| `title` | Title |
| `price` | Price |
| `originalPrice` | Original |
| `rating` | Stars |
| `sold` | Sold |
| `choice` | Choice |
| `url` | Product URL |

Example row:

```json
{
  "searchTerm": "wireless earbuds",
  "page": 1,
  "position": 1,
  "productId": "3256811844384040",
  "title": "TWS Wireless Bluetooth Headset LED Display Earbuds with Mic",
  "price": 3.26,
  "originalPrice": 25.12,
  "discountPercent": 87,
  "currency": "USD",
  "rating": 4.9,
  "sold": 1000,
  "soldText": "1,000+ sold",
  "choice": true,
  "freeShipping": false,
  "delivery": "Delivery: Oct 22 - 28",
  "ad": false,
  "image": "https://ae-pic-a1.aliexpress-media.com/kf/S623d5c89b35e423e8575ff54bbfcf345r.jpg",
  "url": "https://www.aliexpress.com/item/3256811844384040.html"
}
```

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `searchTerms` | array | no | What you would type into the AliExpress search box, one per line. |
| `searchUrls` | array | no | Optional aliexpress.com search URLs (https://www.aliexpress.com/w/wholesale-....html). |
| `sort` | select | no | Sort order for search terms (URLs keep their own). Allowed: best_match, orders, price_low, price_high. Default: `"best_match"`. |
| `maxPages` | integer | no | How many result pages (60 products each) to read per search. Default: `3`. |
| `includeAds` | boolean | no | Keep promoted products (they are marked with ad = true). Default: `true`. |
| `maxItems` | integer | no | The run stops after this many result rows. It also caps what one run can cost. Default: `300`. |
| `proxyConfiguration` | object | no | Leave as is: the run starts on the cheapest network the site accepts and switches to Apify Proxy automatically when the site blocks it. Pick proxy groups here only to force one specific network. |

Example input:

```json
{
  "searchTerms": [
    "wireless earbuds"
  ],
  "maxPages": 1,
  "maxItems": 20
}
```

### Pricing

You pay per result row in the dataset (the current price per 1,000 results is on the Pricing tab). A run that finds nothing produces no rows and no result charges. Set **Maximum results** to cap what a single run can cost.

### Limits and notes

- Prices are in US dollars as shown to a visitor shipping to the United States.
- Units sold is the figure AliExpress shows, such as 1,000+ sold; soldText keeps the original wording.
- AliExpress shows at most 60 result pages for one search; use narrower search terms to collect more products.
- Only publicly visible data is collected. No login, no paywalled content, no personal contact details.
- The actor reads only pages that the site's robots.txt leaves open to automated access.
- Sites change their pages from time to time. The actor is checked automatically and repaired when a check fails.
- Each run sends one short usage record to the developer: the Actor and run IDs, the number of results, whether the run succeeded (and if not, the kind of error, such as "blocked" or "input problem") and whether the account is on a paid Apify plan. It contains nothing from your input or results.

### Use it from your code or agent

Run it from the Apify Console, on a schedule, through the Apify API and client libraries, from Make, Zapier or n8n, or as a tool through the Apify MCP server. The dataset of each run stays available for download.

# Actor input Schema

## `searchTerms` (type: `array`):

What you would type into the AliExpress search box, one per line.

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

Optional aliexpress.com search URLs (https://www.aliexpress.com/w/wholesale-....html).

## `sort` (type: `string`):

Sort order for search terms (URLs keep their own).

## `maxPages` (type: `integer`):

How many result pages (60 products each) to read per search.

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

Keep promoted products (they are marked with ad = true).

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

The run stops after this many result rows. It also caps what one run can cost.

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

Leave as is: the run starts on the cheapest network the site accepts and switches to Apify Proxy automatically when the site blocks it. Pick proxy groups here only to force one specific network.

## Actor input object example

```json
{
  "searchTerms": [
    "wireless earbuds"
  ],
  "sort": "best_match",
  "maxPages": 1,
  "includeAds": true,
  "maxItems": 300,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One dataset row per processed item.

# 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 = {
    "searchTerms": [
        "wireless earbuds"
    ],
    "maxPages": 1,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("v0iddo/mint-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 = {
    "searchTerms": ["wireless earbuds"],
    "maxPages": 1,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("v0iddo/mint-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 '{
  "searchTerms": [
    "wireless earbuds"
  ],
  "maxPages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call v0iddo/mint-aliexpress-scraper --silent --output-dataset

```

## MCP server setup

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