Amazon 类目销量分层
Amazon 类目的周度快照,按销量排名分层:商品数、销量、销售额、价格、评分、上架时长、配送方式和头部品牌。支持 US、UK、DE。
API 数据样例
直接查看该接口实际使用的请求体和完整响应结构。
{
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100"
}{
"request_id": "4b5aa785-ca69-559c-afa6-f734b1fad4e5",
"data": {
"rank_range": 1,
"product_count": 100,
"variation_count": 1128,
"monthly_sales_volume": 1737949,
"monthly_sales_amount": 22029084.27,
"avg_price": 14.35,
"avg_rating": 4.7,
"avg_rating_count": 12373,
"new_listings_3m": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"new_listings_6m": {
"monthly_sales_volume": 14890,
"monthly_sales_amount": 284788.93,
"product_count": 2
},
"new_listings_12m": {
"monthly_sales_volume": 81205,
"monthly_sales_amount": 592096.66,
"product_count": 5
},
"old_listings_12m_plus": {
"monthly_sales_volume": 1656744,
"monthly_sales_amount": 21436987.61,
"product_count": 95
},
"old_listings_24m_plus": {
"monthly_sales_volume": 1381914,
"monthly_sales_amount": 17727224.57,
"product_count": 80
},
"delivery": {
"fba": {
"monthly_sales_volume": 1653468,
"monthly_sales_amount": 21514689.69,
"product_count": 94
},
"fbm": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"other": {
"monthly_sales_volume": 84481,
"monthly_sales_amount": 514394.58,
"product_count": 6
}
},
"amazon_owned": {
"monthly_sales_volume": 734008,
"monthly_sales_amount": 6453249.53,
"product_count": 18
},
"top_brands": [
{
"brand": "vailnd",
"product_count": 9,
"monthly_sales_volume": 463014,
"monthly_sales_amount": 5374049.16
},
{
"brand": "Reynolds",
"product_count": 9,
"monthly_sales_volume": 301860,
"monthly_sales_amount": 2047686.84
},
{
"brand": "katbite",
"product_count": 25,
"monthly_sales_volume": 245454,
"monthly_sales_amount": 3954149.76
}
]
}
}可用状态:已开放
该接口已进入 v1 网关、OpenAPI 和订阅权限目录,每次调用消耗 1 个计费单位,查不到数据(
RESULT_NOT_FOUND)也照常计费。
POST /v1/amazon/markets/sales-tiers
下方请求和响应字段已与当前公开契约核对。
MCP 调用
| 项目 | 内容 |
|---|---|
| MCP Code | amazon_markets_sales_tiers |
快速调用
先创建 API 密钥,再将密钥写入服务端环境变量:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/amazon/markets/sales-tiers \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100"
}'使用 AI CLI 接入
复制给 AI CLI
粘贴到 Codex、Claude Code、Gemini CLI 或其他编程智能体中直接完成接入。
请直接在当前代码库中接入 Ecommerce Data API 的「Amazon 类目销量分层」接口,不要只给示例代码。
接口文档:https://ecommercedataapi.com/zh/docs/amazon/markets/sales-tiers
请求接口:POST https://ecommercedataapi.com/v1/amazon/markets/sales-tiers
API 密钥环境变量:ECOMMERCE_DATA_API_KEY
请求示例:
{
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100"
}
请按以下要求执行:
1. 先阅读接口文档,并检查当前项目使用的语言、框架、HTTP 客户端、目录结构和环境变量约定。
2. 优先复用项目现有的 API 客户端和错误处理方式;如果没有,再创建最小可复用的 Ecommerce Data API 客户端与该接口调用封装。
3. 从服务端环境变量 ECOMMERCE_DATA_API_KEY 读取密钥,发送 Content-Type: application/json 和 X-API-Key 请求头。绝不能把真实密钥写入源码、前端代码、日志、测试快照或 Git。
4. 如果环境变量不存在,提示我自行设置 ECOMMERCE_DATA_API_KEY;不要索取、输出或猜测真实密钥,并继续完成不依赖真实请求的代码与测试。
5. 根据接口文档实现请求与响应类型,处理非 2xx 响应、request_id、error.code、error.message 和 429 限流。
6. 添加一个符合当前项目习惯的最小调用示例或测试。如果密钥已配置且当前环境允许外部请求,再执行一次最小真实调用;否则使用 mock 或静态验证。
7. 运行相关格式化、类型检查和测试,最后汇报修改文件、调用方法、验证结果以及仍需我配置的环境变量。还没有 API 密钥?创建 API 密钥
在 Postman 中打开当前请求
下载当前接口的预配置 Collection,再通过 Postman Import 导入。
导入后在 Collection Variables 中填写 apiKey。创建 API 密钥
Node.js 示例
const response = await fetch(
'https://ecommercedataapi.com/v1/amazon/markets/sales-tiers',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
categoryId: '678533011',
marketplace: 'US',
tier: '1-100',
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python 示例
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/amazon/markets/sales-tiers",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])请求参数
请求体直接发送下表字段,不要再包裹额外对象;未定义字段会被拒绝。
| 字段 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
categoryId | 字符串 | 是 | Amazon 类目节点 ID,取自查产品类目接口或商品的类目路径。 | 678533011 |
marketplace | 字符串 | 否 | 市场编码,可选值见枚举。 可用值(表 1.2):US、JP、UK、DE、FR、IT、ES、CA、IN、MX、BR、AU、AE | US |
tier | 字符串 | 否 | 销量排名分层:1-100、101-200、201-400、401+、1-400 或 all 全部。 | 1-100 |
返回结构
| 字段 | 类型 | 说明 |
|---|---|---|
request_id | 字符串 | 本次请求的唯一标识。 |
data | 对象 | 接口业务数据。 |
下表字段位于 data 内。数组接口描述的是单个数组元素,分页接口描述的是 items[] 中的单条记录。
返回字段
| 字段 | 类型 | 说明 | 示例 |
|---|---|---|---|
rank_range | 整数 | 返回的排名区间,与请求的 tier 代码一致:1 = 1-100 名,2 = 101-200 名,3 = 201-400 名,4 = 401 名以后,5 = 1-400 名,6 = 全部 | 1 |
product_count | 整数 | 该区间内的商品数 | 100 |
variation_count | 整数 | 该区间内商品的子变体总数 | 1128 |
monthly_sales_volume | 整数 | 该区间内商品的月销量合计 | 1737949 |
monthly_sales_amount | 数字 | 该区间内商品的月销售额合计,单位 USD | 22029084.27 |
avg_price | 数字 | 价格大于 0 的商品的平均价格,单位 USD;无有效价格的商品不计入 | 14.35 |
avg_rating | 数字 | 评分大于 0 的商品的平均评分 | 4.7 |
avg_rating_count | 整数 | 该区间内商品的平均评论数,评论数为 0 的商品也计入 | 12373 |
new_listings_3m | 对象 | 上架 3 个月及以内的商品:product_count、monthly_sales_volume、monthly_sales_amount | - |
new_listings_6m | 对象 | 上架 6 个月及以内的商品:product_count、monthly_sales_volume、monthly_sales_amount | - |
new_listings_12m | 对象 | 上架 12 个月及以内的商品:product_count、monthly_sales_volume、monthly_sales_amount | - |
old_listings_12m_plus | 对象 | 上架超过 12 个月的商品:product_count、monthly_sales_volume、monthly_sales_amount | - |
old_listings_24m_plus | 对象 | 上架超过 24 个月的商品:product_count、monthly_sales_volume、monthly_sales_amount | - |
delivery | 对象 | 配送方式拆分:fba、fbm、other,各含 product_count、monthly_sales_volume、monthly_sales_amount;AmzFBA 计入 fba,未知或为空计入 other | - |
amazon_owned | 对象 | 购物车卖家为亚马逊的商品:product_count、monthly_sales_volume、monthly_sales_amount | - |
top_brands | 数组 | 该区间月销量前 3 的品牌;每项含 brand、product_count、monthly_sales_volume、monthly_sales_amount;无品牌数据时为空 | - |
top_brands.brand | 字符串 | 品牌名称 | vailnd |
top_brands.product_count | 整数 | 该品牌在此区间内的商品数 | 9 |
top_brands.monthly_sales_volume | 整数 | 该品牌在此区间内商品的月销量 | 463014 |
top_brands.monthly_sales_amount | 数字 | 该品牌在此区间内商品的月销售额,单位 USD | 5374049.16 |
返回示例
{
"request_id": "4b5aa785-ca69-559c-afa6-f734b1fad4e5",
"data": {
"rank_range": 1,
"product_count": 100,
"variation_count": 1128,
"monthly_sales_volume": 1737949,
"monthly_sales_amount": 22029084.27,
"avg_price": 14.35,
"avg_rating": 4.7,
"avg_rating_count": 12373,
"new_listings_3m": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"new_listings_6m": {
"monthly_sales_volume": 14890,
"monthly_sales_amount": 284788.93,
"product_count": 2
},
"new_listings_12m": {
"monthly_sales_volume": 81205,
"monthly_sales_amount": 592096.66,
"product_count": 5
},
"old_listings_12m_plus": {
"monthly_sales_volume": 1656744,
"monthly_sales_amount": 21436987.61,
"product_count": 95
},
"old_listings_24m_plus": {
"monthly_sales_volume": 1381914,
"monthly_sales_amount": 17727224.57,
"product_count": 80
},
"delivery": {
"fba": {
"monthly_sales_volume": 1653468,
"monthly_sales_amount": 21514689.69,
"product_count": 94
},
"fbm": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"other": {
"monthly_sales_volume": 84481,
"monthly_sales_amount": 514394.58,
"product_count": 6
}
},
"amazon_owned": {
"monthly_sales_volume": 734008,
"monthly_sales_amount": 6453249.53,
"product_count": 18
},
"top_brands": [
{
"brand": "vailnd",
"product_count": 9,
"monthly_sales_volume": 463014,
"monthly_sales_amount": 5374049.16
},
{
"brand": "Reynolds",
"product_count": 9,
"monthly_sales_volume": 301860,
"monthly_sales_amount": 2047686.84
},
{
"brand": "katbite",
"product_count": 25,
"monthly_sales_volume": 245454,
"monthly_sales_amount": 3954149.76
}
]
}
}错误响应、请求追踪和限流头说明见错误与限流。