# Walmart 商品详情 API (walmart.product_detail)

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

Walmart 商品详情接口按商品链接 `url` 读取一件商品的资料：名称 `name`、品牌 `brand`、现价 `price`、原价 `original_price`、币种 `currency`、是否有货 `in_stock`、评分 `rating`、评价条数 `review_count`、卖家 `seller_name` 和分类 `category`。它回答「这件商品现在怎么卖、口碑如何、谁在卖」，适合竞品售价监测和选品。

`url` 要用 walmart.com/ip/ 的商品链接，读的是商品资料，不是买家账号。`text` 是商品的正文内容，`id` 是平台内唯一的商品标识，对象详情那一页没有这两个字段。`review_count` 为 null 只是没公开，别当成零评价。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | profile / reviews / product_detail 的 walmart.com/ip/ 商品链接。profile 与 product_detail 都是商品资料，不是买家账号；reviews 读取该商品评论。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| brand | 品牌。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| original_price | 原价。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| in_stock | 是否有货。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| seller_name | 卖家名称（Walmart 也有第三方卖家）。 |
| 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": "walmart",
  "action": "product_detail",
  "params": {
    "url": "https://www.walmart.com/ip/Apple-AirPods-Pro-2nd-Generation/1752657021"
  }
}'
```

```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": "walmart",
        "action": "product_detail",
        "params": {
            "url": "https://www.walmart.com/ip/Apple-AirPods-Pro-2nd-Generation/1752657021",
        },
    },
    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. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "walmart",
  "action": "product_detail",
  "results": {
    "id": "1752657021",
    "url": "https://www.walmart.com/ip/Apple-AirPods-Pro-2nd-Generation-Lightning/1752657021?conditionGroupCode=2",
    "name": "Restored Apple AirPods Pro (2nd Generation) Lightning Wireless Bluetooth In-Ear Earbuds, White",
    "text": "Experience an unparalleled audio journey with the Apple AirPods Pro (2nd Generation). These advanced in-ear earbuds feature up to two times more Active Noise Cancellation, allowing you to immerse yourself fully in your audio. Adaptive Transparency lets you comfortably hear your s…",
    "brand": "Apple",
    "rating": 4.6,
    "review_count": 11634,
    "seller_name": "Wombat Reserve",
    "image_url": "https://i5.walmartimages.com/seo/Restored-Apple-Airpods-Pro-2nd-Generation-Refurbished_dc1e427d-c6d3-44c5-9c08-dbb9b0030d01.a6a4c4063e1e06200c0804f8dbcbd0b7.jpeg",
    "platform": "walmart",
    "rating_scale": 5
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `price` 里为什么没有货币符号？

`price` 只给数值，不含货币符号，币种在 `currency` 里，如 USD。碰到 `currency` 为 null 的行，哪怕 `price` 有数，也别按美元或其他币种去猜。

### `seller_name` 一定是 Walmart 自己吗？

不一定。Walmart 也有第三方卖家，`seller_name` 是这件商品的卖家名称。监测售价或比价时，把 `seller_name` 和 `price` 一起记下。

### 和对象详情那一页怎么选？

两个接口的 `url` 一样，都是商品资料。这个接口有 `id`、`text` 和 `original_price`；对象详情页有商品条码、库存状态、成色、划线价、退货信息、图片列表和亮点，还多一个选英语或法语展示的参数。需要同款匹配或退货信息，用对象详情页；需要商品正文，用这个接口。

## Also

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