Walmart Product Detail
Walmart Product Detail 用于获取 Walmart 商品详情数据。
- 按商品 ID 抓取商品详情
- 返回价格、评分、卖家、规格和变体信息
- 支持一次传入多个商品 ID
- 适合做商品档案整理和定制化电商数据采集
使用 XCrawl 获取 Walmart 商品详情
使用方式
curl -s -X POST 'https://run.xcrawl.com/v1/data' \
-H 'Authorization: Bearer $XCRAWL_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"engine": "walmart_product_detail",
"location": "US",
"product_id_list": ["10448202"]
}'请求参数说明:
engine固定为walmart_product_detaillocation用于指定抓取地区product_id_list用于传入一个或多个商品 ID
响应示例
{
"result": [
{
"content": {
"price": {
"price": 1.73,
"currency": "USD"
},
"general": {
"title": "Tony Chachere’s ...",
"brand": "Tony Chachere's"
}
}
}
]
}参数说明
必填参数
| 参数 | 类型 | 说明 |
|---|---|---|
location | string | 指定抓取地区。 |
product_id_list | array | 传入一个或多个 Walmart 商品 ID。 |
参数补充说明
location默认值为USproduct_id_list中的元素应为 Walmart 商品 ID
响应字段
响应数据位于 result[].content。
| 字段 | 类型 | 说明 |
|---|---|---|
price | object | 价格信息。 |
rating | object | 评分信息。 |
seller | object | 卖家信息。 |
general | object | 商品基础信息。 |
location | object | 门店或地区信息。 |
variations | array | 变体列表。 |
breadcrumbs | array | 分类路径。 |
specifications | array | 规格参数。 |
parse_status_code | string | 解析状态码。 |
基础信息字段
general 中常用字段包括:
| 字段 | 类型 | 说明 |
|---|---|---|
url | string | 商品页面链接。 |
brand | string | 品牌名称。 |
title | string | 商品标题。 |
images | array | 商品图片列表。 |
main_image | object | 主图信息。 |
description | string | 商品描述。 |
