javascriptajaxsearchwalmart-api

Find Search URL for Walmart


I am building a search app that queries a couple of big companies including Walmart. As it happens, sending a GET request to "http://www.walmart.ca/search/lego%20avengers" does not work because there is A LOT (and I mean a lot) of JavaScript at work on the client-side. I did some debugging in Chrome, but I just can't find a server response that contains the search result data. It obviously is not materializing by itself so there has to be an AJAX call that is fetching the data in some format.

If anyone can solve this mystery - find the request that returns the data - I will bow down to your superior developer skills! :-)


Solution

  • I would recommend making a call directly to their API.

    https://developer.walmartlabs.com/docs

    It provides items, price, and availability in real time. Much easier than trying to filter through the GET request you receive from entering a search.