> ## 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.

# Lotte ON API

> 搜索 Lotte ON 的商品并读取商品页面，以 JSON 获取结果：搜索结果的排名、价格、评分、评价数和品牌，以及商品页面的价格、库存、卖家、图片和规格。

通过异步任务 API 搜索 Lotte ON（lotteon.com）的商品并读取商品页面。发送 `COMMERCE_SERP` 并设置 `site` `lotteon`，按商城的顺序获取搜索结果中的商品；向 `COMMERCE_PRODUCT` 传入商品的 `url`，读取该商品。每次完成的搜索或商品页面消耗 **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": "lotteon", "query": "airpods", "limit": 3 } }'
```

提交任务后，轮询 `GET /v1/async/task/{id}` 或通过 webhook 接收。参见[异步任务](https://docs.querying.ai/zh/concepts/async-tasks.md)。

### 参数

* `site`：必填。值为 `lotteon`。
* `query`：必填。搜索词，1-500 个字符。
* `limit`：可选整数，范围 1-40，默认 20。
* `country`：可选。默认是商城所在国家 `KR`。其他国家会以 `422 REGION_UNSUPPORTED` 拒绝。

仅接受上方列出的载荷字段。请省略 `include`：即使是 `include: {}`，也会在冻结积分前返回针对 `payload.include` 的 `422 VALIDATION_ERROR`。

### 响应示例

```json theme={"theme":"css-variables"}
{
  "site": "lotteon",
  "query": "airpods",
  "country": "KR",
  "returnedCount": 3,
  "products": [
    {
      "rank": 1,
      "productId": "LO2762983012",
      "title": "알루무 A39 에어팟 프로 3 호환 이어폰 보호 케이스 스트랩포함 AirPods",
      "url": "https://www.lotteon.com/p/product/LO2762983012?sitmNo=LO2762983012_2762983014&mall_no=1",
      "price": 57800,
      "currency": "KRW",
      "brand": "알루무",
      "imageUrl": "https://contents.lotteon.com/itemimage/20261011194224/LO/27/62/98/30/12/_2/76/29/83/01/4/LO2762983012_2762983014_1.png/dims/optimize/resizemc/400x400"
    },
    {
      "rank": 2,
      "productId": "LO2545544028",
      "title": "Apple Airpods Pro 3 애플 에어팟 프로 3 노이즈캔슬링 블루투스 이어폰/ 관부가세포함",
      "url": "https://www.lotteon.com/p/product/LO2545544028?sitmNo=LO2545544028_2545544029&mall_no=1",
      "price": 335330,
      "currency": "KRW",
      "rating": 5,
      "reviewCount": 2,
      "brand": "Apple",
      "imageUrl": "https://contents.lotteon.com/itemimage/20260828122445/LO/25/45/54/40/28/_2/54/55/44/02/9/LO2545544028_2545544029_1.jpg/dims/optimize/resizemc/400x400"
    },
    {
      "rank": 3,
      "productId": "LO2797494125",
      "title": "SUPCASE 에어팟 프로3 케이스 AirPods Pro3 방수케이스 맥세이프 섭케이스",
      "url": "https://www.lotteon.com/p/product/LO2797494125?sitmNo=LO2797494125_2797494126&mall_no=1",
      "price": 69870,
      "currency": "KRW",
      "imageUrl": "https://contents.lotteon.com/itemimage/20261020093459/LO/27/97/49/41/25/_2/79/74/94/12/6/LO2797494125_2797494126_1.jpg/dims/optimize/resizemc/400x400"
    }
  ]
}
```

### 结果字段

* `site`、`query` 和 `country` 回显请求。`returnedCount` 是 `products` 中的商品数。
* 每个商品包含 `rank`、`productId`、`title` 和 `url`。`productId` 是商城自己的商品 ID。`rank` 遵循商城的默认排序，商城标为广告的商品会被跳过。
* 搜索结果页显示时返回 `price`、`rating`、`reviewCount`、`imageUrl` 和 `brand`。`price` 是以商品的 `currency`（ISO 4217）计的数字；不同规格分别定价时，取最低价。
* `rating` 为五分制。像 999+ 这样的缩写评价数不会返回。
* 每次搜索从商城搜索结果的第一页获取商品。

## 商品页面

```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_PRODUCT", "payload": { "url": "https://www.lotteon.com/p/product/LO2762983012?sitmNo=LO2762983012_2762983014&mall_no=1" } }'
```

### 参数

* `url`：必填。Lotte ON 的商品页面，最多 2,048 个字符，格式为 `lotteon.com/p/product/{id}`。搜索返回的商品 `url` 可直接使用。跟踪代码等不影响结果的参数会在读取前去掉。
* `country`：可选。默认是页面所在国家 `KR`。其他国家会以 `422 REGION_UNSUPPORTED` 拒绝。

仅接受上方列出的载荷字段。请省略 `include`：即使是 `include: {}`，也会在冻结积分前返回针对 `payload.include` 的 `422 VALIDATION_ERROR`。

### 响应示例

```json theme={"theme":"css-variables"}
{
  "site": "lotteon",
  "country": "KR",
  "url": "https://www.lotteon.com/p/product/LO2762983012?sitmNo=LO2762983012_2762983014&mall_no=1",
  "productId": "LO2762983012",
  "title": "알루무 A39 에어팟 프로 3 호환 이어폰 보호 케이스 스트랩포함 AirPods",
  "brand": "알루무",
  "price": 54910,
  "currency": "KRW",
  "inStock": true,
  "seller": "롯데ON",
  "images": [
    "https://contents.lotteon.com/itemimage/20261011194224/LO/27/62/98/30/12/_2/76/29/83/01/4/LO2762983012_2762983014_1.png"
  ],
  "descriptionImages": [
    "https://ai.esmplus.com/moadeli/notice/notice_top.jpg",
    "https://shop-phinf.pstatic.net/20260904_172/1788461038021RFJty_PNG/2%EC%97%B4_%EC%98%B5%EC%85%98-_%EB%B3%B5%EC%82%AC%EB%B3%B8_(1).png"
  ],
  "specs": [
    { "name": "품명 및 모델명", "value": "상품 상세설명 참조" },
    { "name": "법에 의한 인증, 허가 등을 받았음을 확인할 수 있는 경우 그에 대한 사항", "value": "상품 상세설명 참조" },
    { "name": "제조국 또는 원산지", "value": "상품 상세설명 참조" }
  ],
  "categories": ["해외직구", "TV/영상/음향기기", "헤드폰/이어폰"]
}
```

### 结果字段

* `site`、`country`、`url` 和 `productId` 标识页面。`url` 是读取的页面，`productId` 与搜索返回的 ID 一致。
* `title` 始终返回。页面显示时返回 `brand`、`price`、`currency`、`inStock`、`seller`、`images`、`description`、`descriptionImages`、`specs` 和 `categories`。
* `price` 是页面最初显示、未计优惠券和运费的购买价格，以 `currency`（ISO 4217）计。 `inStock` 是商品的库存状态。 `seller` 是销售该商品的商家。
* `images` 按页面顺序列出商品图库中最多 30 张图片。这家商城只返回主图。
* `description` 是每段一行的纯文本，最多 10,000 个字符；只出现在图片中的文字不包含在内。这家商城的大部分商品信息以图片展示，因此带有 `description` 的页面不多。
* `descriptionImages` 按页面顺序列出商品描述中最多 300 张图片。卖家放在描述里的横幅和公告也会一并返回，图片中的文字不会读取。
* `specs` 列出商品详情中最多 100 组 `{ name, value }`。 `categories` 从最宽的类目排到最窄的类目，最多 10 级。

## 错误与计费

* 没有返回任何商品的搜索以失败任务结束。
* 商城以 404 或 410 响应的商品页面（例如已下架的商品）会以 `PAGE_UNAVAILABLE` 结束任务，消息中带有商城的响应。如果商城以 403、412、429 或 435 拒绝读取，任务会等待并在最多 6 分钟内重新请求。其他读取失败，以及持续更久的拒绝，以 `ENGINE_NO_RESULT` 结束。
* 只对完成的任务计费：每次搜索或每个商品页面 0.5 积分。

## 相关

* [Coupang](https://docs.querying.ai/zh/engines/coupang.md)
* [Olive Young](https://docs.querying.ai/zh/engines/oliveyoung.md)
* [11st](https://docs.querying.ai/zh/engines/11st.md)
* [全部 Commerce 商城](https://docs.querying.ai/zh/engines/overview.md#commerce)
* [积分与限制](https://docs.querying.ai/zh/concepts/credits-and-limits.md)


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