Documentation
AliExpress API reference for 8 operations
Reference for the AliExpress API: what each of its 8 operations' inputs does, how region, currency and ids interact, and what the returned data holds.
See also: AliExpress API: search, product detail, reviews, shipping overview and prices · AliExpress API guide: search, detail and deal workflows
On this page
aliexpress-deals: ranking versus the discount filter
aliexpress-deals answers results. Each entry carries product_id, title, url, image and images; price, original_price, currency, discount_pct and price_formatted describe the price; and sold_count, rating, sku_id, product_type and promo_tags round out the card. store_name and store_url are not present on these cards; aliexpress-product-detail is where a card's store is named.
body.sort ranks the candidate pool before body.min_discount filters it down to only the items that clear the given percentage, so the final order of results is always by discount_pct — the sort only decides which candidates reach that filter in the first place, not the order they come back in. body.country set to RU answers a rejection here, since this operation is not one of the two that AliExpress Russia serves.
Fields in this section (5)
aliexpress-deals, body.query, body.min_discount, body.sort, body.country
aliexpress-description: text and images separate from the product gallery
aliexpress-description answers text, the description's own images, a block_count and a format; this image list is separate from the gallery aliexpress-product-detail returns under its own images, since a listing's description and its main gallery are filled in independently. body.description_url takes the description_url value a prior aliexpress-product-detail call already returned for the same product, which skips a lookup this operation would otherwise perform on body.product_id or body.url alone.
body.country set to RU answers a rejection, since full description text for Russian listings is not served through this operation. block_count counts how many blocks text is split into, and format names which block format was used.
Fields in this section (5)
aliexpress-description, body.product_id, body.url, body.description_url, aliexpress-product-detail
aliexpress-product-detail: price, stock and the seller's own listing text
aliexpress-product-detail answers a product object. price_min and price_max bound the price across every SKU variant, while rating, review_count and sold_count describe the product itself rather than its seller. total_stock adds every variant's stock together, images and video_url carry the main gallery, and specs lists the seller's own name/value spec rows.
tags names whether the listing carries AliExpress's choice, local_plus or scene_type marks; interest_point adds a short selling point AliExpress attaches to the listing itself; coupons lists any promotion_id discounts available on the item; and sale carries a countdown's type and ends_at when one is running. selling_points, wishlist_count and store_wished_count round out the listing's own marketing figures, and description_url is the value to send to aliexpress-description for the full description text.
Fields in this section (3)
aliexpress-product-detail, body.product_id, body.url
aliexpress-product-detail: SKU variants, the store block and item weight
Inside sku_variants, each entry's price, stock and available describe that one combination, and image is attached only when its dimension is visual. A colour or style variant carries one image; a size, model or material variant carries none and relies on sku_properties[].has_images to say so up front, with size_chart and size_measurements standing in where published. The store block separates store_id, the storefront number also found in store_url and the value aliexpress-store-info takes as its own input, from shop_id, AliExpress's internal shop number used in its own storefront links; the two numbers reach the same shop but are never equal.
seller_feedback_count counts feedback on the seller as a whole rather than reviews of this product, so it can be far smaller than review_count; seller_positive_rate and seller_score come back null, not a zero score, whenever the seller carries no feedback at all. logo is null whenever a shop never uploaded one, rather than a shared placeholder reported as if it were the shop's own picture. shipping summarises one destination's shipping_cost, free and delivery_estimate for ship_to.
Its delivery_days_min and delivery_days_max bound that same estimate in days, and aliexpress-shipping answers the same country in full, for every available carrier. weight holds a number only when the seller's own attribute line states one unambiguous mass; weight_unit is one of g, kg, lb or oz. weight_raw and weight_source keep the seller's original text and the attribute it came from for whenever weight itself is null.
Fields in this section (4)
aliexpress-product-detail, body.product_id, aliexpress-store-info, aliexpress-shipping
aliexpress-reviews: summary fields and the paging budget
aliexpress-reviews answers reviews and a summary object. Each review carries a rating, text, date, country, sku_info and logistics; any images or labels attached to it come along too. summary adds total_reviews, total_pages, average_star and a distribution across the five star values, together with separate positive, neutral and negative counts.
body.filter picks all, image or additional reviews — the three values AliExpress documents, rather than all plus whichever further filters its own interface might expose. body.page_size, body.max_pages and body.max_results all bound the same pull from different angles, and whichever of them implies the smallest number of reviews decides the actual count returned, so setting body.max_results directly is simpler than computing body.page_size times body.max_pages yourself. body.review_sort selects an alternate ordering for advanced use; its own default, complex_default, is the one most callers should keep.
Fields in this section (6)
aliexpress-reviews, body.filter, body.page_size, body.max_pages, body.max_results, body.review_sort
aliexpress-search: result cards plus related and trending terms
aliexpress-search answers the same card shape aliexpress-deals returns. That shape names product_id, title, price, original_price and discount_pct; it also carries sold_count and rating. It additionally adds related_searches and ranking_searches, AliExpress's own lists of related phrases and trending terms for the query sent.
body.min_price and body.max_price bound the price in body.currency with no default of their own, so leaving either out removes that bound entirely rather than falling back to a figure. body.ship_from keeps only items shipped from the given country, and body.free_shipping keeps only items with free shipping; both default to no filter when left out. body.country set to RU is served here, from AliExpress Russia, with prices in RUB, titles in Russian, and a store_name/store_url/delivery-text line present on every card rather than null — the opposite of what the card shape documents elsewhere — while body.ship_from itself does not apply there.
Fields in this section (6)
aliexpress-search, body.min_price, body.max_price, body.ship_from, body.free_shipping, body.country
aliexpress-shipping: options and the destination they answer for
aliexpress-shipping answers options, each a carrier, a cost in currency and a delivery estimate, together with option_count, the size of that list. Every field in options is specific to the body.country sent with the call — a second call with a different body.country can answer a different option_count with entirely different carriers, not merely a different cost on the same list. body.province can change whether those options resolve for some warehouse-local items; body.city only sharpens that same estimate once body.province is set, with no resolving effect of its own.
Fields in this section (4)
aliexpress-shipping, body.country, body.province, body.city
aliexpress-similar: a seed product or a seed phrase
aliexpress-similar answers the same card shape aliexpress-search returns, plus seed_query, the phrase the comparison actually ran on, and title, the seed product's own title when one was looked up. body.product_id or body.url identifies the seed product and its title is read automatically; body.query overrides that title outright rather than adding to it, which also skips the lookup of the seed product entirely, so a caller with only a phrase and no known product can still ask for comparable listings. body.sort and the paging inputs behave exactly as they do on aliexpress-search.
Fields in this section (5)
aliexpress-similar, body.product_id, body.url, body.query, body.sort
aliexpress-store-info: a profile, plus seller metrics when a product matches
aliexpress-store-info answers a store object. Its core fields are store_id, canonical_store_id echoing the id it was given, name, store_url and source. seller_id, business_type, business_license_url and tab_count appear only when AliExpress also serves that store's own profile data, which it does for some stores and not others.
seller_metrics groups seller_score, seller_positive_rate, seller_feedback_count, seller_country and top_rated. It appears only when body.query is sent and matches one of the store's own products; sending a body.query that does not match any of that store's products leaves seller_metrics out exactly as if no query had been sent at all. An id that does not belong to a store at all answers NOT_FOUND rather than an empty store.
Fields in this section (4)
aliexpress-store-info, body.store_id, body.store_url, body.query
AliExpress API language coverage across every operation
body.language is accepted on every operation. It takes any 2-letter code and, left unrecognised, is ignored with the reply simply continuing in English rather than the call failing. Measured across a set of codes AliExpress documents, 11 of 12 changed a product's title; the Chinese code was the exception, since without the seller's own translation there is nothing in Chinese for AliExpress to return.
Fields in this section (1)
body.language
{
"body": {
"product_id": "3256808363596774"
}
}{
"body": {
"store_id": "1103576287",
"query": "earbuds"
}
}Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
Deals
POST /api/v1/aliexpress/aliexpress-deals
Finds discounted AliExpress listings for a keyword, filtered by minimum discount and sorted by how deep the discount is.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.language | string | Optional | "en" | — | — |
body.max_pages | integer | Optional | 1 | — | 1–10 |
body.min_discount | integer | Optional | 0 | — | 0–99 |
body.page | integer | Optional | 1 | — | 1–60 |
body.sort | string | Optional | "orders" | "best_match""orders""price_low""price_high""newest""default""best_selling""price_asc""price_desc" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-deals' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"wireless earbuds"}}'Product description
POST /api/v1/aliexpress/aliexpress-description
Returns a product's full description text and the images inside that description, by product id or URL.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.city | string | Optional | — | — | — |
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.description_url | string | Optional | — | — | — |
body.language | string | Optional | "en" | — | — |
body.product_id | string | Optional | — | — | — |
body.province | string | Optional | — | — | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-description' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"url":"https://www.aliexpress.com/item/3256808363596774.html"}}'Product detail
POST /api/v1/aliexpress/aliexpress-product-detail
Returns a product's price range, every SKU variant, specs, images, store profile, shipping summary and rating by product id or URL.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.city | string | Optional | — | — | — |
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.language | string | Optional | "en" | — | — |
body.product_id | string | Optional | — | — | — |
body.province | string | Optional | — | — | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-product-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"product_id":"3256808363596774"}}'Reviews
POST /api/v1/aliexpress/aliexpress-reviews
Returns buyer reviews for a product together with the rating distribution, paging across multiple pages of results.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.filter | string | Optional | "all" | "all""image""additional" | — |
body.language | string | Optional | "en" | — | — |
body.max_pages | integer | Optional | 1 | — | 1–20 |
body.max_results | integer | Optional | — | — | 1–400 |
body.page | integer | Optional | 1 | — | 1–60 |
body.page_size | integer | Optional | 10 | — | 1–20 |
body.product_id | string | Optional | — | — | — |
body.review_sort | string | Optional | "complex_default" | — | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-reviews' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"page_size":10,"product_id":"3256808363596774"}}'Search
POST /api/v1/aliexpress/aliexpress-search
Searches AliExpress listings by keyword, with price range, shipping origin and free-shipping filters.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.free_shipping | boolean | Optional | false | — | — |
body.language | string | Optional | "en" | — | — |
body.max_pages | integer | Optional | 1 | — | 1–10 |
body.max_price | number | Optional | — | — | ≥ 0 |
body.max_results | integer | Optional | — | — | 1–500 |
body.min_price | number | Optional | — | — | ≥ 0 |
body.page | integer | Optional | 1 | — | 1–60 |
body.ship_from | string | Optional | — | — | — |
body.sort | string | Optional | "best_match" | "best_match""orders""price_low""price_high""newest""default""best_selling""price_asc""price_desc" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"country":"US","currency":"USD","query":"wireless earbuds"}}'Shipping options
POST /api/v1/aliexpress/aliexpress-shipping
Returns the shipping carriers, cost and delivery estimate available for a product to one destination country.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.city | string | Optional | — | — | — |
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.language | string | Optional | "en" | — | — |
body.product_id | string | Optional | — | — | — |
body.province | string | Optional | — | — | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-shipping' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"url":"https://www.aliexpress.com/item/3256808363596774.html"}}'Similar products
POST /api/v1/aliexpress/aliexpress-similar
Returns listings similar to a given product, or to a search phrase sent in place of a product.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.language | string | Optional | "en" | — | — |
body.max_pages | integer | Optional | 1 | — | 1–10 |
body.max_results | integer | Optional | — | — | 1–500 |
body.page | integer | Optional | 1 | — | 1–60 |
body.product_id | string | Optional | — | — | — |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "best_match" | "best_match""orders""price_low""price_high""newest""default""best_selling""price_asc""price_desc" | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-similar' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"url":"https://www.aliexpress.com/item/3256808363596774.html"}}'Store info
POST /api/v1/aliexpress/aliexpress-store-info
Returns a store's basic profile, plus seller metrics once a product from that store is identified.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.city | string | Optional | — | — | — |
body.country | string | Optional | "US" | — | — |
body.currency | string | Optional | "USD" | — | — |
body.language | string | Optional | "en" | — | — |
body.province | string | Optional | — | — | — |
body.query | string | Optional | — | — | — |
body.store_id | string | Optional | — | — | — |
body.store_url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aliexpress/aliexpress-store-info' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"store_id":"1103576287"}}'How calls work
POST /api/v1/aliexpress/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: