# Walmart Product Reviews API

> Get Walmart product reviews by product ID: overall rating, ratings histogram, top positive and negative reviews, and paginated review text with photos.

Source: https://www.sandbase.ai/apis/walmart/product-reviews
API reference: https://www.sandbase.ai/apis/walmart/product-reviews/docs

## Facts

- Provider: Walmart
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/walmart/product-reviews`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, walmart, ecommerce, product data
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/walmart/product-reviews` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `product_id` | string \| number \| boolean | yes |  |
| `page` | string \| number \| boolean | no |  |
| `sort` | string \| number \| boolean | no |  |
| `rating` | any | no |  |
| `json_restrictor` | string \| number \| boolean | no |  |

## FAQ

### How do I use the Walmart Product Reviews API?

Send a POST request to https://api.sandbase.ai/v1/api/walmart/product-reviews with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Walmart Product Reviews API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Walmart Product Reviews API accept?

Required: product_id (string | number | boolean). Optional: page (string | number | boolean), sort (string | number | boolean), rating (any) and json_restrictor (string | number | boolean). The Parameters table and the Playground on this page list every field.

### What does the Walmart Product Reviews API return?

A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.

### Do I need a Walmart developer account or API key?

No. Walmart Product Reviews runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Walmart API access separately.

## README

### Walmart Product Reviews

Get Walmart product reviews by product ID: overall rating, ratings histogram, top positive and negative reviews, and paginated review text with photos.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "walmart/product-reviews", "product_id": "20349310960"}'
```

This API runs asynchronously. `/v1/run` returns a task `id` with status `pending`; poll `GET https://api.sandbase.ai/v1/run/{id}` until `status` is `completed` and read the result from `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `product_id` | string/number/boolean | Yes | The unique product identifier to get reviews of a specific product. You need to pass the `us_item_id`. It can be found from either Organic Results API or Product API results. |
| `json_restrictor` | string/number/boolean | No | The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
| `page` | string/number/boolean | No | Value is used to get the reviews on a specific page. (e.g., `1` (default) is the first page of results, `2` is the 2nd page of results, `3` is the 3rd page of results, etc.). |
| `rating` | any | No | Filtering reviews by rating. It can be set to: `1`: 1-star, `2`: 2-star, `3`: 3-star, `4`: 4-star, `5`: 5-star. |
| `sort` | string/number/boolean | No | Sorting reviews. It can be set to: `relevancy`, `helpful`, `submission-desc`, `submission-asc`, `rating-desc`, `rating-asc` |

#### Pricing

Flat price per call. Failed calls are not charged.
