Scraper APIAliExpress
aliexpress.search
The products on a page of AliExpress's search results: prices, ratings, numbers sold and stores, with advertisements marked.
- Id
aliexpress.search- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/aliexpress.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
queryrequired | string | What to search for, e.g. "wireless earbuds".Limit: at least 1 characters, at most 200 characters. |
page | integer | The results page, from 1 (AliExpress serves at most 60, of up to 60 products each).Limit: 1 to 60. Default: 1. |
sort | "best_match" | "orders" | "price_low" | "price_high" | AliExpress's sort order: best match, most orders, or price.Default: "best_match". |
min_price | number | Only products priced at least this much, in US dollars.Limit: 0 to 1000000. |
max_price | number | Only products priced at most this much, in US dollars.Limit: 0 to 1000000. |
max_results | integer | Return at most this many items of the page; all of them when not given.Limit: 1 to 100. |
include_sponsored | boolean | False leaves the advertisements (sponsored: true) out.Default: true. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
product_id | string | AliExpress's number of the product: the number in its address (/item/<number>.html), as the United States site gives it. |
url | string | The product's address on aliexpress.com. |
title | string | The product's title. |
price | object or null | The price on the card, as shown to a visitor in the United States who is not signed in; it can be a first-order offer. Null when the card shows an offer instead of a price. |
amount (in price) | number | The amount as AliExpress states it. |
currency (in price) | string | The currency code, e.g. USD. |
price_text | string or null | The price as the page writes it, e.g. "US $3.82". |
original_price | object or null | The price before the reduction, when the card states one. |
amount (in original_price) | number | The amount as AliExpress states it. |
currency (in original_price) | string | The currency code, e.g. USD. |
discount_percent | integer or null | The reduction in percent, when the card states one. |
rating | number or null | Average star rating, 1 to 5; null when the card shows none. |
sold | integer or null | The number sold as the card states it; a lower bound when sold_text ends in a plus sign ("5,000+ sold" is 5000). |
sold_text | string or null | The number sold as the page writes it, e.g. "5,000+ sold". |
store_name | string or null | The name of the store that sells the product, when the page's data names it. |
sponsored | boolean | True for an advertisement, false for a result. |
choice | boolean | True when the card carries the AliExpress Choice badge. |
labels | array of string | The texts written on the card, e.g. Free shipping, Save $2.62. |
image | string or null | The address of the product's main picture. |
position | integer | The item's place among the returned items of this page, from 1. |
page | integer | The results page the item was on. |
fetched_at | string (date-time) | When the results page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/aliexpress.search/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"query":"usb-c cable 100w"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("aliexpress.search", {"query": "usb-c cable 100w"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("aliexpress.search", { query: "usb-c cable 100w" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "aliexpress.search", map[string]any{"query": "usb-c cable 100w"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("aliexpress.search", Map.of("query", "usb-c cable 100w"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run aliexpress.search --input 'query=usb-c cable 100w'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"query": "usb-c cable 100w"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "aliexpress.search",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"query": "usb-c cable 100w"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"product_id": "3256811903226996",
"url": "https://www.aliexpress.com/item/3256811903226996.html",
"title": "USB C to Type C Cable for Xiaomi Motorola Huawei Macbook iPad Iphone 17 16 15 Series 100W Fast and Safe Nylon Braided Data Line",
"price": {
"amount": 1.09,
"currency": "USD"
},
"price_text": "US $1.09",
"original_price": null,
"discount_percent": 79,
"rating": 4.7,
"sold": 739,
"sold_text": "739 sold",
"store_name": "DFLASHSS Store",
"sponsored": false,
"choice": true,
"labels": [
"Free shipping",
"180 CM | Data Cable | 5 A | Type-C",
"$4.21 saved"
],
"image": "https://ae-pic-a1.aliexpress-media.com/kf/S83d6c934017a48b0a4b1a1ab21553e0cF.jpg",
"position": 1,
"page": 1,
"fetched_at": "2026-11-19T18:07:38.152234Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
labels: 5 items, the first 3 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the AliExpress scrapers are in their own section there.