# AliExpress Product Search API

> Search AliExpress products by keyword with sort, category, brand, price, locale, region and currency filters.

Source: https://www.sandbase.ai/model/aliexpress/search/products
API reference: https://www.sandbase.ai/model/aliexpress/search/products/docs

## Facts

- Provider: AliExpress
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/aliexpress/search/products`
- Price: $0.02 per call
- Capabilities: api, aliexpress, ecommerce
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/aliexpress/search/products` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | no |  |
| `page` | string | no |  |
| `sort` | string | no | default, salesDesc, priceAsc, priceDesc |
| `catId` | string | no |  |
| `brandId` | string | no |  |
| `loc` | string | no |  |
| `switches` | string | no |  |
| `attr` | string | no |  |
| `startPrice` | number | no |  |
| `endPrice` | number | no |  |
| `locale` | string | no |  |
| `region` | string | no |  |
| `currency` | string | no |  |

## FAQ

### How do I use the AliExpress Product Search API?

Send a POST request to https://api.sandbase.ai/v1/api/aliexpress/search/products with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the AliExpress Product Search API cost?

$0.02 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the AliExpress Product Search API accept?

No parameters are required. Optional: q (string), page (string), sort (one of default, salesDesc, priceAsc, priceDesc), catId (string), brandId (string) and loc (string) and 7 more. The Parameters table and the Playground on this page list every field.

### What does the AliExpress Product Search API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a AliExpress developer account or API key?

No. AliExpress Product Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for AliExpress API access separately.

## README

### AliExpress Product Search API

Search AliExpress products by keyword with sort, category, brand, price, locale, region and currency filters.

The response is the platform's original data structure.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "aliexpress/search/products", "q": "phone case"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `q` | string | No | Product search query. |
| `page` | string | No | One-based page number for pagination. |
| `sort` | string | No | Sort order for product search results. |
| `catId` | string | No | Category ID used to filter product search results. |
| `brandId` | string | No | Brand ID used to filter product search results. |
| `loc` | string | No | Location filter for product search results. |
| `switches` | string | No | Search switches used to select optional result features. |
| `attr` | string | No | Product attribute filter for search results. |
| `startPrice` | number | No | Minimum product price filter, inclusive. |
| `endPrice` | number | No | Maximum product price filter, inclusive. |
| `locale` | string | No | Locale used for the AliExpress response. |
| `region` | string | No | AliExpress marketplace region. |
| `currency` | string | No | Currency code used for product prices. |

#### Pricing

Flat price per call. Failed calls and empty results are not charged.
