AI City Remix$11,500 prize pool. Pick a city, let AI tell its story, Oct 22 – 28.Join now
API reference · AliExpress

aliexpress/search/products

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/api/aliexpress/search/products
Model IDaliexpress/search/products
01

Input Schema

13 parameters · 0 required · 13 optional

ParameterTypeRequiredDescription
qstringOptionalProduct search query.
locstringOptionalLocation filter for product search results.
attrstringOptionalProduct attribute filter for search results.
pagestringOptionalOne-based page number for pagination.
sortstringOptionalSort order for product search results. · Options: default, salesDesc, priceAsc, priceDesc · Default: "default"
defaultsalesDescpriceAscpriceDesc
catIdstringOptionalCategory ID used to filter product search results.
localestringOptionalLocale used for the AliExpress response.
regionstringOptionalAliExpress marketplace region.
brandIdstringOptionalBrand ID used to filter product search results.
currencystringOptionalCurrency code used for product prices.
endPricenumberOptionalMaximum product price filter, inclusive.
switchesstringOptionalSearch switches used to select optional result features.
startPricenumberOptionalMinimum product price filter, inclusive.
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/api/aliexpress/search/products", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "q": "phone case",
    "sort": "default"
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());