# aliexpress.search

The products on a page of AliExpress's search results: prices, ratings, numbers sold and stores, with advertisements marked.

AliExpress search, one of the AliExpress scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | What to search for, e.g. "wireless earbuds". Limit: at least 1 characters, at most 200 characters. |
| `page` | integer | no | 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" | no | AliExpress's sort order: best match, most orders, or price. Default: `"best_match"`. |
| `min_price` | number | no | Only products priced at least this much, in US dollars. Limit: 0 to 1000000. |
| `max_price` | number | no | Only products priced at most this much, in US dollars. Limit: 0 to 1000000. |
| `max_results` | integer | no | Return at most this many items of the page; all of them when not given. Limit: 1 to 100. |
| `include_sponsored` | boolean | no | 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. |
| `price.amount` | number | The amount as AliExpress states it. |
| `price.currency` | 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. |
| `original_price.amount` | number | The amount as AliExpress states it. |
| `original_price.currency` | 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

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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"}}'
```

## 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`.

```json
{
  "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.

```json
{
  "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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the AliExpress scrapers](https://docs.enrichednow.com/results-and-statuses.md#aliexpress) are in their own section there.
