Core APIs
...
Parameters
Core Requests
Product
3min
product parameters get get /request the product parameters are applicable when making a request with type=product to retrieve details of a single product on walmart the product is specified using either the item id parameter or the url parameter (where the url parameter contains a link to a walmart product page) the parameters should be appended as querystring parameters to the walmart product data api get http request product details are retrieved from the product page https //www walmart com/ip/782866746 for a single product on walmart for example, to request details a product with item id=782866746 in the zipcode 77001 on walmart com the request would be http https //api bluecartapi com/request?api key=demo\&type=product\&item id=782866746\&customer zipcode=77001curl l get https //api bluecartapi com/request \\ d api key="demo" \\ d type="product" \\ d item id="782866746" \\ d customer zipcode="77001"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "product", item id "782866746", customer zipcode "77001" } // make the http get request to bluecart api axios get('https //api bluecartapi com/request', { params }) then(response => { // print the json response from bluecart api console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'type' 'product', 'item id' '782866746', 'customer zipcode' '77001' } \# make the http get request to bluecart api api result = requests get('https //api bluecartapi com/request', params) \# print the json response from bluecart api print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'type' => 'product', 'item id' => '782866746', 'customer zipcode' => '77001' ]); \# make the http get request to bluecart api $ch = curl init(sprintf('%s?%s', 'https //api bluecartapi com/request', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response from bluecart api echo $api result; ?> product parameters the following parameters are available for all requests made when type=product parameter required description walmart domain optional the walmart domain to target the value of the walmart domain parameeter determines which additional parameters are available for example, walmart ca supports only type=search and type= product at this time defaults to walmart com valid values for walmart domain are walmart domain=walmart com target walmart com domain walmart domain=walmart ca target walmart ca domain item id optional the walmart item id to retrieve product details for gtin optional the gtin/isbn/upc code to look up a matching product on walmart for if the gtin parameter is supplied then the item id parameter is ignored gtin based requests work by looking up the gtin/isbn/upc on walmart first, then retrieving the product details for the first matching item id store id walmart com optional to use the store id parameter, you must look up the store you want to target your request note this is optional for com if you include a store id param, it cannot be combined with customer zipcode this does not require any setup store id walmart ca required to use the store id parameter, you must look up the store you want to target your request note store id is required for type=product when walmart domain=walmart ca url optional the walmart product page url to retrieve product details from note if the url parameter is supplied then the item id and gtin parameters are ignored (the url overrides other parameters) include html optional determines whether raw html is included in the response (this can increase the size of the response) can be set to true or false (the default) note when adding requests with include html=true to a collection the maximum number of requests is lower (100) because including the html within the response makes the collection result sets much larger the limit is in place to ensure result set files are of a manageable size if you have need to run a large number of requests all with include html=true then simply split the requests across multiple 100 request collections next steps product results https //docs trajectdata com/bluecartapi/walmart product data api/results/product