logo

Product Details

View as Markdown

Get store-scoped Walmart product data, HTML, or seller offers

The Product endpoint returns full detail for a single Walmart item as sold at one store: its price and stock at that location, plus its description and specifications. It can also return the product page as that store shows it, in HTML, or the item's complete seller roster as structured JSON.


Endpoint

GET https://api.scrape.do/plugin/walmart/product

Each successful request costs 10 credits. Failed requests are never charged.


Input Parameters

ParameterTypeRequiredDescription
tokenstring*Your Scrape.do API authentication token
itemstring*Walmart's numeric item id. You can get these from /plugin/walmart/search results or from a product URL
storeintegerConditionalWalmart store id to scope the response to. Provide exactly one of store or zipcode for standard product details.
zipcodestringConditional5-digit US ZIP code to scope the response to. Provide exactly one of store or zipcode for standard product details.
storeidintegerExact Walmart store id, paired with zipcode. This can target stores not supported by the standalone store parameter. For moreselleroptions=true, storeid alone is enough.
timeoutintegerPer-request timeout in milliseconds (default: system maximum)
outputstringjson (default) or html. HTML returns Walmart's product page as that store shows it.
moreselleroptionsbooleanSet to true to return every seller offering the item instead of product details. Requires storeid and cannot be combined with output=html.

The item id is the number at the end of a Walmart product URL: walmart.com/ip/HP-14-N150-4-128-Pink/18611919209


JSON Response Parameters

FieldTypeDescription
storeobjectThe store this response reflects — same shape as the search endpoint
productobjectThe product detail

Product Object Fields

FieldTypeDescription
item_idstringWalmart item id
namestringProduct title
brandstringBrand name
urlstringProduct page URL
imagesarrayProduct image URLs, full size
pricenumberCurrent price at this store. null when Walmart shows no price
list_pricenumberPre-discount price, present only when discounted
currencystringCurrency code (USD)
availabilitystringStock status at this store, e.g. IN_STOCK, OUT_OF_STOCK
order_limitnumberMaximum quantity per order, when Walmart sets one
sellerstringWho sells the item
seller_typestringINTERNAL when Walmart sells it directly; marketplace sellers carry their own type
fulfillmentarrayFulfillment methods offered, lowercased
ratingnumberAverage customer rating
reviews_countnumberNumber of reviews
categorystringWalmart's category path
conditionstringItem condition, e.g. New
upcstringUPC barcode
gtinstringGTIN barcode
model_numberstringManufacturer's model number
return_policystringReturn policy summary as Walmart states it
short_descriptionstringShort marketing description
long_descriptionstringFull description. Contains Walmart's HTML markup, not plain text
highlightsarrayKey attributes as { "name", "value" } pairs
specificationsarrayFull specification table as { "name", "value" } pairs

Fields Walmart does not supply for a given item are omitted from the response rather than returned empty, so check for a key's presence rather than for an empty string. price and reviews_count are the exceptions and are always present.


Example Usage

Step 1: Request an Item at a Store

curl "https://api.scrape.do/plugin/walmart/product?item=18611919209&store=1735&token=YOUR_TOKEN"

Step 2: Read the Response

{
  "store": {
    "store_id": "1735",
    "city": "…",
    "state": "IL",
    "postal_code": "…"
  },
  "product": {
    "item_id": "18611919209",
    "name": "HP 14 inch HD Windows Laptop Intel Processor N150 4GB 128GB UFS Tranquil Pink",
    "brand": "HP",
    "url": "https://www.walmart.com/ip/HP-14-N150-4-128-Pink/18611919209",
    "images": [
      "https://i5.walmartimages.com/seo/HP-14-N150-4-128-Pink.jpeg"
    ],
    "price": 259,
    "list_price": 379,
    "currency": "USD",
    "availability": "IN_STOCK",
    "order_limit": 2,
    "seller": "Walmart.com",
    "seller_type": "INTERNAL",
    "fulfillment": ["delivery"],
    "rating": 4.1,
    "reviews_count": 687,
    "category": "Home Page/Electronics/Computers, Laptops and Tablets/Laptops",
    "condition": "New",
    "upc": "199764359179",
    "gtin": "00199764359179",
    "model_number": "CQ5J5UA#ABA",
    "return_policy": "Free 30-day returns",
    "short_description": "The HP 14 inch Laptop PC has it all to get it done with an Intel processor...",
    "long_description": "<ul><li><strong>Intel N150 processor:</strong> Improved graphics and performance...</li></ul>",
    "highlights": [
      { "name": "Proc. speed", "value": "3.7 GHz" },
      { "name": "Battery life", "value": "11.25 h" }
    ],
    "specifications": [
      { "name": "RAM memory", "value": "4 GB" },
      { "name": "Screen size", "value": "14 in" },
      { "name": "OS", "value": "Windows 11" }
    ]
  }
}

