Walmart 类目 Top 100
某个 Walmart 末级类目当前的 Top 100 畅销商品,含月销量、月销售额、价格、卖家和配送方式。
API 数据样例
直接查看该接口实际使用的请求体和完整响应结构。
{
"categoryId": "4044_90548_90546_5175115"
}{
"request_id": "355524b4-9cc5-5a0a-9234-693686f781c5",
"data": [
{
"product_id": "12516374178",
"parent_product_id": "2ZRAMD27J84J",
"photo": [
"https://i5.walmartimages.com/seo/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker_70d03917-65f9-480f-8391-aade09ee61ca.c44d2b2f723cb1529a4c181faed76958.jpeg",
"https://i5.walmartimages.com/asr/e67f9927-9f0c-4432-8324-e3c0bffa895d.5a3aeb17287965d0af6efb5b05c3091f.jpeg",
"https://i5.walmartimages.com/asr/8144c52e-2bbb-40fd-89f5-08f753f68d1e.9ec8f9f1630f5c4a688b18a0386b8933.jpeg",
"https://i5.walmartimages.com/asr/11a247a5-db08-4b98-9a2e-6453abc75da0.97657417f7aa6aefe8ad383a1248999c.jpeg",
"https://i5.walmartimages.com/asr/4536d4d9-4ccb-4836-acc0-78f40acecf08.030c5b64e462c432c8d4d689adeafd92.jpeg",
"https://i5.walmartimages.com/asr/246cd0c1-2523-4ce3-b88e-0d09bf432626.c701d75a33d1648896830ddbe921380d.jpeg",
"https://i5.walmartimages.com/asr/d1234d0c-9bce-48ec-95a6-8937ef6735c2.888501e8015d3082713901b1fe635cc4.jpeg",
"https://i5.walmartimages.com/asr/38ac1a3a-59a0-48e5-aebe-d32fb6300aff.7bce0c83e7eb932846dbee532986f3b6.jpeg"
],
"title": "Keurig K-Express Essentials Black Single-Serve K-Cup Pod Coffee Maker",
"price": "$35",
"listing_sales_volume_of_month": 42995,
"listing_sales_of_month": "$1504825",
"brand": "Keurig",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 59710,
"ratings": 4.4,
"number_of_star": [
1,
5745,
2,
1378,
3,
1985,
4,
4687
],
"node_tree": [
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-19",
"3",
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-20",
"3"
],
"attribute": [
"Brand",
"Keurig",
"Compatible form",
"Pods",
"Water reservoir capacity",
"30 oz",
"Preset cup sizes",
"6 oz"
],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": [
{
"VariantId": "12516374178",
"Url": "https://www.walmart.com/ip/KEE-BLACK-GEN-2/12516374178",
"Property": [
"Actual Color",
"Black"
],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "13883356007",
"Url": "https://www.walmart.com/ip/KEE-BLUEBELL-GEN-2/13883356007",
"Property": [
"Actual Color",
"Bluebell"
],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "12516374178",
"Url": " https://www.walmart.com/ip/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker/12516374178",
"Property": [
"Actual Color",
"Black"
],
"PriceUpdate": "2026-11-25",
"DetailUpdate": "2026-11-25"
}
],
"first_reviews_date": null
},
{
"product_id": "12516374178",
"parent_product_id": "2ZRAMD27J84J",
"photo": [
"https://i5.walmartimages.com/seo/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker_70d03917-65f9-480f-8391-aade09ee61ca.c44d2b2f723cb1529a4c181faed76958.jpeg",
"https://i5.walmartimages.com/asr/e67f9927-9f0c-4432-8324-e3c0bffa895d.5a3aeb17287965d0af6efb5b05c3091f.jpeg",
"https://i5.walmartimages.com/asr/8144c52e-2bbb-40fd-89f5-08f753f68d1e.9ec8f9f1630f5c4a688b18a0386b8933.jpeg",
"https://i5.walmartimages.com/asr/11a247a5-db08-4b98-9a2e-6453abc75da0.97657417f7aa6aefe8ad383a1248999c.jpeg",
"https://i5.walmartimages.com/asr/4536d4d9-4ccb-4836-acc0-78f40acecf08.030c5b64e462c432c8d4d689adeafd92.jpeg",
"https://i5.walmartimages.com/asr/246cd0c1-2523-4ce3-b88e-0d09bf432626.c701d75a33d1648896830ddbe921380d.jpeg",
"https://i5.walmartimages.com/asr/d1234d0c-9bce-48ec-95a6-8937ef6735c2.888501e8015d3082713901b1fe635cc4.jpeg",
"https://i5.walmartimages.com/asr/38ac1a3a-59a0-48e5-aebe-d32fb6300aff.7bce0c83e7eb932846dbee532986f3b6.jpeg"
],
"title": "Keurig K-Express Essentials Black Single-Serve K-Cup Pod Coffee Maker",
"price": "$35",
"listing_sales_volume_of_month": 42995,
"listing_sales_of_month": "$1504825",
"brand": "Keurig",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 59710,
"ratings": 4.4,
"number_of_star": [
1,
5745,
2,
1378,
3,
1985,
4,
4687
],
"node_tree": [
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-19",
"3",
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-20",
"3"
],
"attribute": [
"Brand",
"Keurig",
"Compatible form",
"Pods",
"Water reservoir capacity",
"30 oz",
"Preset cup sizes",
"6 oz"
],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": [
{
"VariantId": "12516374178",
"Url": "https://www.walmart.com/ip/KEE-BLACK-GEN-2/12516374178",
"Property": [
"Actual Color",
"Black"
],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "13883356007",
"Url": "https://www.walmart.com/ip/KEE-BLUEBELL-GEN-2/13883356007",
"Property": [
"Actual Color",
"Bluebell"
],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "12516374178",
"Url": " https://www.walmart.com/ip/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker/12516374178",
"Property": [
"Actual Color",
"Black"
],
"PriceUpdate": "2026-11-25",
"DetailUpdate": "2026-11-25"
}
],
"first_reviews_date": null
}
]
}可用状态:已开放
该接口已进入 v1 网关、OpenAPI 和订阅权限目录,每次调用消耗 1 个计费单位,查不到数据(
RESULT_NOT_FOUND)也照常计费。
POST /v1/walmart/categories/top-products
下方请求和响应字段已与当前公开契约核对。
MCP 调用
| 项目 | 内容 |
|---|---|
| MCP Code | walmart_categories_top_products |
快速调用
先创建 API 密钥,再将密钥写入服务端环境变量:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/walmart/categories/top-products \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"categoryId": "4044_90548_90546_5175115"
}'使用 AI CLI 接入
复制给 AI CLI
粘贴到 Codex、Claude Code、Gemini CLI 或其他编程智能体中直接完成接入。
请直接在当前代码库中接入 Ecommerce Data API 的「Walmart 类目 Top 100」接口,不要只给示例代码。
接口文档:https://ecommercedataapi.com/zh/docs/walmart/categories-top-products
请求接口:POST https://ecommercedataapi.com/v1/walmart/categories/top-products
API 密钥环境变量:ECOMMERCE_DATA_API_KEY
请求示例:
{
"categoryId": "4044_90548_90546_5175115"
}
请按以下要求执行:
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/walmart/categories/top-products',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
categoryId: '4044_90548_90546_5175115',
}),
}
);
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/walmart/categories/top-products",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"categoryId": "4044_90548_90546_5175115",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])请求参数
请求体直接发送下表字段,不要再包裹额外对象;未定义字段会被拒绝。
| 字段 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
categoryId | 字符串 | 是 | 类目 ID,取自同平台的类目树或类目搜索。 | 4044_90548_90546_5175115 |
返回结构
| 字段 | 类型 | 说明 |
|---|---|---|
request_id | 字符串 | 本次请求的唯一标识。 |
data | 数组 | 接口业务数据。 |
下表字段位于 data 内。数组接口描述的是单个数组元素,分页接口描述的是 items[] 中的单条记录。
返回字段
| 字段 | 类型 | 说明 | 示例 |
|---|---|---|---|
product_id | 字符串 | Walmart 商品 ID,可作为 productId 传入详情、素材和趋势接口 | 12516374178 |
parent_product_id | 字符串 | 父商品 ID(该变体所属的主商品 ID) | 2ZRAMD27J84J |
photo | 数组 | 商品图片 URL 数组(主图在前) | - |
title | 字符串 | 商品标题 | Keurig K-Express Essentials Black Single-Serve K-Cup Pod Coffee Maker |
price | 字符串 | 商品售价(以 "$" 开头的字符串) | $35 |
listing_sales_volume_of_month | 整数 | 近 30 天月销量(件) | 42995 |
listing_sales_of_month | 字符串 | 近 30 天月销售额(以 "$" 开头的字符串) | $1504825 |
brand | 字符串 | 品牌 | Keurig |
seller | 字符串 | 卖家名称(含 Walmart 自营) | Walmart |
shipedby | 字符串 | 配送方式(如 WFS = Walmart Fulfillment Services) | WFS |
wfs_fee | 整数 | WFS 配送费 | 0 |
reviews_count | 整数 | 评论总数 | 59710 |
ratings | 数字 | 平均评分(满分 5) | 4.4 |
number_of_star | 数组 | 星级分布数组(按 1-5 星顺序,每项为该星级的评论数) | - |
node_tree | 数组 | 类目路径与日期数组,每组 4 项:[类目名称, nodeId, 日期, 排名](可能包含多组历史记录) | - |
attribute | 数组 | 商品属性键值对(每两个元素组成一对键和值) | - |
label | 数组 | 商品标签数组(如 bestsell、savewith) | - |
popular_pick | 布尔值 | 是否标记为 "Popular Pick" | True |
clearance | 布尔值 | 是否为清仓商品 | False |
reduced_price | 布尔值 | 是否已降价 | False |
rollback | 布尔值 | 是否参与 Rollback 折扣 | False |
flash_deal | 布尔值 | 是否参与 Flash Deal | False |
weight | 数字 | 商品重量(单位未标明,0 表示未填写) | 0.0 |
variants | 数组 | 变体数组 | - |
variants.variant_id | 字符串 | 变体 ID | - |
variants.url | 字符串 | 变体详情页 URL | - |
variants.property | 字符串 | 变体属性键值对(每两个元素组成一对键和值,如 ["Actual Color","Black"]) | - |
variants.price_update | 字符串 | 变体最近一次价格更新日期(yyyy-MM-dd) | - |
variants.detail_update | 字符串 | 变体最近一次详情更新日期(yyyy-MM-dd) | - |
first_reviews_date | 字符串 | 首条评论日期(yyyy-MM-dd) | - |
返回示例
{
"request_id": "355524b4-9cc5-5a0a-9234-693686f781c5",
"data": [
{
"product_id": "12516374178",
"parent_product_id": "2ZRAMD27J84J",
"photo": [
"https://i5.walmartimages.com/seo/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker_70d03917-65f9-480f-8391-aade09ee61ca.c44d2b2f723cb1529a4c181faed76958.jpeg",
"https://i5.walmartimages.com/asr/e67f9927-9f0c-4432-8324-e3c0bffa895d.5a3aeb17287965d0af6efb5b05c3091f.jpeg",
"https://i5.walmartimages.com/asr/8144c52e-2bbb-40fd-89f5-08f753f68d1e.9ec8f9f1630f5c4a688b18a0386b8933.jpeg",
"https://i5.walmartimages.com/asr/11a247a5-db08-4b98-9a2e-6453abc75da0.97657417f7aa6aefe8ad383a1248999c.jpeg",
"https://i5.walmartimages.com/asr/4536d4d9-4ccb-4836-acc0-78f40acecf08.030c5b64e462c432c8d4d689adeafd92.jpeg",
"https://i5.walmartimages.com/asr/246cd0c1-2523-4ce3-b88e-0d09bf432626.c701d75a33d1648896830ddbe921380d.jpeg",
"https://i5.walmartimages.com/asr/d1234d0c-9bce-48ec-95a6-8937ef6735c2.888501e8015d3082713901b1fe635cc4.jpeg",
"https://i5.walmartimages.com/asr/38ac1a3a-59a0-48e5-aebe-d32fb6300aff.7bce0c83e7eb932846dbee532986f3b6.jpeg"
],
"title": "Keurig K-Express Essentials Black Single-Serve K-Cup Pod Coffee Maker",
"price": "$35",
"listing_sales_volume_of_month": 42995,
"listing_sales_of_month": "$1504825",
"brand": "Keurig",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 59710,
"ratings": 4.4,
"number_of_star": [1, 5745, 2, 1378, 3, 1985, 4, 4687],
"node_tree": [
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-19",
"3",
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-20",
"3"
],
"attribute": [
"Brand",
"Keurig",
"Compatible form",
"Pods",
"Water reservoir capacity",
"30 oz",
"Preset cup sizes",
"6 oz"
],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": [
{
"VariantId": "12516374178",
"Url": "https://www.walmart.com/ip/KEE-BLACK-GEN-2/12516374178",
"Property": ["Actual Color", "Black"],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "13883356007",
"Url": "https://www.walmart.com/ip/KEE-BLUEBELL-GEN-2/13883356007",
"Property": ["Actual Color", "Bluebell"],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "12516374178",
"Url": " https://www.walmart.com/ip/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker/12516374178",
"Property": ["Actual Color", "Black"],
"PriceUpdate": "2026-11-25",
"DetailUpdate": "2026-11-25"
}
],
"first_reviews_date": null
},
{
"product_id": "12516374178",
"parent_product_id": "2ZRAMD27J84J",
"photo": [
"https://i5.walmartimages.com/seo/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker_70d03917-65f9-480f-8391-aade09ee61ca.c44d2b2f723cb1529a4c181faed76958.jpeg",
"https://i5.walmartimages.com/asr/e67f9927-9f0c-4432-8324-e3c0bffa895d.5a3aeb17287965d0af6efb5b05c3091f.jpeg",
"https://i5.walmartimages.com/asr/8144c52e-2bbb-40fd-89f5-08f753f68d1e.9ec8f9f1630f5c4a688b18a0386b8933.jpeg",
"https://i5.walmartimages.com/asr/11a247a5-db08-4b98-9a2e-6453abc75da0.97657417f7aa6aefe8ad383a1248999c.jpeg",
"https://i5.walmartimages.com/asr/4536d4d9-4ccb-4836-acc0-78f40acecf08.030c5b64e462c432c8d4d689adeafd92.jpeg",
"https://i5.walmartimages.com/asr/246cd0c1-2523-4ce3-b88e-0d09bf432626.c701d75a33d1648896830ddbe921380d.jpeg",
"https://i5.walmartimages.com/asr/d1234d0c-9bce-48ec-95a6-8937ef6735c2.888501e8015d3082713901b1fe635cc4.jpeg",
"https://i5.walmartimages.com/asr/38ac1a3a-59a0-48e5-aebe-d32fb6300aff.7bce0c83e7eb932846dbee532986f3b6.jpeg"
],
"title": "Keurig K-Express Essentials Black Single-Serve K-Cup Pod Coffee Maker",
"price": "$35",
"listing_sales_volume_of_month": 42995,
"listing_sales_of_month": "$1504825",
"brand": "Keurig",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 59710,
"ratings": 4.4,
"number_of_star": [1, 5745, 2, 1378, 3, 1985, 4, 4687],
"node_tree": [
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-19",
"3",
"Shop Kitchen Appliances in Kitchen Appliances",
"4044_90548_90546_5175115",
"2026-11-20",
"3"
],
"attribute": [
"Brand",
"Keurig",
"Compatible form",
"Pods",
"Water reservoir capacity",
"30 oz",
"Preset cup sizes",
"6 oz"
],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": [
{
"VariantId": "12516374178",
"Url": "https://www.walmart.com/ip/KEE-BLACK-GEN-2/12516374178",
"Property": ["Actual Color", "Black"],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "13883356007",
"Url": "https://www.walmart.com/ip/KEE-BLUEBELL-GEN-2/13883356007",
"Property": ["Actual Color", "Bluebell"],
"PriceUpdate": "2026-05-28",
"DetailUpdate": "2026-11-25"
},
{
"VariantId": "12516374178",
"Url": " https://www.walmart.com/ip/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker/12516374178",
"Property": ["Actual Color", "Black"],
"PriceUpdate": "2026-11-25",
"DetailUpdate": "2026-11-25"
}
],
"first_reviews_date": null
}
]
}错误响应、请求追踪和限流头说明见错误与限流。