# Amazon 畅销榜 API (amazon.bestsellers)

- Canonical page: https://everyinfra.com/amazon-api/bestsellers
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "amazon", "action": "bestsellers", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

Amazon 畅销榜按 `keyword` 读取一个类目的畅销榜，默认 20 条，单次最多 100 条。`keyword` 优先传类目畅销榜的完整 URL，也可以传用来拼榜单路径的类目短名。每行带 `name`、类目排名 `rank`、`price`、`rating`、`review_count`、在售卖家数 `offer_count` 和分类名 `category`。它回答「这个类目里哪些商品卖得最好」，适合选品和竞品摸底。

`offer_count` 是在售卖家数，数字大说明跟卖的卖家多，价格竞争激烈；`price` 只给数值，不带货币符号。卖家的企业名、电话和地址不在这一页，要用卖家搜索那一页读。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=amazon&action=bestsellers

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 随接口区分：search 是商品搜索词；bestsellers 优先传 Amazon 类目畅销榜完整 URL，也接受用于拼接榜单路径的类目短名；sellers 可传商品/卖家相关页面 URL，普通文字则先构造商品搜索页，并非按卖家 ID 精确查找。 |
| lang | enum: ar / bn / cs / da / de / en / es / fr / he / hi / ja / kn / ko / ml / mrta / nl / pl / pt / sv / ta / te / tr / zhcn / zhtw | no | not declared | 页面内容语言。en / ja 等为英文 / 日文；简体和繁体中文使用 zhcn / zhtw，不是通用 zh。只接受当前接口列出的语言代码，选择语言不等于切换国家站点。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| rank | 类目排名（BSR）。**Amazon 上估算销量的核心依据**。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| offer_count | 在售卖家数。多卖家跟卖的商品价格竞争激烈。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "amazon",
  "action": "bestsellers",
  "params": {
    "keyword": "Electronics"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "amazon",
        "action": "bestsellers",
        "params": {
            "keyword": "Electronics",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "amazon",
  "action": "bestsellers",
  "results": [
    {
      "id": "B08JHCVHTY",
      "url": "https://www.amazon.com/dp/B08JHCVHTY",
      "name": "blink plus plan with monthly auto-renewal",
      "rank": 1,
      "rating": 4.4,
      "review_count": 280580,
      "category": "Electronics",
      "image_url": "https://images-na.ssl-images-amazon.com/images/I/31YHGbJsldL._AC_UL300_SR300,200_.png",
      "platform": "amazon",
      "rating_scale": 5
    },
    {
      "id": "B0DCH8VDXF",
      "url": "https://www.amazon.com/dp/B0DCH8VDXF",
      "name": "Apple EarPods Headphones with USB-C Plug, Wired Ear Buds with Built-in Remote to Control Music, Phone Calls, and Volume",
      "rank": 2,
      "price": {
        "value": 17.87,
        "currency": "$"
      },
      "rating": 4.5,
      "review_count": 18316,
      "offer_count": 17,
      "category": "Electronics",
      "image_url": "https://images-na.ssl-images-amazon.com/images/I/513OSdW4elL._AC_UL300_SR300,200_.jpg",
      "platform": "amazon",
      "rating_scale": 5
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 畅销榜的 `keyword` 填类目还是商品词？

填类目。首选类目畅销榜的完整 URL；示例里的 Electronics 是另一种写法，即类目短名，接口用它拼出榜单路径。商品搜索词属于搜索那一页的用法。

### `rank` 能直接当销量用吗？

不能直接当销量。`rank` 是类目排名（BSR），是 Amazon 上估算销量的核心依据，本身是名次而不是件数。读它时和 `category` 一起存，因为 `category` 是 Amazon 自己的分类名，没有跨平台归一。

### `lang` 选了中文就会读到中国站吗？

不会，`lang` 只决定页面内容的语言，选语言不等于切换国家站点。简体中文写 zhcn，繁体写 zhtw，不是通用的 zh；只接受接口列出的语言代码，例如 `en`、`ja`。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=amazon
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
