API · AliExpress
GET /aliexpress/search
Search AliExpress products.
| Request | GET /v1/aliexpress/search |
| Operation id | aliexpress.search.all |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search AliExpress products.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search words. Example: phone case. |
page | integer | no | |
page_size | integer | no | |
sort_by | "price_low" | "price_high" | "most_sold" | "least_sold" | no | One of price_low, price_high, most_sold, least_sold. |
min_price | number | null | no | |
max_price | number | null | no | |
category_id | string | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of products. | AliExpressSearch |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | Nothing matched. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | AliExpress is temporarily unavailable. Retryable; nothing was charged. | Error |
AliExpressSearch fields
| Field | Type | Description |
|---|---|---|
query | string | |
page | number | |
page_size | number | null | |
total | number | null | |
products | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.