Apinoa Docs

Product

获取单个 Walmart 商品:价格、变体、图片、规格、卖家和配送。

查看原始 .mdx
GET | POST /v1/walmart/product

参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 请求体发送,两者等价。

请求

curl "https://gateway.apinoa.com/v1/walmart/product?id=344144554" \
  -H "x-api-key: $APINOA_API_KEY"

参数

参数类型必填说明
idstring是Walmart's usItemId, all digits, as carried by a search item — chain straight in.
regionstringBuyer country as ISO 3166-1 alpha-2; sets availability, shipping and price.
sellerstringWalmart's numeric seller id (seller.ext.catalogSellerId, or selectedSellerId in a Walmart link; 0 is Walmart.com): the product's offer from that seller. A seller that does not sell the item gets Walmart's default offer, so compare the returned seller.ext.catalogSellerId.

这些参数及所有响应类型也写在OpenAPI 文档中。

响应

在 data 中返回 Product。 真实响应的节选:数组只保留前几项,长文本已截断。

{
  "success": true,
  "data": {
    "marketplace": "walmart",
    "id": "344144554",
    "groupId": "246TMOPG71MZ",
    "title": "Genuine Dickies Men's Wool Thermal Crew Sock, 3 P…",
    "url": "https://www.walmart.com/ip/Genuine-Dickies-Men-s-…",
    "price": {
      "currency": "USD",
      "amount": 15.98
    },
    "priceRange": {
      "min": {
        "currency": "USD",
        "amount": 15
      },
      "max": {
        "currency": "USD",
        "amount": 15.98
      }
    },
    "brand": "Dickies",
    "identifiers": {
      "gtin": "737899635869",
      "mpn": "K312270BK",
      "model": "K312270BK"
    },
    "brandUrl": "https://www.walmart.com/search?q=Dickies&facet=br…",
    "rating": {
      "average": 4.7,
      "count": 552,
      "distribution": {
        "1": 3,
        "2": 1,
        "3": 2,
        "4": 9,
        "5": 85
      },
      "grouped": true
    },
    "seller": {
      "name": "Walmart.com",
      "id": "F55CDC31AB754BB68FE0B39041159D63"
    },
    "fulfilledBy": "Walmart",
    "inStock": true,
    "status": "In stock",
    "purchaseLimit": 58,
    "salesLabel": "50+ bought since yesterday",
    "salesCount": 50,
    "delivery": {
      "carrier": "Shipping",
      "code": "SHIPPING",
      "estimate": "Shipping, arrives by today to Sacramento, 95829",
      "available": true
    },
    "shippingOptions": [
      {
        "carrier": "Shipping",
        "code": "SHIPPING",
        "estimate": "Shipping, arrives by today to Sacramento, 95829",
        "available": true
      }
    ],
    "deliveryTo": {
      "label": "Sacramento, CA 95829",
      "country": "US",
      "postalCode": "95829"
    },
    "returnsPolicy": "Free Holiday returns until Jan 31",
    "description": "Genuine Dickies 3-Pack Men's Wool Blend Thermal S…",
    "features": [
      "Steel Toe Reinforcement through toe cap."
    ],
    "media": {
      "images": [
        "https://i5.walmartimages.com/seo/Genuine-Dickies-…"
      ],
      "videos": []
    },
    "category": [
      {
        "id": "5438",
        "name": "Clothing"
      }
    ],
    "attributes": [
      {
        "name": "Product line",
        "value": "Thermal"
      }
    ],
    "options": [
      {
        "id": "actual_color",
        "name": "Color",
        "values": [
          {
            "id": "actual_color-black",
            "name": "Black",
            "imageUrl": "https://i5.walmartimages.com/asr/91fc82d2-5618-41…"
          }
        ]
      }
    ],
    "variants": [
      {
        "id": "344144554",
        "productId": "344144554",
        "price": {
          "currency": "USD",
          "amount": 15.98
        },
        "inStock": true,
        "identifiers": {
          "gtin": "737899635869"
        },
        "selections": [
          {
            "optionId": "actual_color",
            "valueId": "actual_color-black",
            "optionName": "Color",
            "valueName": "Black"
          }
        ]
      }
    ],
    "offers": [],
    "badges": [
      "Overall pick"
    ],
    "promotions": [
      "See how to earn a $35 welcome bonus with the OneP…"
    ],
    "reviewAspects": [
      {
        "name": "Foot Comfort",
        "mentions": 37
      }
    ],
    "boxContents": [],
    "reviews": [
      {
        "id": "445007093",
        "author": "Tracy",
        "rating": 5,
        "title": "The best thermal socks",
        "body": "My husband loves these socks. They are the only o…",
        "date": "2026-10-20",
        "verified": true,
        "helpfulCount": 0,
        "variant": "Black / Shoe Size 6-12",
        "images": []
      }
    ],
    "reviewSummary": "Customers highly praise these socks for their exc…"
  }
}

错误

状态代码含义
400INVALID_PARAMS参数缺失、未知或超出范围。消息中会指出是哪一个。
401UNAUTHORIZED缺少 x-api-key 请求头,或密钥已吊销或未知。
402INSUFFICIENT_BALANCE余额不足以支付本次调用。请在控制台充值。
404PRODUCT_NOT_FOUND该平台没有这个商品。
429MARKETPLACE_SATURATED并发调用过多。请等待 Retry-After 秒后重试。
502UPSTREAM_ERROR平台返回了无法使用的内容。请退避后重试。

全部错误代码见 Errors。失败的调用不计费。

价格

价格 每次调用 $0.001。标价;单日调用超过 1,000 次后单价下调。

说明

  • 搜索结果条目的 id 就是 Walmart 的 usItemId,因此搜索可以直接衔接到 product。

本页内容