Walmart Product API

This endpoint will retrieve Walmart product details.

try {
String apiKey = "APIKEY";
String product_id = "PRODUCT";
String url = "<>" + apiKey + "&product_id=" + product;
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
} else {
throw new Exception("Error in API Call");
} catch (Exception ex) {

API Parameters

api_keyUser account’s normal API key.


Walmart Product id. Exmaple: 5253396052

Sample Response

  "product_name": "AT&T Samsung Galaxy S24 Ultra Titanium Violet 512GB",
  "product_description": "Do more with the most epic Galaxy yet. Capture every detail of your candlelight meal with impressive Nightography and zoom in to see the live violinist playing across the room.Once you’re back in your hotel, elevate your pics from good to great right on your Galaxy S24 Ultra. You can even use your built in S Pen to add fun doodles before posting. Unleash new ways to create, connect and more with Galaxy S24 Ultra. Epic, just like that.",
  "brand": "SAMSUNG",
  "image": "",
  "offers": [
      "url": "",
      "availability": "InStock",
      "available_delivery_method": "OnSitePickup",
      "item_condition": "NewCondition"

Last updated