Search AliExpress products
TL;DR
Automatically search AliExpress products on aliexpress.com. Search AliExpress products by keyword: title, price, rating, sold count, image and link.
About
Use it to find products and compare them. Each result has an item id that the aliexpress.com get_product script takes. Prices and the sold count come in the currency and language AliExpress picks for the session. No account is needed.
Inputs
query requiredSearch keywords, e.g. "phone case".
page optionalResults page number.
Default: 1Output
url requiredpage requiredquery requiredproducts requiredFAQ
Get AliExpress product
Read an AliExpress product page by item id: title, description, price and currency, availability, rating, review count, images, store, and the raw sold-count text. Anonymous, read-only. Pairs with aliexpress.com/search_products, whose result `id` is this script's `itemId`. Price, currency and soldText reflect whatever locale/currency AliExpress geo-resolves the session to, so they legitimately vary by caller.
Search AliExpress products
Search AliExpress by free-text query, one page of about 60 results at a time. Returns the total result count, the result type AliExpress gives (normal_result, few_result or zero_result), has_next_page, then for each product its id, title, link, price and struck-through original price with currency, discount, rating, sold-count text, image and whether it is sponsored. When nothing matches, AliExpress shows unrelated top-selling products with result_type few_result; a page past the last one gives an empty list. Prices are in the currency AliExpress picks for the browser. Pass an id or link to Get AliExpress product or Add AliExpress product to cart.
Get AliExpress product
Fetch one AliExpress product from its id or its product page link (as returned by Search AliExpress products). Returns the title, the price and currency of the variant the page selects, availability, rating, review count, sold-count text, images, category, the seller (store name, store id, seller id, positive feedback rate, country) and every variant with its sku id (the id that Add AliExpress product to cart takes), options, price, stock and whether it can be bought. Prices and texts follow the AliExpress site and currency of the browser. An unknown product, or a product AliExpress does not sell in the browser's region, fails with an error that says so; a link that is not a product page fails too.
