AliExpress search API
AliExpress products for a query with sale price, discount, units sold and rating.
GET /v1/aliexpress/searchBeta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/aliexpress/search?query=phone%20case",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "query": "phone case", "page": 1, "page_size": 20, "total": 85270, "products": [ { "productId": "3256810520592560", "title": { "seoTitle": "For iPhone SE X XS XR 4 4S 5 5S 7 8 11 12 13 14 15 Plus 16 17 Pro Max 3D Bear Co…", "displayTitle": "For iPhone SE X XS XR 4 4S 5 5S 7 8 11 12 13 14 15 Plus 16 17 Pro Max 3D Bear Co…", "shortTitle": false }, "prices": { "skuId": "12000053252646942", "pricesStyle": "default", "builderType": "skuCoupon", "currencySymbol": "$", "prefix": "Sale price:", "salePrice": { "…": "6 fields" }, "taxRate": "0" }, "redirectedId": "3256810520592560", "itemType": "productV3", "productType": "natural", "nativeCardType": "nt_srp_cell_g", "itemCardType": "pc_normal_card", "transitionaryExpFrame": false, "lunchTime": "2026-01-03 00:00:00", "…": "9 more fields" }, "… 5 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | Search words. Example: phone case. |
pagequery | integer | |
page_sizequery | integer | |
sort_byquery | "price_low" | "price_high" | "most_sold" | "least_sold" | One of price_low, price_high, most_sold, least_sold. |
min_pricequery | number | null | |
max_pricequery | number | null | |
category_idquery | string |
Response fields
200 with a AliExpressSearch, in the product cards AliExpress’s own mobile search page carries.
| Field | Type | Description |
|---|---|---|
query | string | |
page | number | |
page_size | number | null | |
total | number | null | |
products | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | A page of products. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | Nothing matched. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | AliExpress is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
AliExpress is a trademark of Alibaba Group. We are not affiliated with or endorsed by AliExpress.