This library is deprecated and no longer supported. To access the latest list of Walmart Open APIs and get onboarding instructions, please visit our new portal: https://walmart.io/
To install the library:
% npm install walmart --save
First include the library:
var walmart = require('walmart')(apiKey);
The apiKey
is the API key that you got from WalmartLabs when you registered.
Once you have the walmart
object you can make these requests.
This is a promise based library, so requests will look like this:
walmart.getItem(10449075).then(function(item) {
console.log(item.product.productAttributes.productName);
});
The then
function is called when the item data is returned.
You can see more examples in examples/simple.js
.
This returns the item information for a specific product based on it's WalmartLabs product ID.
Returns the product by the upcCode, the barcode on a product is the UPC so you should send that directly to the API.
Returns a list of products that match the search term.
Returns our category taxonomy.
Returns recommended products based on the item ID.
Returns customer reviews for the specific WalmartLabs Item ID.
Returns a list of stores by the specified GPS latitude and longitude.
Returns a list of stores by the specified city name.
Returns a list of stores by the specified zip code.
Returns a list of products that match the query
in the specified store
.
Returns an array of items on the specified category.
Returns an array of items of the best-sellers on the specified category.
Returns an array of items of the available pre-orders.
Returns an array of items of the rollbacks on the specified category.
Returns an array of items of the clearance items on the specified category.
Returns an array of items of the special buy items on the specified category.
Returns an array of items of the value of the day items on the specified category.
Returns an array of items of the trending items on the specified category.