> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AliExpress API

> AliExpress에서 상품을 검색해 JSON으로 받습니다. 쇼핑몰이 보여 주는 순서대로 상품 순위와 가격, 평점 정보를 담습니다.

AliExpress(aliexpress.com)에서 상품을 비동기 task API로 검색합니다. `COMMERCE_SERP`(`site`: `aliexpress`)를 보내면 검색 결과의 상품을 쇼핑몰 순서대로 받습니다. 이 쇼핑몰의 상품 페이지는 `COMMERCE_PRODUCT`로 읽지 않습니다. 완료된 검색당 **0.5크레딧**입니다.

## 검색

```bash theme={"theme":"css-variables"}
curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "taskType": "COMMERCE_SERP", "payload": { "site": "aliexpress", "query": "wireless earbuds", "limit": 3 } }'
```

task를 제출한 뒤 `GET /v1/async/task/{id}`를 폴링하거나 웹훅으로 받습니다. 참고: [비동기 task](https://docs.querying.ai/ko/concepts/async-tasks.md).

### 입력

* `site`: 필수. `aliexpress`입니다.
* `query`: 필수. 검색어이며 1-500자입니다.
* `limit`: 선택. 정수 1-40이며 기본값은 20입니다.
* `country`: 선택. 기본값은 쇼핑몰의 국가인 `US`입니다. 다른 국가는 `422 REGION_UNSUPPORTED`로 거절합니다.

위에 나열한 페이로드 필드만 받습니다. `include`는 생략합니다. `include: {}`도 크레딧을 확보하기 전에 `payload.include`의 `422 VALIDATION_ERROR`를 반환합니다.

### 응답 예시

```json theme={"theme":"css-variables"}
{
  "site": "aliexpress",
  "query": "wireless earbuds",
  "country": "US",
  "returnedCount": 3,
  "products": [
    {
      "rank": 1,
      "productId": "3256813273775472",
      "title": "Wireless Earbuds, Bluetooth 5.4 Earbuds Stereo Bass, Bluetooth Headphones in Ear Noise Cancelling Mic, Earphones IP7 Waterproof Sports, 36H Playtime USB C Mini Charging Case Ear Buds for Android iOS",
      "url": "https://www.aliexpress.com/item/3256813273775472.html",
      "price": 13.95,
      "currency": "USD",
      "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/Seafc726f8c6247c48e492e80361dbb0ah.jpg"
    },
    {
      "rank": 2,
      "productId": "3256811621288203",
      "title": "2026 New Air 3【 Pro3 】 Bluetooth Wireless Earbuds With Heart Rate Monitoring, Active Noise Cancellation Headphones, Waterproof for Daily Use, For IPhone IOS Smartphone, Gaming /Sports /Fitness Earphones.",
      "url": "https://www.aliexpress.com/item/3256811621288203.html",
      "price": 13.25,
      "currency": "USD",
      "rating": 4.9,
      "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/Sa57a4580c1274b01988d5df3fa8e76cbx.jpg"
    },
    {
      "rank": 3,
      "productId": "3256813271161904",
      "title": "Smart Touch Control True Wireless Earbuds, Active Noise Cancelling, Portable Mini Charging Case Easy To Carry, Low Latency For Gaming, Long Battery Life, Instant Connection, Spatial Audio, Ergonomic In-Ear Comfort Fit, Air Bluetooth Headphones.",
      "url": "https://www.aliexpress.com/item/3256813271161904.html",
      "price": 27.39,
      "currency": "USD",
      "imageUrl": "https://ae-pic-a1.aliexpress-media.com/kf/S9675a1dc8aa545959180535f79ea4ddd2.jpg"
    }
  ]
}
```

### 결과 필드

* `site`, `query`, `country`는 요청 값입니다. `returnedCount`는 `products`에 담긴 상품 수입니다.
* 각 상품은 `rank`, `productId`, `title`, `url`을 담습니다. `productId`는 쇼핑몰 자체 상품 ID입니다. `rank`는 쇼핑몰의 기본 정렬 순서이며, 쇼핑몰이 광고로 표시한 상품은 건너뜁니다.
* `price`, `rating`, `imageUrl` 필드는 검색 결과 화면에 있을 때 담습니다. `price`는 상품별 `currency`(ISO 4217) 기준의 숫자이며, 용량별 가격이 다르면 가장 낮은 가격입니다. AliExpress 가격은 로그인하지 않은 미국 구매자에게 보이는 판매가입니다.
* `rating`은 5점 만점입니다. AliExpress는 평가 수 없이 별점만 보여 주므로 `reviewCount`는 없습니다.
* 검색마다 쇼핑몰의 첫 결과 페이지에서 상품을 가져옵니다.

## 오류와 과금

* 상품이 하나도 없는 검색은 실패한 task로 끝납니다.
* 완료된 검색에만 과금하며, 검색당 0.5크레딧입니다.

## 관련 문서

* [Amazon](https://docs.querying.ai/ko/engines/amazon.md)
* [Walmart](https://docs.querying.ai/ko/engines/walmart.md)
* [Target](https://docs.querying.ai/ko/engines/target.md)
* [Commerce 쇼핑몰 전체](https://docs.querying.ai/ko/engines/overview.md#commerce)
* [크레딧과 한도](https://docs.querying.ai/ko/concepts/credits-and-limits.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.