# 降价与促销 API

查询上游监测到的近期价格变化，适合筛查促销候选。

## 本页目录

- [请求参数](#parameters)
- [调用示例](#requests)
- [响应字段](#response)
- [AI 接入提示词](#prompt)

<a id="parameters"></a>

## 请求参数

`GET /v1/amazon/deals`

- `category` · 必填 · 1055398
- `marketplace` · 默认 US · US, UK, DE, FR, JP, CA, IT, ES, IN, MX, BR
- `limit` · 1–20，默认 10 · 5
- `mode` · demo 或 live，REST 默认 live · demo

<a id="requests"></a>

## 调用示例

### 合成数据

```sh
curl --get 'https://knowamazon.com/v1/amazon/deals' \
  --data-urlencode 'category=1055398' \
  --data-urlencode 'marketplace=US' \
  --data-urlencode 'limit=1' \
  --data-urlencode 'mode=demo'
```

### 实时数据 · Keepa

```sh
curl --get 'https://knowamazon.com/v1/amazon/deals' \
  --data-urlencode 'category=1055398' \
  --data-urlencode 'marketplace=US' \
  --data-urlencode 'limit=5' \
  -H "Authorization: Bearer $ASIN_WORKBENCH_API_KEY" \
  -H "X-Keepa-Key: $KEEPA_API_KEY"
```

<a id="response"></a>

## 响应字段

结果列为 asin、title、price、currency、url、previousPrice、priceChangedAt、observedAt。下方响应是合成数据。

```json
{
  "task": "deals",
  "mode": "demo",
  "provider": "sample",
  "marketplace": "US",
  "columns": [
    {
      "key": "asin",
      "label": "asin"
    },
    {
      "key": "title",
      "label": "title"
    },
    {
      "key": "price",
      "label": "price"
    },
    {
      "key": "currency",
      "label": "currency"
    },
    {
      "key": "url",
      "label": "url"
    },
    {
      "key": "previousPrice",
      "label": "previousPrice"
    },
    {
      "key": "priceChangedAt",
      "label": "priceChangedAt"
    },
    {
      "key": "observedAt",
      "label": "observedAt"
    }
  ],
  "rows": [
    {
      "asin": "DEMO000001",
      "title": "Sample insulated travel mug",
      "price": 24.99,
      "currency": "USD",
      "url": null,
      "previousPrice": 27.99,
      "priceChangedAt": "2026-10-11T12:00:00Z",
      "observedAt": "2026-10-12T12:00:00Z"
    }
  ],
  "requestCount": 0
}
```

<a id="prompt"></a>

## AI 接入提示词

```text
用 https://knowamazon.com/docs/api/deals/ 的 Price drops and deals 端点查询我提供的 category 和 Amazon 站点。先跑一次明示为合成数据的样例，确认字段和范围。实时查询使用我提供的工作台和供应商密钥。保留 provider、marketplace 和缺失值，不把合成值当实测。
```

[在 API Playground 试跑](https://knowamazon.com/console/playground/?endpoint=deals)

[在 API Playground 试跑](https://knowamazon.com/console/playground/?endpoint=deals)
