curl --request POST \
--url https://api.getanyapi.com/v1/run/aliexpress.product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productId": "3256807039224587"
}
'import requests
url = "https://api.getanyapi.com/v1/run/aliexpress.product"
payload = { "productId": "3256807039224587" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({productId: '3256807039224587'})
};
fetch('https://api.getanyapi.com/v1/run/aliexpress.product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getanyapi.com/v1/run/aliexpress.product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'productId' => '3256807039224587'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getanyapi.com/v1/run/aliexpress.product"
payload := strings.NewReader("{\n \"productId\": \"3256807039224587\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getanyapi.com/v1/run/aliexpress.product")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"productId\": \"3256807039224587\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getanyapi.com/v1/run/aliexpress.product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"productId\": \"3256807039224587\"\n}"
response = http.request(request)
puts response.read_body{
"costUsd": 123,
"items": 123,
"output": {
"data": {
"items": [
{
"productId": "<string>",
"title": "<string>",
"url": "<string>",
"currency": "<string>",
"deliveryDaysMax": 123,
"deliveryDaysMin": 123,
"freeShipping": true,
"images": [
"<string>"
],
"isTopRatedSeller": true,
"options": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"originalPrice": 123,
"price": 123,
"quantityAvailable": 123,
"rating": 123,
"returnPolicy": "<string>",
"reviewsCount": 123,
"sellerCountry": "<string>",
"sellerFeedbackCount": 123,
"sellerFeedbackPercent": 123,
"sellerLevel": "<string>",
"sellerOpenedUtc": 123,
"sellerScore": 123,
"shipFrom": "<string>",
"shippingCost": 123,
"soldCount": 123,
"specifications": [
{
"name": "<string>",
"value": "<string>"
}
],
"storeId": "<string>",
"storeName": "<string>",
"variants": [
{
"attributes": {},
"image": "<string>",
"inStock": true,
"originalPrice": 123,
"price": 123,
"quantityAvailable": 123,
"skuId": "<string>"
}
],
"video": "<string>",
"wishlistCount": 123
}
]
},
"found": true,
"reason": "not_found"
},
"provider": "<string>",
"replayed": true,
"hint": "<string>",
"jqError": "<string>",
"resultId": "<string>",
"source": {
"artworkKey": "<string>",
"id": "<string>",
"kind": "anonymous",
"name": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}AliExpress Product
Look up one AliExpress product by id and get its price, original price, rating, reviews count, images, options, variants with stock, specifications, store, ship-from country and delivery estimate in one normalized response.
Price: $0.85 per 1,000 requests (flat per request - same cost regardless of results returned).
Routing: 2 independent lanes are available in execution order. A failed attempt uses the next lane only when the request’s payment authorizes that lane’s price; the normalized schema stays the same.
Catalog: AliExpress Product pricing and uptime - live USD price, lane routing, and measured 30-day uptime. Every Aliexpress endpoint.
curl --request POST \
--url https://api.getanyapi.com/v1/run/aliexpress.product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productId": "3256807039224587"
}
'import requests
url = "https://api.getanyapi.com/v1/run/aliexpress.product"
payload = { "productId": "3256807039224587" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({productId: '3256807039224587'})
};
fetch('https://api.getanyapi.com/v1/run/aliexpress.product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getanyapi.com/v1/run/aliexpress.product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'productId' => '3256807039224587'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getanyapi.com/v1/run/aliexpress.product"
payload := strings.NewReader("{\n \"productId\": \"3256807039224587\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getanyapi.com/v1/run/aliexpress.product")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"productId\": \"3256807039224587\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getanyapi.com/v1/run/aliexpress.product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"productId\": \"3256807039224587\"\n}"
response = http.request(request)
puts response.read_body{
"costUsd": 123,
"items": 123,
"output": {
"data": {
"items": [
{
"productId": "<string>",
"title": "<string>",
"url": "<string>",
"currency": "<string>",
"deliveryDaysMax": 123,
"deliveryDaysMin": 123,
"freeShipping": true,
"images": [
"<string>"
],
"isTopRatedSeller": true,
"options": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"originalPrice": 123,
"price": 123,
"quantityAvailable": 123,
"rating": 123,
"returnPolicy": "<string>",
"reviewsCount": 123,
"sellerCountry": "<string>",
"sellerFeedbackCount": 123,
"sellerFeedbackPercent": 123,
"sellerLevel": "<string>",
"sellerOpenedUtc": 123,
"sellerScore": 123,
"shipFrom": "<string>",
"shippingCost": 123,
"soldCount": 123,
"specifications": [
{
"name": "<string>",
"value": "<string>"
}
],
"storeId": "<string>",
"storeName": "<string>",
"variants": [
{
"attributes": {},
"image": "<string>",
"inStock": true,
"originalPrice": 123,
"price": 123,
"quantityAvailable": 123,
"skuId": "<string>"
}
],
"video": "<string>",
"wishlistCount": 123
}
]
},
"found": true,
"reason": "not_found"
},
"provider": "<string>",
"replayed": true,
"hint": "<string>",
"jqError": "<string>",
"resultId": "<string>",
"source": {
"artworkKey": "<string>",
"id": "<string>",
"kind": "anonymous",
"name": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Your AnyAPI key as a Bearer token.
Headers
Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
1 - 255Query Parameters
Optional. Comma-separated keys (dotted paths like author.name descend into nested objects) to keep on each result item: each row of the API's result list, or the data object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use jq to reshape the whole envelope. Shrinks the response without changing cost.
Optional. Cap the number of result rows returned; a _truncated note reports how many were withheld so you can page via the API's own limit. An API that returns one record is not trimmed. Does not change cost.
x >= 0Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
Optional. A jq expression applied to the result envelope; its output replaces output (multiple outputs collect into an array). Reshape freely, e.g. jq=.data | {title, description, md: .markdown[:3500]}. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a jqError. Does not change cost.
Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Body
AliExpress product id, the number in the product URL (https://www.aliexpress.com/item/.html), e.g. 3256807039224587. The AliExpress Search SKU returns it as productId.
^[0-9]+$Optional, default true. When false, only the sources listed in source may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
Ship-to country as a 2-letter ISO code, e.g. US or DE. It changes prices, stock and the delivery estimate.
^[A-Z]{2}$Price currency as a 3-letter ISO code, e.g. USD or EUR.
^[A-Z]{3}$Optional. Source ids to skip for this request, taken from this endpoint's lanes[].source.id. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in source, is rejected as invalid input with no charge; skipping every source is rejected the same way.
1Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
x >= 1Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example video, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. Naming a combination that no single source returns together is refused as invalid input, with no charge.
freeShipping, returnPolicy, shippingCost, video, wishlistCount Optional. Source ids to prefer, in order, taken from this endpoint's lanes[].source.id in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless allowFallbacks is false. A single source with allowFallbacks false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit source to be served by another. On a paginated walk, later pages must include the source that served page one, or omit source.
1Response
Normalized result.
USD charged on the original run. On a replay this value is echoed for parity; the replay itself is free.
Number of result rows returned; an API that returns one record counts it as one row. For per-result APIs the per-item cost is charged against this count; for input-priced APIs the charge is per submitted input, independent of this count.
Normalized output, or null when the replay payload was not retained.
Hide child attributes
Hide child attributes
Product wrapper, or null when AliExpress has no product with that id.
Hide child attributes
Hide child attributes
Product detail records (one per requested product id). Populated whenever the provider has data for the entity.
Hide child attributes
Hide child attributes
AliExpress product id. Populated whenever the provider has data for the entity.
Product title. Populated whenever the provider has data for the entity.
AliExpress product page URL with tracking query parameters removed.
Price currency code, e.g. "USD", or null when no price is shown. Populated whenever the provider has data for the entity.
Most days the default shipping option takes to the requested country, or null when not reported. Populated whenever the provider has data for the entity.
Fewest days the default shipping option takes to the requested country, or null when not reported. Populated whenever the provider has data for the entity.
True when the default shipping option to the requested country costs nothing after AliExpress's buyer promotions, or null when the serving source does not report it.
Product image URLs, primary first. Populated whenever the provider has data for the entity.
True when AliExpress marks the store as a top-rated seller, or null when not reported. Populated whenever the provider has data for the entity.
The choices a buyer picks from, e.g. Color and Size, each with its values. Populated whenever the provider has data for the entity.
Price of the default variant before the current discount, or null when not shown. Populated whenever the provider has data for the entity.
Current price of the default variant in the requested currency (the lowest variant price when the page shows a range), or null when not shown. Populated whenever the provider has data for the entity.
Units in stock across all variants, or null when not reported. Populated whenever the provider has data for the entity.
Average customer rating, 0-5, or null when the product is unrated. Populated whenever the provider has data for the entity.
The returns promise AliExpress shows on the product, e.g. "Free returns within 90 days", or null when the serving source does not report it.
Number of customer reviews, or null when not reported. Populated whenever the provider has data for the entity.
Country the store is registered in, as AliExpress names it, e.g. "China", or null when not reported. Populated whenever the provider has data for the entity.
Number of buyer feedback ratings the store has received, or null when not reported. Populated whenever the provider has data for the entity.
Share of the store's buyer feedback that is positive, as a percentage, e.g. 95.9, or null when not reported. Populated whenever the provider has data for the entity.
The store's AliExpress seller level code, e.g. "25-s", or null when not reported. Populated whenever the provider has data for the entity.
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. The day the store opened on AliExpress, as midnight UTC of that date; null when not reported. Populated whenever the provider has data for the entity.
The store's AliExpress feedback score, the points AliExpress shows beside the store, or null when not reported. Populated whenever the provider has data for the entity.
Country the default shipping option ships from, as AliExpress names it, e.g. "China", or null when not reported. Populated whenever the provider has data for the entity.
Shipping cost of the default option to the requested country, in the requested currency, or null when not reported or the serving source does not report it in that currency. AliExpress applies buyer promotions to it, so sources can differ.
Units sold, read from AliExpress's rounded label, so "4,000+ sold" comes back as 4000; null when not shown.
The seller's specifications table, one name and value per row. Populated whenever the provider has data for the entity.
Storefront number of the store, the digits in https://www.aliexpress.com/store/, or null when not reported. Populated whenever the provider has data for the entity.
Name of the store selling the product, or null when not reported. Populated whenever the provider has data for the entity.
One entry per purchasable combination of options. Populated whenever the provider has data for the entity.
Hide child attributes
Hide child attributes
The option values that make up this variant, keyed by option name, e.g. {"Color": "Purple", "Size": "XL"}, or null when the serving source does not report them.
Picture of this variant, or null when it has none or the serving source does not report it.
True when this variant can be bought now, or null when not reported.
Price of this variant before the current discount, or null when not reported.
Current price of this variant, or null when the serving source does not report it.
Units of this variant in stock, or null when not reported.
AliExpress id of this variant.
Product video URL (MP4), or null when the product has none or the serving source does not report it.
Number of shoppers who added the product to their wish list, or null when the serving source does not report it.
True when the product was found.
Present only when found is false, and says why there is no result. not_found: the source states the target does not exist, or returned nothing for it. A found: false answer is a successful call, not an error, and costUsd is what it actually cost.
not_found Always "AnyAPI".
True when this response replays the durable result of an earlier run without billing or upstream execution.
Optional one-line nudge, absent when there is nothing to say. large_result: suggests the fields/max_items/summary/jq controls for a big response. paging_unavailable: means this result came from a source that cannot return a nextCursor, so it may be INCOMPLETE and cannot be continued - re-run with requireFields: ["nextCursor"] to be served only by a source that can page, which may cost more per request. malformed_query: means X read your search query differently than it looks (adjacent bare words are ANDed and OR binds tighter, so a multi-word alternative is not a phrase, and an operator after an unbracketed OR list applies to its last alternative only); the run was served and billed as X read it, and the hint carries the corrected query to send instead. date_adjusted: means a date you sent was outside the range the platform accepts, so the run used the nearest accepted date the hint names.
Present only when a jq expression failed; output then carries the full unshaped result and this explains why the reshape did not apply.
Opaque handle to the full unshaped result, cached ~15 min. Re-shape it for free (fields/max_items/summary/jq) via GET /v1/results/{id}, no re-billing. Absent when the result was too large to cache.
The source that served this run. Pass its id back as source to prefer it again, or as ignoreSources to avoid it. Absent when no source identity applies to the run.
Hide child attributes
Hide child attributes
Key for this source's artwork.
Stable identifier for this source.
anonymous is a stable identity for an unattributed source; brand names the dataset that supplies the data.
anonymous, brand Display name for this source.