# AliExpress Scraper - Search Products, Prices & Stores (`bin_ai_tools/aliexpress-search-batch`) Actor

Batch AliExpress keyword search: clean product rows with sale price, discount, sold count, rating and store name. Pay per delivered row. Pay per delivered row: $0.002 per result row. Failed rows are not charged.

- **URL**: https://apify.com/bin_ai_tools/aliexpress-search-batch.md
- **Developed by:** [Bin Bin](https://apify.com/bin_ai_tools) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 search result rows

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 Batch — Products, Prices, Sold Counts & Stores

Pay per delivered row: $0.002 per result row. Failed rows are not charged.

**AliExpress Search Batch** turns a list of keywords into clean, analysis-ready product rows from AliExpress search: sale price, original price, discount, units sold, star rating, store name and a direct product link for every result — gathered for up to 20 keywords in a single run.

Most AliExpress tools search one keyword at a time and sell search and details as separate products. This one is built for batch product research from the start: paste your keyword list, set how many results you want per keyword, and get one tidy dataset where every row is tagged with the keyword that found it.

### Why use AliExpress Search Batch?

- **Batch by design** — up to 20 keywords per run, each searched and paginated separately, duplicates removed per keyword.
- **Decision fields, not raw HTML** — sale vs. original price, discount %, sold count ("267 sold"), star rating, store name and a sponsored flag on every row.
- **Honest data** — a field a listing doesn't show (rating, sold count, store) comes back `null`, never guessed or filled in.
- **Pay per delivered row** — keywords that return no usable rows are reported in the run summary and are not charged.

### How to use

1. Add one or more keywords (e.g. `wireless earbuds`, `led strip lights`).
2. Set **Max results per keyword** (60 per page; up to 240).
3. Optionally pick a **Sort order**: best match, most sold, or price low→high / high→low.
4. Run. Download the dataset as JSON, CSV or Excel, or pull it through the API.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `keywords` | string list | `["wireless earbuds"]` | Up to 20 keywords per run |
| `maxResultsPerKeyword` | integer | 60 | 1–240 |
| `sortBy` | enum | `default` | `default`, `orders`, `priceAsc`, `priceDesc` |

### Output

One dataset row per product:

| Field | Meaning |
|---|---|
| `keyword` / `rank` | Which keyword found it, and its position |
| `productId`, `productUrl`, `title`, `imageUrl` | The product and its canonical link |
| `salePrice`, `originalPrice`, `currency`, `discountPercent` | Current price picture |
| `soldCount`, `soldText` | Units sold as shown by AliExpress |
| `starRating` | Average rating when the listing shows one |
| `storeName` | Seller store name when shown |
| `sponsored` | Whether AliExpress marks the placement as an ad |

A run summary is stored under the `OUTPUT` key: rows delivered per keyword, and a `noUsableResults` flag when a run delivered nothing.

### Notes & limitations

- Prices are served by AliExpress in the currency of the region the run executes from; the `currency` field on every row says which.
- Search results reflect what AliExpress shows a signed-out visitor; logged-in personalization is not reproduced.
- This is an independent tool, not affiliated with AliExpress or Alibaba Group. Questions and bug reports: use the Issues tab on this Actor's page.

# Actor input Schema

## `keywords` (type: `array`):

One or more search keywords. Each keyword is searched separately and every delivered product row is tagged with its keyword. Up to 20 keywords per run.

## `maxResultsPerKeyword` (type: `integer`):

Maximum product rows per keyword (60 per page).

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

default = AliExpress best match; orders = most sold first; priceAsc / priceDesc = by sale price.

## Actor input object example

```json
{
  "keywords": [
    "wireless earbuds"
  ],
  "maxResultsPerKeyword": 60,
  "sortBy": "default"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

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

No description

# 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 = {
    "keywords": [
        "wireless earbuds"
    ],
    "maxResultsPerKeyword": 60,
    "sortBy": "default"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bin_ai_tools/aliexpress-search-batch").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 = {
    "keywords": ["wireless earbuds"],
    "maxResultsPerKeyword": 60,
    "sortBy": "default",
}

# Run the Actor and wait for it to finish
run = client.actor("bin_ai_tools/aliexpress-search-batch").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 '{
  "keywords": [
    "wireless earbuds"
  ],
  "maxResultsPerKeyword": 60,
  "sortBy": "default"
}' |
apify call bin_ai_tools/aliexpress-search-batch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bin_ai_tools/aliexpress-search-batch"
        }
    }
}
```

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/d7bJQnaxaaZikQdfk/builds/fEiqIZ7V96MA57g1E/openapi.json
