Walmart Product API

/search?engine=walmart_product API endpoint allows you to scrape the results from the Walmart product pages via our SerpApi service. Head to the playground for a live and interactive demo.

Search Query

product_id

Required

Parameter defines the product to get results for. Normally found from shopping results for supported products (e.g., https://www.walmart.com/ip/{product_id}). You can pass upc, product_id and us_item_id. Better to use us_item_id. Response for product_id returns faster because of lack of redirects on Walmart.com

Advanced Filters

store_id

Optional

Store ID to filter the products by the spicific store only. Head to the Walmart Stores Locations for a full list of supported stores.

It's possible for the product pricing to differ between stores.

Serpapi Parameters

engine

Required

Set parameter to walmart_product to use the Walmart Product API engine.

device

Optional

Parameter defines the device to use to get the results. It can be set to desktop (default) to use a regular browser, tablet to use a tablet browser (currently using iPads), or mobile to use a mobile browser (currently using iPhones).

no_cache

Optional

Parameter will force SerpApi to fetch the Walmart Product results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the final output you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.

API Results

JSON Results

JSON output includes structured data for product result and reviews results.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML Results

HTML output is useful to debug JSON results or support features not supported yet by SerpApi.
HTML output gives you the raw HTML results from Walmart.

Example results for  product_id: 147423982

Example results for  product_id: 147423982

JSON Example

{
  "search_metadata": {
    "id": "618a35e333b2364e4594a417",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/43a0f0e308c85d1c/618a35e333b2364e4594a417.json",
    "created_at": "2021-11-09 08:48:35 UTC",
    "processed_at": "2021-11-09 08:48:35 UTC",
    "walmart_product_url": "https://www.walmart.com/ip/147423982?selected=true",
    "raw_html_file": "https://serpapi.com/searches/43a0f0e308c85d1c/618a35e333b2364e4594a417.html",
    "total_time_taken": 2.39
  },
  "search_parameters": {
    "product_id": "147423982",
    "engine": "walmart_product",
    "device": "desktop"
  },
  "search_information":
  {
    "location": {
      "postal_code": "95829",
      "province_code": "CA",
      "city": "Sacramento",
      "store_id": "3081"
    }
  },
  "product_result": {
    "us_item_id": "147423982",
    "product_id": "34Y0BVR8X5ZD",
    "upc": "696777889575",
    "title": "Men's Henley 3-Button Pullover Cotton T-Shirt Long Sleeve Crew Neck",
    "short_description_html": "Men's Long Sleeve Henley 3 Button Pullover Cotton T-Shirt Crew Neck",
    "detailed_description_html": "<ul>  <li>Long Sleeves</li>  <li>Lightweight</li>  <li>100% Cotton</li> </ul>",
    "categories": [
      {
        "name": "Clothing",
        "url": "https://www.walmart.com/cp/5438"
      },
      {
        "name": "Mens Clothing",
        "url": "https://www.walmart.com/cp/133197"
      },
      {
        "name": "Mens T-Shirts & Tank Tops",
        "url": "https://www.walmart.com/cp/4237948"
      },
      {
        "name": "Mens T-Shirts",
        "url": "https://www.walmart.com/cp/3187021"
      }
    ],
    "seller_id": "B450DDF0F0E543BCA24F386B6CA384D1",
    "seller_name": "Blended",
    "specification_highlights": [
      {
        "key": "Clothing Size",
        "value": "M",
        "display_name": "Clothing Size"
      },
      {
        "key": "Sleeve Length Style",
        "value": "Long Sleeve",
        "display_name": "Sleeve Length Style"
      },
      {
        "key": "Fabric Content",
        "value": "100% Cotton",
        "display_name": "Fabric Content"
      },
      {
        "key": "Pattern",
        "value": "Solid Print",
        "display_name": "Pattern"
      },
      {
        "key": "Gender",
        "value": "Male",
        "display_name": "Gender"
      },
      {
        "key": "Clothing Neck Style",
        "value": "Crew Neck",
        "display_name": "Clothing Neck Style"
      },
      {
        "key": "Brand",
        "value": "Blended",
        "display_name": "Brand"
      },
      {
        "key": "Color",
        "value": "Navy",
        "display_name": "Color"
      }
    ],
    "product_type_id": "891",
    "product_type": "T-Shirts",
    "manufacturer": "Blended",
    "product_page_url": "https://www.walmart.com/ip/Men-s-Henley-3-Button-Pullover-Cotton-T-Shirt-Long-Sleeve-Crew-Neck/147423982",
    "price_map": {
      "price": 15.98,
      "was_price": {
        "price": 19.99,
        "priceString": "$19.99",
        "variantPriceString": null,
        "priceType": "BASE",
        "currencyUnit": "USD"
      },
      "currency": "USD"
    },
    "min_quantity": 1,
    "max_quantity": 12,
    "in_stock": true,
    "images": [
      "https://i5.walmartimages.com/asr/caee8569-17c4-477d-b993-74f6e8f1ca03.a24edd08ad59ce67f44712dd2d6b5a99.jpeg",
      "https://i5.walmartimages.com/asr/0f601fd9-4c3d-4681-9943-796f8c9dddcd.d3a7e13b15009e778a760ff31ad24d15.jpeg"
    ],
    "reviews": 27,
    "rating": 4.0741,
    "offer_id": "90623A01F87340ED9C0B789ABC968ABD",
    "offer_type": "ONLINE_ONLY",
    "offers": [
      {
        "seller_id": "B450DDF0F0E543BCA24F386B6CA384D1",
        "catalog_seller_id": 4085,
        "seller_name": "Valley Holdings LLC",
        "seller_display_name": "Blended",
        "price": 15.98
      }
    ],
    "shipping_price": 0,
    "delivery_option": {
      "ship_method": "THREE_TO_FIVE_DAY",
      "arrival_date": 1637006400000,
      "display_arrival_date": "2021-11-15T20:00:00.000Z"
    },
    "shipping_options": [
      {
        "ship_method": "DELIVERY_ADDRESS"
      }
    ],
    "variant_swatches": [
      {
        "name": "Color",
        "available_selections": [
          {
            "name": "Black",
            "swatch_image_url": "https://i5.walmartimages.com/asr/1730435d-26c1-47a8-a2f8-8485f9ab56c1.63e6f101d555f1e93f97c1b56c3a2f7f.jpeg"
          },
          {
            "name": "Heather Grey",
            "swatch_image_url": "https://i5.walmartimages.com/asr/3778bc98-ee70-4e46-921b-684e038a73a0.7720046b551329febc2ff7237f38ff47.jpeg"
          },
          {
            "name": "Navy",
            "swatch_image_url": "https://i5.walmartimages.com/asr/caee8569-17c4-477d-b993-74f6e8f1ca03.a24edd08ad59ce67f44712dd2d6b5a99.jpeg"
          },
          {
            "name": "White",
            "swatch_image_url": "https://i5.walmartimages.com/asr/6d4192a1-c9cc-4c48-8eae-9e850d89df1d.7568b48b20bee7e61ff8f5f8ea6e4cc2.jpeg"
          }
        ]
      },
      {
        "name": "Clothing Size",
        "available_selections": [
          {
            "name": "S"
          },
          {
            "name": "M"
          },
          {
            "name": "L"
          },
          {
            "name": "XL"
          },
          {
            "name": "2X"
          }
        ]
      }
    ]
  },
  "reviews_results": {
    "ratings": [
      {
        "stars": 1,
        "count": 3
      },
      {
        "stars": 2,
        "count": 2
      },
      {
        "stars": 3,
        "count": 1
      },
      {
        "stars": 4,
        "count": 5
      },
      {
        "stars": 5,
        "count": 16
      }
    ],
    "reviews": {
      "rating": 4.1,
      "count": 27,
      "top_positive": {
        "title": "Runs small",
        "text": "For those considering this Henley shirt, I would suggest sizing up one size. Fortunately, I had ordered one larger size than I usually order, and upon trying the shirt on, I was glad that I had done so. This shirt runs one size small. Apart from that, it is a nice shirt, though it is lightweight.",
        "rating": 4,
        "positive_feedback": 0,
        "negative_feedback": 0,
        "review_submission_time": "9/28/2020"
      },
      "top_negative": {
        "title": "DON'T EVEN THINK ABOUT IT!!!! RUN AWAY QUICK!!!!",
        "text": "BUYER BEWARE THIS IS A SUBSTANDARD SHIRT!!!! RUNS WAY TO SMALL, THE QUALITY IS CRAP, AND YOU CAN SEE THRU THE MATERIAL.  THE SLEEVE CUFFS ARE ALMOST AS BIG IN DIAMETER AS THE NECK. RUN AWAY FROM THIS SELLER.",
        "rating": 1,
        "positive_feedback": 0,
        "negative_feedback": 0,
        "review_submission_time": "12/14/2020"
      },
      "customer_reviews": [
        {
          "title": "Best shirt on the market: its 100 percent cotton a",
          "text": "The only shirt design that has a low enough neck! Everyone wants to choke me to death with their crew necks!",
          "rating": 5,
          "review_submission_time": "10/14/2020",
          "user_nickname": "mraccess",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "title": "Quality",
          "text": "Great price for a quality Henley. Happy customer",
          "rating": 5,
          "review_submission_time": "11/17/2020",
          "user_nickname": "Nahum",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "text": "Christmas gift and the young man loved it.",
          "rating": 5,
          "review_submission_time": "4/9/2020",
          "user_nickname": "Ma4Grandma10",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "title": "Runs small",
          "text": "For those considering this Henley shirt, I would suggest sizing up one size. Fortunately, I had ordered one larger size than I usually order, and upon trying the shirt on, I was glad that I had done so. This shirt runs one size small. Apart from that, it is a nice shirt, though it is lightweight.",
          "rating": 4,
          "review_submission_time": "9/28/2020",
          "user_nickname": "charis4u",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "title": "cool t-shirt",
          "text": "very comfortable and looks great  I would recommend this product to anyone that likes t-shirts.",
          "rating": 4,
          "review_submission_time": "12/24/2020",
          "user_nickname": "Michael",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "text": "I like the cotton fabric and design just what I was looking for to wear around the house. Bought a medium like I always do. It's a snugger fit than I expected and I'm slender. Still comfortable  but be careful about the size you buy",
          "rating": 4,
          "review_submission_time": "5/2/2020",
          "user_nickname": "Roger",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "title": "Very nice shirt",
          "text": "My son loved this Henley shirt.  Very nice looking and of good quality. Satisfied customer.",
          "rating": 4,
          "review_submission_time": "12/30/2019",
          "user_nickname": "50sShopper"
        },
        {
          "text": "pretty light weight.  too loose around the neck",
          "rating": 3,
          "review_submission_time": "1/11/2021",
          "user_nickname": "M",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "title": "DON'T EVEN THINK ABOUT IT!!!! RUN AWAY QUICK!!!!",
          "text": "BUYER BEWARE THIS IS A SUBSTANDARD SHIRT!!!! RUNS WAY TO SMALL, THE QUALITY IS CRAP, AND YOU CAN SEE THRU THE MATERIAL.  THE SLEEVE CUFFS ARE ALMOST AS BIG IN DIAMETER AS THE NECK. RUN AWAY FROM THIS SELLER.",
          "rating": 1,
          "review_submission_time": "12/14/2020",
          "user_nickname": "Kirk",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        },
        {
          "rating": 5,
          "review_submission_time": "3/7/2021",
          "user_nickname": "Alomgir",
          "customer_type": [
            "VerifiedPurchaser"
          ]
        }
      ]
    }
  }
}