Deals
Finds discounted AliExpress listings for a keyword, filtered by minimum discount and sorted by how deep the discount is.
Loading / 加载中…
AliExpress API: search, product detail, reviews, shipping · E-commerce & marketplace data
The AliExpress API searches listings by keyword, returns SuperDeals filtered by discount, reads one product's full price range, SKU variants, specs, images, store and shipping summary, fetches its description text and buyer reviews with their rating distribution, finds similar listings, checks shipping options to a destination country, and looks up a store's profile and, when a matching product is given, its seller metrics.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Finds discounted AliExpress listings for a keyword, filtered by minimum discount and sorted by how deep the discount is.
Returns a product's full description text and the images inside that description, by product id or URL.
Returns a product's price range, every SKU variant, specs, images, store profile, shipping summary and rating by product id or URL.
Returns buyer reviews for a product together with the rating distribution, paging across multiple pages of results.
Searches AliExpress listings by keyword, with price range, shipping origin and free-shipping filters.
Returns the shipping carriers, cost and delivery estimate available for a product to one destination country.
Returns listings similar to a given product, or to a search phrase sent in place of a product.
Returns a store's basic profile, plus seller metrics once a product from that store is identified.
AliExpress is an online retail platform owned by Alibaba Group. It has operated since 2010 and is based in China, where it serves buyers in other countries rather than domestic shoppers.
Its sellers are independent businesses responsible for their own listings; the platform itself does not sell products directly to shoppers. AliExpress Choice, a channel the platform introduced in early 2023, has AliExpress itself arrange sales support, logistics and customer service for participating merchants, alongside the independent-seller listings the catalogue has always carried.
body.country, body.currency and body.language work independently of each other across every operation that accepts them. body.country defaults to US, accepts the ship_to alias, and changes prices, availability and shipping options for the country given; an unrecognised code is ignored and the default applies rather than failing the call. body.country set to RU is the one exception worth planning around: only aliexpress-search and aliexpress-product-detail serve it, from AliExpress Russia, with prices in RUB and titles in Russian regardless of what body.currency and body.language ask for; RU does not reach the other six operations at all.
body.currency defaults to USD and only changes the currency prices are shown in. body.language, which also accepts lang and locale, defaults to en and is used exactly as given — a code AliExpress does not recognise simply comes back in English rather than failing, and some titles stay in English in any language because a seller never published a translated one.
body.province and body.city refine the shipping estimate on aliexpress-description, aliexpress-product-detail, aliexpress-shipping and aliexpress-store-info. body.province, which also accepts state and region, defaults to a major region of body.country when left out, and for some warehouse-local items it decides whether shipping resolves at all rather than only how precise the estimate is.
Within the United States alone, a measured example moved the estimate from 3–8 days for California to 4–14 days for Alaska, so the province matters beyond a cosmetic rounding of dates. body.city only sharpens that estimate further and does nothing on its own: a city with no body.province set does not resolve an address by itself.
body.product_id and body.url identify the same product across the operations that take one; productId/id and product_url are accepted in their place, and at least one of the two is needed. A store carries two separate numbers that both reach the same shop but are never equal to each other:
| Field | What it tells you |
|---|---|
store_id | the storefront number — the digits in store_url, and the id to pass to aliexpress-store-info |
shop_id | AliExpress's own internal shop number, used in its storefront app links |
canonical_store_id | the number aliexpress-store-info reports back for the store_id it was given |
Passing shop_id in place of store_id to aliexpress-store-info does not resolve the same store, because the two numbers are different values for the same shop rather than alternative names for one number.
aliexpress-product-detail is the one operation whose fields need a developer's judgment rather than a straight read. A store's logo can come back null even for an active shop, because that simply means no logo was ever uploaded; nothing about the seller's standing follows from it. seller_feedback_count and review_count measure two different things — a seller's overall feedback tally against this one product's own review count — so comparing the two to each other does not tell you anything about either figure on its own.
Whether a SKU variant carries its own image depends on the kind of choice that variant represents: a colour or style choice gets a picture, while a size or material choice does not, because AliExpress only photographs the dimension a shopper can actually see a difference in. weight follows the same pattern: it holds a number only on the minority of listings where a seller's own text happens to state one unambiguous mass, so its absence is the ordinary case rather than a gap to work around.
body.page, body.max_pages and body.max_results page through four of the API's operations, each capped differently:
aliexpress-search and aliexpress-similar: body.max_results up to 500, body.max_pages up to 10aliexpress-deals: body.max_pages up to 10, with no body.max_resultsaliexpress-reviews: body.max_results up to 400, body.max_pages up to 20, body.page_size up to 20body.page itself goes from 1 up to 60 on all four operations — page 60 is the deepest page AliExpress still serves, and page 100 comes back empty rather than with an error — so a caller should keep raising body.page only while pagination still reports further rows. Where both a page-based and a result-based budget are sent together on one call, the smaller of the two wins rather than the two adding up. A single page typically holds 46 to 60 results, so the 10-page ceiling takes much more time than one page.
Three of the API's operations rank their candidates with body.sort, and each rejects a value it does not recognise outright, substituting no default ordering:
best_match (default): the closest match to the keyword, the default on aliexpress-search and aliexpress-similarorders (best_selling): the most-ordered items first, the default on aliexpress-dealsprice_low (price_asc) / price_high (price_desc): price ordernewest: the most recently listed items firstOn aliexpress-deals, body.sort ranks the candidate pool before body.min_discount filters it down, so the final order of the results is always by discount_pct rather than by whichever body.sort value was sent. body.min_discount, from 0 to 99, keeps only items discounted at least that percentage off their original price, and defaults to 0 when left out. On aliexpress-search, body.min_price and body.max_price bound the price in body.currency, body.ship_from keeps only items shipped from the given country, and body.free_shipping keeps only items that ship free; all four default to no filter at all when omitted.
{
"body": {
"query": "wireless earbuds",
"country": "US",
"currency": "USD"
}
}POST /api/v1/aliexpress/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).aliexpress-deals results for new or deeper markdowns over time.aliexpress-search results and then aliexpress-product-detail for full SKU, price and stock data before listing a product elsewhere.aliexpress-reviews summaries across a seller's product line.aliexpress-shipping for the same product across several destination countries.aliexpress-similar results shown beside a product page.body.country accepts RU only on aliexpress-search and aliexpress-product-detail; every other operation turns that value down immediately.body.sort value is rejected on aliexpress-deals, aliexpress-search and aliexpress-similar instead of defaulting.body.page goes only up to 60 on the four operations that page through results.body.max_pages on any paged operation returns just a single page rather than that operation's largest allowed batch.aliexpress-reviews returns at most 400 reviews through body.max_results, the product of its 20-page and 20-per-page ceilings.aliexpress-product-detail is the only operation priced above 150 credit units, at 300.seller_metrics on aliexpress-store-info appears only once body.query names one of that store's own products; an id that is not a store returns NOT_FOUND.weight on aliexpress-product-detail is null unless the seller's attribute line states one unambiguous mass, which a measured sample found true of only a small share of listings.Send the keywords as body.query to aliexpress-search; q and keyword are accepted as alternative names. body.sort orders the results. body.min_price, body.max_price, body.ship_from and body.free_shipping narrow the results further by price, shipment origin and free shipping. Each row returns a product_id, title, price, original_price, discount_pct, sold_count and rating; store_name and store_url come back null on these cards, so look up the store through aliexpress-product-detail instead.
Send body.product_id or body.url to aliexpress-product-detail; productId/id and product_url are accepted as alternative names, and the call costs 300 credit units, twice the other operations' price. The response groups sku_variants, each with its own sku_id, price, stock, available and an image when its dimension is visual — a size, model or material dimension carries no image and instead has size_chart and size_measurements where published. sku_properties[].has_images names which dimension is the visual one.
Send body.product_id or body.url to aliexpress-reviews. Each entry in reviews carries a rating, the review text, its date, the reviewer's country, sku_info, logistics and any images or labels. summary adds total_reviews, total_pages, average_star, a distribution across the five star values, and separate positive, neutral and negative counts. body.filter narrows the pull to image or additional reviews; body.page_size sets rows per page from 1 to 20.
Send body.product_id or body.url to aliexpress-shipping with body.country, the ship-to country, for the applicable options; each carries a carrier, a cost in currency and a delivery estimate, alongside the total option_count. body.province refines the estimate further and, for some warehouse-local items, decides whether shipping resolves at all; body.city only sharpens the estimate once body.province is set.
Send body.store_id or body.store_url to aliexpress-store-info; storeId, shop_id and shopId are accepted in place of body.store_id. It returns store with the store's name and store_url, plus business_type and tab_count when available. Adding body.query that matches one of the store's own products also returns seller_metrics, including seller_feedback_count — feedback on the seller as a whole, not reviews of one product, so it can sit far below that product's own review_count from aliexpress-product-detail.
AliExpress Russia only answers aliexpress-search and aliexpress-product-detail calls when body.country is set to RU; the other six operations answer with an immediate rejection instead. Prices come back in RUB and titles in Russian regardless of body.currency or body.language. Russian local-seller items carry ids such as 1_187973544, which must be passed back to aliexpress-product-detail exactly as aliexpress-search returned them rather than reformatted.
Keep raising body.page on any of the API's paged operations only while a call still returns further rows, rather than guessing in advance how many pages exist. body.max_pages and, where offered, body.max_results let one call cover several pages at once instead of looping yourself, and each of these inputs has its own ceiling on the operation it belongs to, so a loop that respects the documented ceiling never needs to guess where to stop.
aliexpress-product-detail reads weight out of the seller's own attribute line rather than from a structured field, so it comes back null whenever that line is silent or does not state one unambiguous mass — a range, a bound or a bare number with no unit all count as not stating one. weight is never 0 and is never borrowed from another variant when it is missing. weight_unit is one of g, kg, lb or oz; weight_raw keeps the seller's original text and weight_source names the attribute it came from.