Exact-Store HTML

Pass the store's ZIP code and exact id with output=html to receive Walmart's product page with content-type: text/html:

curl "https://api.scrape.do/plugin/walmart/product?item=18611919209&zipcode=60074&storeid=1735&output=html&token=YOUR_TOKEN"

The page reflects the store you target: its price, offer, stock, and pickup and delivery options, including the pickup store, are the ones that store offers.

The first requests to a storeid that has not been used recently can return 502 while its session is prepared. Retry after about one minute.


More Seller Options

Set moreselleroptions=true to return the item's complete national seller roster. This mode needs only item and storeid.

curl "https://api.scrape.do/plugin/walmart/product?item=18611919209&storeid=1735&moreselleroptions=true&token=YOUR_TOKEN"
{
  "store": { "store_id": "1735" },
  "item_id": "18611919209",
  "sellers": [
    {
      "offer_id": "A1B2C3D4E5F6",
      "seller_id": "F55PDMFT3C9F",
      "seller_name": "Walmart.com",
      "seller_type": "INTERNAL",
      "price": 259,
      "currency": "USD",
      "availability": "IN_STOCK",
      "fulfillment_type": "FC",
      "wfs_fulfilled": false,
      "has_seller_badge": true
    }
  ]
}
FieldTypeDescription
store.store_idstringEchoes the storeid you passed. The roster is national, so no city or ZIP is resolved.
item_idstringWalmart item id
sellersarrayEvery seller offering the item
sellers[].offer_idstringWalmart offer id, when available
sellers[].seller_idstringWalmart seller id, when available
sellers[].seller_namestringSeller display name
sellers[].seller_typestringINTERNAL for Walmart; otherwise a marketplace seller type
sellers[].pricenumber or nullOffer price, or null when unavailable
sellers[].currencystringISO currency code for the price
sellers[].availabilitystringStock status for the offer
sellers[].fulfillment_typestringHow the seller fulfills the offer
sellers[].wfs_fulfilledbooleanWhether Walmart Fulfillment Services ships the offer
sellers[].has_seller_badgebooleanWhether Walmart displays a trust badge for the seller

Comparing Prices Across Stores

Because the price and stock come from whichever store you target, requesting the same item id against different stores is how you measure regional differences:

for STORE in 1735 5021 3081; do
  curl -s "https://api.scrape.do/plugin/walmart/product?item=18611919209&store=$STORE&token=YOUR_TOKEN" \
    | jq '{store: .store.store_id, city: .store.city, price: .product.price, stock: .product.availability}'
done

Error Responses

StatusBodyCause
400{"error":"token is required"}Missing token
400{"error":"item (usItemId) is required"}Missing item
400{"error":"item must be a numeric usItemId"}item is not numeric
400{"error":"exactly one of store or zipcode is required"}Both or neither of store / zipcode were provided
400{"error":"store must be numeric"}store is not numeric
400{"error":"zipcode must be a 5-digit US zip"}zipcode is not a valid 5-digit US ZIP
400{"error":"storeid must be numeric"}storeid is not numeric
400{"error":"storeid requires zipcode"}storeid was sent with store instead of zipcode, outside seller-roster mode
400{"error":"storeid is not available for this zipcode"}The exact store is not available for that ZIP code
400{"error":"timeout is invalid"}timeout is not an integer
400{"error":"timeout must be a positive number of milliseconds"}timeout is zero or negative
400{"error":"moreselleroptions must be true or false"}moreselleroptions is not a boolean
400{"error":"moreselleroptions requires storeid"}Seller-roster mode was requested without an exact store id
400{"error":"moreselleroptions does not support output=html"}Seller-roster mode was combined with HTML output
400{"error":"output must be json or html"}output has an unsupported value
400Unsupported store idThis endpoint does not cover that store id. Pass zipcode instead, or contact support to have your store added.
502{"error":"walmart-product plugin failure.","message":"…"}Could not get a valid response for this store or ZIP. Not charged.
502{"error":"walmart-product plugin failure.","message":"more seller options temporarily unavailable"}The seller roster could not be fetched within the attempt budget. Not charged.

On this page