# Walmart API

> Walmart returns product listings, prices, availability, and customer reviews as a workflow and API.

Search products uses required search words and optional filters to return listings, prices, ratings, sellers, and availability. Get product returns details, price, and availability using a product name or Walmart product link; availability uses Walmart’s default location. Get product reviews returns ratings and customer reviews using a product name, product link, or item number, with optional page and sort inputs.

- Page: https://fous.com/tools/walmart
- Handle: `@walmart`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://walmart.com
- Last verified: Sep 29, 2026

## Methods

### Get product

Operation `get_product`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Get details, price and availability for a Walmart product by name or product link. Availability uses Walmart’s default location; ZIP-specific availability is not available.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `product` | string | yes | `"https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846"` | Product name or Walmart product link, for example Apple AirPods 4 or https://www.walmart.com/ip/Apple-AirPods-4/11381374703. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "product"
  ],
  "properties": {
    "product": {
      "type": "string",
      "description": "Product name or Walmart product link, for example Apple AirPods 4 or https://www.walmart.com/ip/Apple-AirPods-4/11381374703.",
      "examples": [
        "https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846",
        "Apple AirPods 4"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "product": "https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846"
    },
    {
      "product": "Apple AirPods 4"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `upc` | string or null | `"045496885816"` |  |
| `brand` | string or null | `"Nintendo"` |  |
| `price` | number or null | `499` | Current price in USD. |
| `currency` | string | `"USD"` |  |
| `in_stock` | boolean or null | `true` |  |
| `was_price` | number or null | `129.99` | Previous price in USD, if shown. |
| `description` | string or null |  |  |
| `image_links` | array |  |  |
| `seller_name` | string or null | `"Walmart.com"` |  |
| `star_rating` | number or null | `4.6` |  |
| `pickup_today` | boolean or null | `false` |  |
| `product_link` | string | `"https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846"` |  |
| `product_name` | string or null | `"Nintendo Switch™ 2 System"` |  |
| `specifications` | array |  |  |
| `specifications[].name` | string | `"Data storage"` |  |
| `specifications[].value` | string | `"256 GB"` |  |
| `walmart_item_id` | string or null | `"15949610846"` |  |
| `delivery_estimate` | string or null | `"Today"` |  |
| `number_of_reviews` | integer or null | `11460` |  |

**Example input**

```json
{
  "product": "https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846"
}
```

**Example output**

```json
{
  "upc": "045496885816",
  "brand": "Nintendo",
  "price": 499,
  "currency": "USD",
  "in_stock": true,
  "was_price": null,
  "description": "The next evolution of Nintendo Switch One system, three play modes: TV, Tabletop, and Handheld Larger, vivid, 7.9” LCD touch screen with support for HDR and up to 120 fps Dock that supports 4K when co…",
  "image_links": [
    "https://i5.walmartimages.com/seo/Nintendo-Switch-2-System_e54b513c-cf10-44a5-8a78-14a5f70644a8.dca71e01a5172a18dbc2bc689f959469.jpeg",
    "https://i5.walmartimages.com/asr/15c1e17b-f57e-4a63-9d32-769a686891da.bda7cbc61f389fe9de7380ca392a4ba3.jpeg",
    "https://i5.walmartimages.com/asr/39263982-5fc0-407e-987a-d6aa8d02c403.fe8d27dfcd61d328b3ca406bed7d9417.jpeg"
  ],
  "seller_name": "Walmart.com",
  "star_rating": 4.6,
  "pickup_today": false,
  "product_link": "https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846",
  "product_name": "Nintendo Switch™ 2 System",
  "specifications": [
    {
      "name": "Data storage",
      "value": "256 GB"
    },
    {
      "name": "Edition",
      "value": "Switch 2"
    },
    {
      "name": "Frame rate",
      "value": "60 FPS"
    }
  ],
  "walmart_item_id": "15949610846",
  "delivery_estimate": "Today",
  "number_of_reviews": 11460
}
```

### Get product reviews

Operation `get_product_reviews`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Get a Walmart product’s rating summary and customer reviews from its name or link. Returns up to 100 reviews starting at the selected review page; each page has 10 reviews.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `page` | integer | no | `2` | First Walmart review page to read (10 reviews per page), for example 2. |
| `sort` | string | no | `"most_helpful"` | Review order, for example most_recent. |
| `product` | string | yes | `"https://www.walmart.com/ip/LEGO-Classic-Large-Creative-Brick-Box/40996357"` | The Walmart product name, product link, or item number, for example LEGO Classic Large Creative Brick Box. |
| `max_results` | integer | no | `12` | Maximum reviews to return, for example 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "product"
  ],
  "properties": {
    "page": {
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "description": "First Walmart review page to read (10 reviews per page), for example 2.",
      "x-fous-developer": true,
      "examples": [
        2
      ]
    },
    "sort": {
      "enum": [
        "most_relevant",
        "most_recent",
        "most_helpful",
        "lowest_rating",
        "highest_rating"
      ],
      "type": "string",
      "default": "most_relevant",
      "description": "Review order, for example most_recent.",
      "examples": [
        "most_helpful",
        "most_recent"
      ]
    },
    "product": {
      "type": "string",
      "minLength": 1,
      "description": "The Walmart product name, product link, or item number, for example LEGO Classic Large Creative Brick Box.",
      "examples": [
        "https://www.walmart.com/ip/LEGO-Classic-Large-Creative-Brick-Box/40996357",
        "LEGO Classic Large Creative Brick Box",
        "https://www.walmart.com/ip/19401721684"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum reviews to return, for example 20.",
      "x-fous-developer": true,
      "examples": [
        12,
        20
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "sort": "most_helpful",
      "product": "https://www.walmart.com/ip/LEGO-Classic-Large-Creative-Brick-Box/40996357",
      "max_results": 12
    },
    {
      "page": 2,
      "sort": "most_recent",
      "product": "LEGO Classic Large Creative Brick Box",
      "max_results": 20
    },
    {
      "product": "https://www.walmart.com/ip/19401721684"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `reviews` | array |  | Reviews in the selected order, starting at the requested page. |
| `reviews[].date` | string or null | `"2015-02-24"` | Date the review was posted. |
| `reviews[].text` | string or null | `"Purchased for my grandson who is six years old, he has many lego theme models and sets. I wanted him to enjoy using his` | Customer review text. |
| `reviews[].stars` | integer or null | `5` | Review star rating. |
| `reviews[].title` | string or null | `"good starter set"` | Review title. |
| `reviews[].review_link` | string | `"https://www.walmart.com/reviews/product/40996357?sort=helpful&page=1"` | Walmart review page containing this review. |
| `reviews[].helpful_votes` | integer or null | `120` | Number of positive helpful votes. |
| `reviews[].reviewer_name` | string or null | `"teddysbazaar"` | Reviewer display name. |
| `reviews[].verified_purchase` | boolean | `false` | Whether Walmart marks the review as a verified purchase. |
| `product_link` | string | `"https://www.walmart.com/ip/LEGO-Classic-Large-Creative-Brick-Box/40996357"` | Walmart product page. |
| `product_name` | string | `"LEGO Classic Large Creative Brick Box 10698 Play and Be Inspired by LEGO Masters, Toy Storage Solution for Home or Clas` | Walmart product name. |
| `reviews_per_star` | object |  | Number of ratings at each star level. |
| `reviews_per_star.1` | integer | `123` | Number of 1-star ratings. |
| `reviews_per_star.2` | integer | `35` | Number of 2-star ratings. |
| `reviews_per_star.3` | integer | `71` | Number of 3-star ratings. |
| `reviews_per_star.4` | integer | `201` | Number of 4-star ratings. |
| `reviews_per_star.5` | integer | `2646` | Number of 5-star ratings. |
| `number_of_reviews` | integer | `703` | Count of written customer reviews, distinct from all star ratings. |
| `overall_star_rating` | number or null | `4.7` | Average star rating across all ratings. |

**Example input**

```json
{
  "sort": "most_helpful",
  "product": "https://www.walmart.com/ip/LEGO-Classic-Large-Creative-Brick-Box/40996357",
  "max_results": 12
}
```

**Example output**

```json
{
  "reviews": [
    {
      "date": "2015-02-24",
      "text": "Purchased for my grandson who is six years old, he has many lego theme models and sets. I wanted him to enjoy using his imagination in creating his own ideas and looked at the various options of class…",
      "stars": 5,
      "title": "good starter set",
      "review_link": "https://www.walmart.com/reviews/product/40996357?sort=helpful&page=1",
      "helpful_votes": 120,
      "reviewer_name": "teddysbazaar",
      "verified_purchase": false
    },
    {
      "date": "2016-04-19",
      "text": "My dad and I have been looking for something like this so I can just build freely without having to take apart my sets for parts. We will definitely be getting this when we can. It will also be helpfu…",
      "stars": 5,
      "title": null,
      "review_link": "https://www.walmart.com/reviews/product/40996357?sort=helpful&page=1",
      "helpful_votes": 74,
      "reviewer_name": "ManMan02",
      "verified_purchase": false
    },
    {
      "date": "2015-07-30",
      "text": "I always love the idea of having a set where you can just have pieces to build whatever you want with, so i would say that this is a great product. It's kind of like a pick a brick wall in a bucket ex…",
      "stars": 5,
      "title": "worth it",
      "review_link": "https://www.walmart.com/reviews/product/40996357?sort=helpful&page=1",
      "helpful_votes": 65,
      "reviewer_name": "switcher",
      "verified_purchase": false
    }
  ],
  "product_link": "https://www.walmart.com/ip/LEGO-Classic-Large-Creative-Brick-Box/40996357",
  "product_name": "LEGO Classic Large Creative Brick Box 10698 Play and Be Inspired by LEGO Masters, Toy Storage Solution for Home or Classrooms, Interactive Building Toy for Kids, Boys, and Girls",
  "reviews_per_star": {
    "1": 123,
    "2": 35,
    "3": 71,
    "4": 201,
    "5": 2646
  },
  "number_of_reviews": 703,
  "overall_star_rating": 4.7
}
```

### Search products

Operation `search_products`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Search Walmart products with prices, ratings, sellers and availability in Walmart order. Local ZIP-based pricing and availability are not supported; results use Walmart’s default location.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `page` | integer | no | `2` | Results page, for example 2. |
| `sort` | string | no | `"price_low_to_high"` | Sort results, for example price_low_to_high. |
| `query` | string | yes | `"TV stand"` | Product search words, for example TV stand. |
| `max_price` | number | no | `100` | Maximum price in USD, for example 200. |
| `min_price` | number | no |  | Minimum price in USD, for example 50. |
| `max_results` | integer | no | `25` | Maximum products returned, for example 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "page": {
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "description": "Results page, for example 2.",
      "x-fous-developer": true,
      "examples": [
        2
      ]
    },
    "sort": {
      "enum": [
        "best_match",
        "price_low_to_high",
        "price_high_to_low",
        "best_seller",
        "top_rated"
      ],
      "type": "string",
      "default": "best_match",
      "description": "Sort results, for example price_low_to_high.",
      "examples": [
        "price_low_to_high"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Product search words, for example TV stand.",
      "examples": [
        "TV stand",
        "coffee maker",
        "zzxzzqwertynonexistent9232389388382"
      ]
    },
    "max_price": {
      "type": "number",
      "minimum": 0,
      "description": "Maximum price in USD, for example 200.",
      "examples": [
        100
      ]
    },
    "min_price": {
      "type": "number",
      "minimum": 0,
      "description": "Minimum price in USD, for example 50."
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 60,
      "minimum": 1,
      "description": "Maximum products returned, for example 20.",
      "x-fous-developer": true,
      "examples": [
        25
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "TV stand"
    },
    {
      "page": 2,
      "sort": "price_low_to_high",
      "query": "coffee maker",
      "max_price": 100,
      "max_results": 25
    },
    {
      "query": "zzxzzqwertynonexistent9232389388382"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `products` | array |  |  |
| `products[].price` | number or null | `198` | Current price in USD. |
| `products[].currency` | string | `"USD"` | Price currency code. |
| `products[].sponsored` | boolean | `true` | Whether this placement is sponsored. |
| `products[].was_price` | number or null | `399.99` | Previous price in USD when reduced, otherwise null. |
| `products[].photo_link` | string or null | `"https://i5.walmartimages.com/seo/Better-Homes-Gardens-Ezra-TV-Stand-for-TV-s-up-to-70-Warm-Walnut-finish_530b2937-020d-` | Product photo link. |
| `products[].seller_name` | string or null | `"Walmart.com"` | Walmart.com or the marketplace seller. |
| `products[].star_rating` | number or null | `4.2` | Average star rating, or null if none. |
| `products[].product_link` | string | `"https://www.walmart.com/ip/Better-Homes-Gardens-Ezra-TV-Stand-for-TV-s-up-to-70-Warm-Walnut-finish/5739901002?classType` | Walmart product page link. |
| `products[].product_name` | string | `"Better Homes & Gardens Ezra TV Stand for TV's up to 70\", Warm Walnut finish"` | Product name. |
| `products[].review_count` | integer or null | `1434` | Number of reviews, or null if none. |
| `products[].walmart_item_id` | string or null | `"5739901002"` | Walmart item ID. |
| `products[].pickup_availability` | string or null |  | Pickup availability, or null when not provided. |
| `products[].delivery_availability` | string or null | `"Delivery by 2026-09-29"` | Delivery or shipping availability, or null when not provided. |

**Example input**

```json
{
  "query": "TV stand"
}
```

**Example output**

```json
{
  "products": [
    {
      "price": 198,
      "currency": "USD",
      "sponsored": true,
      "was_price": null,
      "photo_link": "https://i5.walmartimages.com/seo/Better-Homes-Gardens-Ezra-TV-Stand-for-TV-s-up-to-70-Warm-Walnut-finish_530b2937-020d-4a6d-ac34-5d8a916106a5.38317d39e8d71616451aa7b3af89acd3.jpeg?odnHeight=180&odnWid…",
      "seller_name": "Walmart.com",
      "star_rating": 4.2,
      "product_link": "https://www.walmart.com/ip/Better-Homes-Gardens-Ezra-TV-Stand-for-TV-s-up-to-70-Warm-Walnut-finish/5739901002?classType=VARIANT",
      "product_name": "Better Homes & Gardens Ezra TV Stand for TV's up to 70\", Warm Walnut finish",
      "review_count": 1434,
      "walmart_item_id": "5739901002",
      "pickup_availability": null,
      "delivery_availability": "Delivery by 2026-09-29"
    },
    {
      "price": 189.99,
      "currency": "USD",
      "sponsored": true,
      "was_price": 399.99,
      "photo_link": "https://i5.walmartimages.com/seo/SinCiDo-Modern-TV-Stand-for-TVs-up-to-65-Wood-Entertainment-Center-w-Adjustable-Shelves-61-75-W-Media-Console-Cabinet-for-Living-Room_b1ef8aca-08ca-4cf9-a53d-26b787a0e…",
      "seller_name": "Aitjunz Furniture",
      "star_rating": 4.8,
      "product_link": "https://www.walmart.com/ip/SinCiDo-Modern-TV-Stand-for-TVs-up-to-65-Wood-Entertainment-Center-w-Adjustable-Shelves-61-75-W-Media-Console-Cabinet-for-Living-Room/19424968799?classType=VARIANT",
      "product_name": "Aitjunz Modern TV Stand for TVs up to 65\", Wood Entertainment Center w/Adjustable Shelves, 61.75‬\"W Media Console Cabinet for Living Room",
      "review_count": 298,
      "walmart_item_id": "19424968799",
      "pickup_availability": null,
      "delivery_availability": "Delivery by 2026-10-05"
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@walmart",
  "visibility": "public",
  "operation": "get_product",
  "version": 1,
  "input": {
    "product": "https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@walmart\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_product\",\n  \"version\": 1,\n  \"input\": {\n    \"product\": \"https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@walmart",
  "visibility": "public",
  "operation": "get_product",
  "version": 1,
  "input": {
    "product": "https://www.walmart.com/ip/Nintendo-Switch-2-System/15949610846"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/walmart`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_product`: Get product. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `get_product_reviews`: Get product reviews. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_products`: Search products. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-walmart https://api.fous.com/mcp/tools/walmart --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare product prices and ratings across search results
- Check product details and availability
- Track customer feedback and review ratings
- Find marketplace sellers for products
- Review customer comments by date or rating

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Walmart tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Walmart account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from walmart.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What is the current price of a Walmart product?

Get product returns the current price using a product name or Walmart product link.

### Is a product available for pickup or delivery?

Get product returns availability using Walmart’s default location.

### What are customers saying about a Walmart product?

Get product reviews returns customer review text, ratings, and rating totals for a product.

## Related

- [All Commerce tools](https://fous.com/tools/category/commerce)
