List AliExpress cart items
Automatically list AliExpress cart items on aliexpress.com. List the items in the AliExpress cart of this browser: for each line its line id, product id, offer id (the sku id of the variant), name, seller, quantity, unit price and line price, plus the number of units, the total of the lines (shipping not included) and the currency. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns an empty list and a zero count.
Inputs
None
Output
count requiredNumber of units in the cart (the sum of the line quantities).
lines requiredtotal requiredSum of the line prices, shipping not included.
currency optionalFAQ
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 products by keyword and page. Returns each result's item id, title, price, rating, sold-count text, product image and url. The item id pairs with aliexpress.com/get_product, including for bundle-deal results. An image that did not load is reported as null. Anonymous, read-only. Prices and the sold-count text appear in whatever currency and locale AliExpress picks for the session. Fails with a clear message rather than returning an empty list, since AliExpress returns results even for nonsense queries.
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.
