100 free credits. No credit card required. Get a key

AliExpress search API

AliExpress products for a query with sale price, discount, units sold and rating.

GET /v1/aliexpress/searchBeta2 credits per callRefunded on failure
import 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

NameTypeDescription
queryquery · requiredstringSearch words. Example: phone case.
pagequeryinteger
page_sizequeryinteger
sort_byquery"price_low" | "price_high" | "most_sold" | "least_sold"One of price_low, price_high, most_sold, least_sold.
min_pricequerynumber | null
max_pricequerynumber | null
category_idquerystring
Response fields

200 with a AliExpressSearch, in the product cards AliExpress’s own mobile search page carries.

FieldTypeDescription
querystring
pagenumber
page_sizenumber | null
totalnumber | null
productsobject[]
Status codes
StatusMeaning
200A page of products.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404Nothing matched.
429Too many requests. Wait for Retry-After seconds.
503AliExpress 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.