List Walmart cart items
Automatically list Walmart cart items on walmart.com. List the items in your Walmart.com cart: for each line its item id, name, quantity, unit price, line total, seller and availability, plus the cart's item count and subtotal, and whether the cart belongs to a signed-in account or to this browser's guest cart. An empty cart returns an empty list. Saved-for-later items are not included. Walmart sometimes refuses automated visits with its "Robot or human?" check; the run then fails saying so, and it usually clears after a pause.
Input
None
Output
lines requiredsubtotal optionalCart subtotal as Walmart displays it, e.g. $7.94; null for an empty cart.
signed_in optionalTrue for a signed-in account's cart, false for this browser's guest cart.
cart_count optionalTotal quantity across the cart's lines.
FAQ
Search Walmart products
Search Walmart.com by free-text query and return one page of results. Returns query, page, sort, url, total_count, max_page, corrected_query, items and related_items (each item: us_item_id, name, url, price, was_price, unit_price, rating, review_count, image_url, seller_name, availability, badges, sponsored). Items holds the query's actual matches; when a query matches little or nothing Walmart fills the page with an "other options to consider" block, and those products are returned separately as related_items so they are never mistaken for results. A query that matches nothing comes back with empty items and a populated related_items. Sort by best_match, price_low, price_high, best_seller, rating_high or new. Prices and availability follow the store Walmart assigns to the browser's location. Walmart can refuse many searches sent close together: pace fan-outs, and retry later when it does.
Get Walmart product reviews
Fetch one page of customer reviews (10 per page) for a Walmart.com item id, anonymously. Sort by relevancy, helpful, submission-desc, submission-asc, rating-desc or rating-asc; optionally restrict to verified purchases. Returns product (us_item_id, name), summary (average_rating, total_ratings, reviews_with_text, recommended_percentage, rating_breakdown), the page, sort, filtered_count and reviews (id, rating, title, text, date, author, verified_purchase, recommended, helpful_votes, unhelpful_votes, variant). Only reviews with text are listed; ratings without text count in the summary only.
Get Walmart product
Fetch one Walmart.com item page by its item id (the number in /ip/.../<id>). Returns us_item_id, product_id, url, name, brand, model, upc, price, was_price, currency, availability, seller, rating, review_count, rating_breakdown, category path, images, short/long description (HTML), specifications, variants (with each option's item id), return_policy and badges. The requested id can resolve to a different displayed variant; both ids are returned. Price and availability follow the store Walmart assigns to the browser's location.
