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

# Coupang API

> Coupang の商品を検索して JSON で受け取ります。ストアが表示する順に、商品の順位と価格、評価、レビュー数を返します。

Coupang（coupang.com）の商品を非同期タスク API で検索します。`COMMERCE_SERP` に `site` `coupang` を指定すると、検索結果の商品をストアの順に受け取ります。このストアの商品ページは `COMMERCE_PRODUCT` では読み取りません。完了した検索 1 件につき **2 クレジット**です。

## 検索

```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": "coupang", "query": "airpods", "limit": 3 } }'
```

タスクを送信したあと、`GET /v1/async/task/{id}` をポーリングするか Webhook で受け取ります。[非同期タスク](https://docs.querying.ai/ja/concepts/async-tasks.md)を参照してください。

### パラメータ

* `site`: 必須。`coupang` です。
* `query`: 必須。検索語で、1-500 文字です。
* `limit`: 任意の整数、1-40。デフォルトは 20 です。
* `country`: 任意。デフォルトはストアの国の `KR` です。ほかの国は `422 REGION_UNSUPPORTED` で拒否されます。

受け付けるペイロードフィールドは上記のみです。`include` は省略してください。`include: {}` でも、クレジットを確保する前に `payload.include` の `422 VALIDATION_ERROR` を返します。

### 結果フィールド

* `site`、`query`、`country` はリクエストの値です。`returnedCount` は `products` の件数です。
* 各商品は `rank`、`productId`、`title`、`url` を含みます。`productId` はストア独自の商品 ID です。`rank` はストアのデフォルトの並び順で、広告商品も表示された位置のまま含みます。
* `price`、`rating`、`reviewCount`、`imageUrl` は、検索結果の画面に表示されている場合に含みます。`price` は商品ごとの `currency`（ISO 4217）の数値で、容量ごとに価格が異なる場合は最も低い価格です。
* `rating` は 5 点満点です。 999+ のように省略表示されたレビュー数は含みません。
* 検索ごとに、ストアの検索結果の 1 ページ目から商品を取得します。

## エラーと課金

* 商品が 1 つもない検索は、失敗したタスクとして終了します。
* 課金は完了した検索だけで、1 件につき 2 クレジットです。

## 関連

* [Olive Young](https://docs.querying.ai/ja/engines/oliveyoung.md)
* [11st](https://docs.querying.ai/ja/engines/11st.md)
* [Lotte ON](https://docs.querying.ai/ja/engines/lotteon.md)
* [Commerce のストア一覧](https://docs.querying.ai/ja/engines/overview.md#commerce)
* [クレジットと上限](https://docs.querying.ai/ja/concepts/credits-and-limits.md)


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