AliExpress Variants API
API health
- 24h health
- 98%
- 24h average time
- 39.80 s
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
List the variants and SKUs of an AliExpress product, with each option's properties, color, image and price where the listing shows them. A missing combination does not mean it is sold out, and the list is not a full stock record.
Send POST https://api.everyinfra.com/api/v1/social with platform set to aliexpress and action set to variants. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
Same parameters and fields as product_detail, but returns a result only when the product has a SKU variant list; a product without one counts as an empty result and is not charged.
AI prompt
#Please help me write a data collection script with the EveryInfra AliExpress Variants endpoint (aliexpress/variants).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to aliexpress and action to variants, and put the parameters inside params.
- Required parameters:
- url: Specifies the target AliExpress item using a full URL (such as https://www.aliexpress.com/item/<item_id>.html).
- Optional parameters:
- country: The country or region code, such as US, that profile, variants and product_detail read the product for (default US, converted to uppercase). It picks the regional view of the item.
- currency: The currency for the item prices returned by profile, variants and product_detail, such as USD (default USD, converted to uppercase).
- Returns one object. Main fields: id, url, name, text, price, original_price, currency, discount, sold_count, rating, rating_scale, review_count; 36 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=aliexpress.
- Example request body:
{
"platform": "aliexpress",
"action": "variants",
"params": {
"url": "https://www.aliexpress.com/item/3256806025886958.html"
}
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | aliexpress | Platform identifier, fixed value. |
action | body | string | Yes | variants | Capability identifier, fixed value. |
url | body.params | string | Yes | - | Specifies the target AliExpress item using a full URL (such as https://www.aliexpress.com/item/<item_id>.html). Use url with profile to fetch product metadata, variants for SKUs, reviews or ratings for feedback summaries, or product_detail (which also accepts a numeric item ID). |
country | body.params | string | No | - | The country or region code, such as US, that profile, variants and product_detail read the product for (default US, converted to uppercase). It picks the regional view of the item; it does not change your account country or a real order's shipping address. |
currency | body.params | string | No | - | The currency for the item prices returned by profile, variants and product_detail, such as USD (default USD, converted to uppercase). It changes displayed prices only and has nothing to do with how EveryInfra API calls are billed. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "aliexpress",
"action": "variants",
"params": {
"url": "https://www.aliexpress.com/item/3256806025886958.html"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "aliexpress", "action": "variants", "results": { "id": "•••", "url": "https://www.aliexpress.com/item/3256806025886958.html", "name": "Thermal Underwear Tops Men Spring Clothes Thermal Shirt Autumn Men's Winter Tights High Neck Thin Slim Fit Long Sleeve T-shirt", "price": 1.91, "original_price": 11.06, "currency": "USD", "discount": 83, "rating": 4.4, "review_count": 404, "shipping": [ { "method": "AliExpress Selection Standard Shipping", "free_shipping": false, "ship_from": "China", "ship_to": "US", "delivery_days_min": 8, "delivery_days_max": 13, "estimated_delivery": "Nov. 01 – Nov. 06", "tracking": true } ], "variants": [ { "sku_id": "12000036301240276", "properties": { "Color": "Dark Grey", "Size": "S" }, "price": 2.23, "original_price": 11.78, "stock": 6, "available": true, "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/Sd1b109e7315a4b0bb6a0e676dbe81f11N.jpg", "max_buy_count": 1 }, { "sku_id": "12000036301240277", "properties": { "Color": "Dark Grey", "Size": "M" }, "price": 2.43, "original_price": 12.22, "stock": 3, "available": true, "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/Sd1b109e7315a4b0bb6a0e676dbe81f11N.jpg", "max_buy_count": 1 }, { "sku_id": "12000036301240278", "properties": { "Color": "Dark Grey", "Size": "L" }, "price": 2.21, "original_price": 11.74, "stock": 0, "available": false, "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/Sd1b109e7315a4b0bb6a0e676dbe81f11N.jpg", "max_buy_count": 0 } ], "store_name": "Shop1102888504 Store", "store_url": "https://www.aliexpress.com/store/1102892506", "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/S702341bd952e48d19070fda1b1b2c15eI.jpg", "images": [ "https://ae-pic-a1.aliexpress-media.com/kf/S702341bd952e48d19070fda1b1b2c15eI.jpg", "https://ae-pic-a1.aliexpress-media.com/kf/S2259b7a7b87445c484e782f739f76593E.jpg", "https://ae-pic-a1.aliexpress-media.com/kf/S6e96c6eeaa8b44d3bd0189288bd92471o.jpg" ], "price_max": 3.15, "original_price_max": 13.84, "sold_text": "2,000+ sold", "attributes": [ { "name": "Special Features", "value": "Lightweight" }, { "name": "Product Care Instructions", "value": "Dry Clean Only" }, { "name": "Closure Type", "value": "Pull On" } ], "category_id": "200000783", "category_path": "•••/•••/•••", "ship_to": "US", "total_stock": 96, "video_url": "https://video.aliexpress-media.com/play/u/ae_sg_item/2215998649727/p/1/e/6/t/10301/5000232324880.mp4", "store_id": "1102892506", "seller_id": "•••", "store_country": "China", "store_opened_at": "2023-06-12 01:35:24", "store_positive_rate": "93.9%", "store_sold_180d": "20,000+", "store_is_top_rated": false, "platform": "aliexpress", "rating_scale": 5 }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
url | Link to the record on the platform. |
name | Name of the object itself, for account, product and business capabilities. |
text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
price | Price as a number without a currency symbol; see currency. |
original_price | Keeps the platform's own meaning |
currency | Currency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency. |
discount | Keeps the platform's own meaning |
sold_count | Keeps the platform's own meaning |
rating | Rating. The scale varies by platform: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards. |
rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
review_count | Number of reviews, for product and business capabilities. null means not disclosed, not 0. |
shipping | Keeps the platform's own meaning |
variants | SKU list, one entry per variant: sku_id, properties (option name → value, such as Color and Size), price, original_price, stock, available, image_url and max_buy_count; keys the platform does not show are left out. |
store_name | Keeps the platform's own meaning |
store_url | Keeps the platform's own meaning |
image_url | Image link. Capabilities with several images may return an image_urls array. |
images | Image links: on product capabilities the product gallery in page order, on reviews the buyer's photos. |
description_images | Keeps the platform's own meaning |
price_max | Upper end of the price range for products whose variants cost different amounts. |
original_price_max | Upper end of the list-price range for multi-variant products. |
sold_text | Sales figure as shown (for example 10,000+ sold); a rounded display, not an exact count. |
attributes | Product attributes as {name, value} rows (material, model and so on). |
category_id | AliExpress category ID. |
category_path | AliExpress category path. |
ship_to | The destination country or region this price and shipping quote applies to. |
total_stock | Total stock across all variants; each variant's own stock is in its variants entry. |
video_url | Product video link. |
store_id | Store ID. |
seller_id | Seller ID (AliExpress's own public ID). |
store_country | Country or region of the store. |
store_opened_at | When the store opened. |
store_positive_rate | Store positive-feedback rate as shown (for example 95.2%). |
store_rating | Store rating. |
store_sold_180d | Store sales over the last 180 days, as shown. |
store_is_top_rated | Whether the store is an AliExpress Top Rated seller. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- AliExpress: Category SKU Attributes and General Attributes ↗
Open platform attribute lookup endpoints separate SKU attributes from general attributes under a category, providing fields such as attribute name, attribute value, and whether a field is required. This explanation serves only to clarify AliExpress variant terminology and does not indicate that this endpoint supports product listing or guarantees returning all category combinations.
Checked 2026-09-05