# 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/workflows/walmart
- Handle: `@walmart`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://walmart.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Walmart.

## Methods

### Get product

Operation `get_product`, version 1. 1 credit per call.

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 call.

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 call.

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 |  | Current price in USD. |
| `products[].currency` | string |  | Price currency code. |
| `products[].sponsored` | boolean |  | Whether this placement is sponsored. |
| `products[].was_price` | number or null |  | Previous price in USD when reduced, otherwise null. |
| `products[].photo_link` | string or null |  | Product photo link. |
| `products[].seller_name` | string or null |  | Walmart.com or the marketplace seller. |
| `products[].star_rating` | number or null |  | Average star rating, or null if none. |
| `products[].product_link` | string |  | Walmart product page link. |
| `products[].product_name` | string |  | Product name. |
| `products[].review_count` | integer or null |  | Number of reviews, or null if none. |
| `products[].walmart_item_id` | string or null |  | Walmart item ID. |
| `products[].pickup_availability` | string or null |  | Pickup availability, or null when not provided. |
| `products[].delivery_availability` | string or null |  | Delivery or shipping availability, or null when not provided. |

**Example input**

```json
{
  "query": "zzxzzqwertynonexistent9232389388382"
}
```

**Example output**

```json
{
  "products": []
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@walmart","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Walmart?

No. Fous is not affiliated with Walmart. This workflow reads the public walmart.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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

- [Amazon API](https://fous.com/workflows/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Best Buy API](https://fous.com/workflows/best-buy.md): Best Buy returns US electronics and appliance listings, prices, deals, specifications, images, reviews, and nearby store pickup and shipping details; prices and availability can change by location and before checkout.
- [Sephora API](https://fous.com/workflows/sephora.md): Sephora provides US beauty products, shopping information, product details, and customer reviews; prices and availability may change.
- [Flipkart API](https://fous.com/workflows/flipkart.md): Flipkart shows current product listings and prices, with available product details and location-dependent delivery estimates that may be unavailable for some listings or PIN codes.
- [Target API](https://fous.com/workflows/target.md): Target helps shoppers find products, details, photos, ratings, links, current prices, and nearby-store stock and pickup or delivery availability; prices and availability can change by location and time.
- [Instacart API](https://fous.com/workflows/instacart.md): Search grocery products available from nearby stores.
- [Macy's API](https://fous.com/workflows/macys.md): Shop Macy's products and sales.
- [Nordstrom API](https://fous.com/workflows/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
