AliExpress
AliExpress price, stock, the per-SKU variant matrix, specs, images and link by product id, about 24,000 products per credit. A lookup for many ids, plus keyword search.
AliExpress price, stock, the per-SKU variant matrix, specs, images and link by product id, about 24,000 products per credit. A lookup for many ids, plus keyword search.
At a glance
Property | Value |
|---|---|
|
|
Product id | The number in an AliExpress product link, |
Marketplaces | Live: |
Tier |
|
Ids per call | 50 |
Typical call | 1–4 s per product |
Search |
|
Image search |
|
Example
- cURL
- Python
- Node.js
curl -X POST "https://api.scrapelyserp.com/v1/products" \
-H "Authorization: Bearer $SCRAPELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "aliexpress",
"ids": [
"1005006123456789",
"https://www.aliexpress.com/item/1005007654321098.html"
]
}'import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.post(
"https://api.scrapelyserp.com/v1/products",
headers=HEADERS,
json={
"platform": "aliexpress",
"ids": [
"1005006123456789",
"https://www.aliexpress.com/item/1005007654321098.html",
],
},
timeout=30,
)
r.raise_for_status()
data = r.json()
for p in data["results"]:
ax = p.get("aliexpress") or {}
print(p["id"], p["status"], (p.get("price") or {}).get("amount"), len(ax.get("variants") or []))const res = await fetch('https://api.scrapelyserp.com/v1/products', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
platform: 'aliexpress',
ids: [
'1005006123456789',
'https://www.aliexpress.com/item/1005007654321098.html',
],
}),
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();
for (const p of data.results) console.log(p.id, p.status, p.price?.amount, p.aliexpress?.variants?.length ?? 0);Full reference → POST /v1/products
AliExpress fields
Besides the common fields, each result carries an aliexpress object with the per-SKU matrix and specs.
Field | Description |
|---|---|
| The price charged, in USD (the sale price when on sale — the cheapest sellable SKU). |
| Each SKU (option combination): |
| The regular (pre-discount) price of the cheapest SKU, when a higher one is shown; |
| The headline discount on the cheapest SKU ( |
| The seller’s numeric id; |
| Product attributes AliExpress lists ( |
|
|
| Product image URLs. |
Not given | Ratings and reviews. |
Search
GET /v1/structured/aliexpress/search returns AliExpress products for a keyword — product id, title, price and currency, image and product link — up to 60 results, about 179,000 results per credit.
Parameter | Description |
|---|---|
| The keyword (required). |
| Always 1 — AliExpress returns one top page of up to 60 results ( |
No matches
A keyword that matches nothing returns an empty list (total_results 0), not a failure. A page that could not be read is a failure (502 TARGET_FAILED, not charged); ask again.
Image search
GET or POST /v1/structured/aliexpress/image-search finds AliExpress products that look like a photo and returns one page of the same result rows as keyword search. Send image_url, or the image itself as image_base64 in a POST body (JPEG or PNG). about 6,000 images per credit is typical, and a larger photo costs more.
Parameter | Type | Default | Description |
|---|---|---|---|
| string | — | A public http or https URL of a JPEG or PNG photo. |
| string | — | POST only: the image itself, base64 (a |
Full reference → GET /v1/structured/aliexpress/image-search
One image, one page
Send exactly one of image_url or image_base64. An image URL must be a public http or https address; a private, local or loopback address is refused. A page we could not read is a 502 TARGET_FAILED, free; ask again.
Statuses on AliExpress
not_found: there is no such product id.partial: the product page answered but the price matrix did not (title, link and image only).unavailable: no usable answer after retries. Ask again; it is not charged.