Walmart
Walmart Product API
Get full detail for a single Walmart product as JSON - price and strikethrough price, rating and rating count, image gallery, specifications, variants, brand and model, category path, availability, fulfillment and the marketplace seller behind the listing. Pass store_id and delivery_zip for a specific store's price and availability on walmart.com or walmart.ca. Costs 1 credit, or 2 when store-targeted.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonproduct_idstringrequiredWalmart item id (usItemId) - the numeric id in a /ip/ product URL, and the id field returned by search, category and seller-products.
Example: 17760865787
store_idstringWalmart store to price and stock the product against, from the Walmart Stores endpoint on the same domain. Must be sent together with delivery_zip. Store-targeted requests cost 2 credits and take 10-60 seconds. The store used is echoed in data.location. Returns 404 if that store does not carry the item.
Example: 1389
delivery_zipstringShopper's postal code: a 5-digit US ZIP, or a Canadian postal code such as M5V 2T6 with domain ca. Required together with store_id.
Example: 50036
domainenum<string>default:comMarketplace. ca is accepted only together with store_id and delivery_zip; com.mx is not supported on this endpoint.
com— walmart.com (US).ca— walmart.ca (Canada). Requires store_id and delivery_zip.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
product = client.walmart.product("17760865787")
print(product)
# Price and availability at one store (store_id from client.walmart.stores("50036"))
at_store = client.walmart.product("10450114", delivery_zip="50036", store_id="1389")
print(at_store["data"]["price"], at_store["data"]["location"])Response