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

# Qoo10 API

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

通过异步任务 API 搜索 Qoo10（qoo10.jp）的商品并读取商品页面。发送 `COMMERCE_SERP` 并设置 `site` `qoo10`，按商城的顺序获取搜索结果中的商品；向 `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": "qoo10", "query": "anua", "limit": 3 } }'
```

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

### 参数

* `site`：必填。值为 `qoo10`。
* `query`：搜索词，1-500 个字符。不发送 `url` 时必填。
* `url`：代替搜索读取的 Qoo10 店铺页面，例如 `https://www.qoo10.jp/shop/LG-BEAUTY`；地址中的查询字符串会被去掉。`query` 和 `url` 只发送其一。
* `limit`：可选整数，范围 1-40，默认 20。发送 `url` 时范围 1-200，默认 200。
* `country`：可选。默认是商城所在国家 `JP`。其他国家会以 `422 REGION_UNSUPPORTED` 拒绝。

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

### 响应示例

```json theme={"theme":"css-variables"}
{
  "site": "qoo10",
  "query": "anua",
  "country": "JP",
  "returnedCount": 3,
  "products": [
    {
      "rank": 1,
      "productId": "1204422003",
      "title": "【NEW】Barrier Reboot デイリーモイスチャライザー/ウォータージェルクリーム/インテンシブクリーム100ml",
      "url": "https://www.qoo10.jp/g/1204422003",
      "price": 3400,
      "currency": "JPY",
      "rating": 4.65,
      "reviewCount": 10640,
      "brand": "アヌア",
      "imageUrl": "https://gd.image-qoo10.jp/li/068/078/8542078068.g_100-w-st_g.jpg"
    },
    {
      "rank": 2,
      "productId": "1114201571",
      "title": "【お守り美容液】PDRN ヒアルロン酸カプセル100 セラム 30ml / 50ml (単品/セット)",
      "url": "https://www.qoo10.jp/g/1114201571",
      "price": 3200,
      "currency": "JPY",
      "rating": 4.75,
      "reviewCount": 73885,
      "brand": "アヌア",
      "imageUrl": "https://gd.image-qoo10.jp/li/969/535/8545535969.g_100-w-st_g.jpg"
    },
    {
      "rank": 3,
      "productId": "1103518685",
      "title": "アゼライン酸15 インテンスカーミングセラム 30ml",
      "url": "https://www.qoo10.jp/g/1103518685",
      "price": 2800,
      "currency": "JPY",
      "rating": 4.65,
      "reviewCount": 67999,
      "brand": "アヌア",
      "imageUrl": "https://gd.image-qoo10.jp/li/306/080/8542080306.g_100-w-st_g.jpg"
    }
  ]
}
```

### 结果字段

* `site`、`query` 和 `country` 回显请求。`returnedCount` 是 `products` 中的商品数。发送 `url` 的任务返回所读取店铺页面的 `url`，而不是 `query`。
* 每个商品包含 `rank`、`productId`、`title` 和 `url`。`productId` 是商城自己的商品 ID。`rank` 遵循商城的默认排序，商城标为广告的商品会被跳过。
* 搜索结果页显示时返回 `price`、`rating`、`reviewCount`、`imageUrl` 和 `brand`。`price` 是以商品的 `currency`（ISO 4217）计的数字；不同规格分别定价时，取最低价。
* `rating` 为五分制。像 999+ 这样的缩写评价数不会返回。
* 每次搜索从商城搜索结果的第一页获取商品。
* Qoo10 店铺页面显示卖家放在店铺各区块中的商品。`products` 按页面顺序最多列出 `limit` 个，每个商品只出现一次；`price` 是每张卡片显示的价格，卡片应用了店铺优惠券时为优惠后的价格。

## 商品页面

```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.qoo10.jp/g/1204422003" } }'
```

### 参数

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

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

### 响应示例

```json theme={"theme":"css-variables"}
{
  "site": "qoo10",
  "country": "JP",
  "url": "https://www.qoo10.jp/g/1204422003",
  "productId": "1204422003",
  "title": "【NEW】Barrier Reboot デイリーモイスチャライザー/ウォータージェルクリーム/インテンシブクリーム100ml",
  "brand": "アヌア",
  "price": 3400,
  "listPrice": 4850,
  "currency": "JPY",
  "inStock": true,
  "rating": 4.6,
  "reviewCount": 10601,
  "images": [
    "https://gd.image-qoo10.jp/li/068/078/8542078068.g_600-w-st_g.jpg",
    "https://gd.image-qoo10.jp/ai/158/532/8541532158_01.g_600-w-st_g.jpg"
  ],
  "descriptionImages": [
    "https://gdetail.image-qoo10.jp/930/616945986/2026/11/3b683357-5810-4691-bbf2-f031c6b1d7b8.jpg",
    "https://gdetail.image-qoo10.jp/930/616945986/2026/11/b6529060-2980-4fc3-b345-e2ad17010b52.jpg"
  ]
}
```

### 结果字段

* `site`、`country`、`url` 和 `productId` 标识页面。`url` 是读取的页面，`productId` 与搜索返回的 ID 一致。
* `title` 始终返回。页面显示时返回 `brand`、`price`、`listPrice`、`currency`、`inStock`、`rating`、`reviewCount`、`images` 和 `descriptionImages`。
* `price` 是页面最初显示、未计优惠券和运费的购买价格，以 `currency`（ISO 4217）计。 `listPrice` 是页面划线显示的原价，高于 `price` 时才返回。 `inStock` 是商品的库存状态。
* `rating` 为五分制，保留两位小数。 `reviewCount` 是评价数。
* `images` 按页面顺序列出商品图库中最多 30 张图片。
* `descriptionImages` 按页面顺序列出商品描述中最多 300 张图片。卖家放在描述里的横幅和公告也会一并返回，图片中的文字不会读取。

## 错误与计费

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

## 相关

* [Rakuten](https://docs.querying.ai/zh/engines/rakuten.md)
* [Yahoo! Shopping](https://docs.querying.ai/zh/engines/yahoo-shopping.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.