Walmart Product API

This endpoint will retrieve Walmart product details.

require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:product_id => "PRODUCT",
}
uri = URI('<https://api.scraperapi.com/structured/walmart/product>')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)

API Parameters

api_keyUser account’s normal API key.

product_id

Walmart Product id. Exmaple: 5253396052

Sample Response

{
  "product_name": "AT&T Samsung Galaxy S24 Ultra Titanium Violet 512GB",
  "product_description": "Do more with the most epic Galaxy yet. Capture every detail of your candlelight meal with impressive Nightography and zoom in to see the live violinist playing across the room.Once you’re back in your hotel, elevate your pics from good to great right on your Galaxy S24 Ultra. You can even use your built in S Pen to add fun doodles before posting. Unleash new ways to create, connect and more with Galaxy S24 Ultra. Epic, just like that.",
  "brand": "SAMSUNG",
  "image": "https://i5.walmartimages.com/seo/AT-T-Samsung-Galaxy-S24-Ultra-Titanium-Violet-512GB_784b47ee-bfb7-4543-af9d-5406c37ffed5.fa51da09222008a396f35c6e245e2e2a.jpeg",
  "offers": [
    {
      "url": "https://www.walmart.com/ip/AT-T-Samsung-Galaxy-S24-Ultra-Titanium-Violet-512GB/5253396052",
      "availability": "InStock",
      "available_delivery_method": "OnSitePickup",
      "item_condition": "NewCondition"
    }
  ]
}

Last updated