SerpBase
Back to Blog

Walmart Product API: Price, Stock and Reviews as JSON

Read a Walmart product page as JSON by item ID: price, list price, stock, seller, UPC, specifications, variants and review summary. Tested with a price-check script.

November 26, 2026
By SerpBase Team3 min read

Short answer: send a Walmart item ID to /walmart/product and you get the product page as JSON — current price, list price, stock, seller, UPC, specifications, colour variants with their own prices, and the review summary with ten recent reviews.

The item ID is the number at the end of a Walmart product URL (walmart.com/ip/.../12516374178). It is also the us_item_id field in Walmart search results.

The request

curl -X POST 'https://api.serpbase.dev/walmart/product' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"id":"12516374178"}'

What comes back

We ran this on 26 November 2026. Item 12516374178 came back in about 4 seconds as the Keurig K-Express Essentials coffee maker: price $35.00, list price $68.99, In stock, rating 4.4 from 59,900 reviews. A second item, 2258193826 (a Nespresso Vertuo Pop), returned $59.00 against a list price of $119.00 with three colour variants; that one took about 20 seconds.

The main fields in product:

FieldWhat it holds
title, brand, model, upcIdentity of the item
price, list_priceEach with amount, currency, display
availability, conditionIn stock, New
seller.display_nameWalmart.com or the marketplace seller
offersEvery offer on the page; the Keurig had a second, open-box offer that was out of stock
variants, variant_productsOptions such as colour, each with its own price and stock (5 colours on the Keurig)
specificationsKey/value table from the page (15 entries on the Keurig)
categoriesBreadcrumb, 5 levels
reviewsRating, star distribution, recommended_percentage, review themes, top_positive, top_negative and 10 review items
delivery.date, fulfillment_optionsShipping, pickup, delivery
mediaImages (15 on the Keurig)

Python: a price check

import requests

ITEMS = ["12516374178", "2258193826"]

for item in ITEMS:
    r = requests.post(
        "https://api.serpbase.dev/walmart/product",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={"id": item},
        timeout=90,
    ).json()
    if r["status"] != 0:
        print(item, "failed:", r.get("error"))
        continue
    p = r["product"]
    was = p.get("list_price", {}).get("amount")
    print(item, p["price"]["amount"], "was", was, p["availability"], p["title"][:50])

Things that trip people up

  • amount is a string, and whole dollars have no decimals: "35", not 35.00. Convert with Decimal.
  • list_price is not always there. Use .get(); when it is missing the item is simply not marked down.
  • Each colour or size is its own product. variant_products lists them with their prices; the top-level price belongs to the variant in selected_variant_id.
  • Pickup and delivery are for one store area. The features block names the place it was read for (Sacramento, CA in our test), so pickup and same-day delivery availability describe that area, not your customer's.
  • Give it time. One of our two requests took about 20 seconds. Set a client timeout well above that.
  • Ten reviews, not all of them. reviews.items is the first page shown on the product page; the totals and star distribution cover everything.

Related endpoints

Find item IDs with the Walmart search endpoint. For Indian retail there is a Flipkart product endpoint.

Cost and limits

Each request costs 2 credits; failed requests are not charged. The response is always HTTP 200 with a status field: 0 means success, anything else comes with an error string. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.