> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# Walmart Reviews

Structured Walmart data: send `urls`. Cursor-paginated, 1 credit per successful call.

`GET|POST https://api.scrapier.io/api/v2/walmart-reviews/` · 1 credit per successful call · Cursor-paginated

## Overview

Call `GET /api/v2/walmart-reviews/` with `urls`. The results are in `data.rating_filter`; send `data.next_cursor` back as `cursor` to get the next page. 4 optional parameters refine the call (see Parameters).

## Request

```bash
curl -G "https://api.scrapier.io/api/v2/walmart-reviews/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "urls=https://www.walmart.com/ip/Apple-AirPods-4/11381374703" \
  --max-time 210
```

```python
import requests

resp = requests.get(
    "https://api.scrapier.io/api/v2/walmart-reviews/",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"urls": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703"},
    timeout=210,
)
body = resp.json()
if not resp.ok:
    raise RuntimeError(body.get("error") or body.get("detail"))

print(body["data"]["rating_filter"])
```

POST with a JSON body works too (same parameters; the body is merged over the query string).

## Parameters

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `urls` | string | yes | e.g. `https://www.walmart.com/ip/Apple-AirPods-4/11381374703` | Walmart product URL (/ip/<slug>/<itemId>), reviews URL (/reviews/product/<itemId>), bare item id, or search/browse URL (walks its first `max_products` items). Required on first call; ignored when `cursor` is supplied. |
| `cursor` | string | no | — | Pagination cursor returned in the previous response's `next_cursor`. Pass it back unchanged to fetch the next page. When `next_cursor` is null, you have reached the last page. |
| `reviews_sort_type` | string | no | `relevancy` | Review sort. Locked into the cursor. One of: `relevancy`, `helpful`, `submission-desc`, `submission-asc`, `rating-desc`, `rating-asc`. |
| `rating_filter` | string | no | — | Only reviews with these star ratings, e.g. '5' or '1,2' (default: all). Locked into the cursor. |
| `max_products` | integer | no | `20` | Search/browse URL input only: products walked (max 40). Locked into the cursor. |
| `use_proxy` | boolean | no | `true` | Route the request through Scrapier's residential proxy pool. Default: `true`. Leave as is unless support tells you otherwise. |
| `raw_data` | boolean | no | `false` | When true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under `raw_responses`, in place of the formatted items. When false (default) you get the formatted output. Pagination (`cursor` / `next_cursor`) works the same in both modes. |

## Response

HTTP 200. Results are in `data.rating_filter`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "success": true,
  "data": {
    "urls": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703",
    "item_id": "11381374703",
    "product_name": "Apple AirPods 4",
    "product_url": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703",
    "page": 1,
    "page_size": 10,
    "total_reviews": 6698,
    "total_pages": 670,
    "sort": "submission-desc",
    "rating_filter": [],
    "reviews": [
      {
        "itemType": "Review",
        "review_id": "442409103",
        "product_id": "11381374703",
        "product_name": "Apple AirPods 4",
        "productUrl": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703",
        "product_url": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703",
        "rating": 1,
        "title": null,
        "text": "Battery life terrible",
        "user_nickname": "William",
        "author_id": "5c67c7313560de8f0566514ad1c31b8784f32f05fbfa5b4c3c976f7aa4c4bd2d",
        "user_location": null,
        "submission_time": "9/30/2026",
        "submission_date": "2026-09-30",
        "helpful_votes": 0,
        "unhelpful_votes": 0,
        "verified_purchase": true,
        "badges": [
          "Verified Purchase"
        ],
        "recommended": null,
        "seller_name": "Walmart.com",
        "fulfilled_by": "Walmart",
        "condition": null,
        "features": [
          {
            "name": "Occasion",
            "value": "AirPods 4"
          }
        ],
        "photos": [],
        "client_responses": [],
        "syndication_source": null,
        "external_source": "bazaarvoice",
        "original_language": "English",
        "item_image_url": "https://i5.walmartimages.com/seo/Apple-AirPods-4_970671e7-764d-4536-9f51-666941f35ad3.012d4c1b577966703dc4b6947a77677b.jpeg",
        "product_average_rating": 4.3,
        "product_total_ratings": 84197,
        "product_reviews_with_text": 6698,
        "sort": "submission-desc",
        "rating_filter": [],
        "page": 1,
        "position": 1,
        "input_url": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703",
        "scraped_at": "2026-10-03T03:28:38.338Z"
      }
    ],
    "next_cursor": "eyJpZHMiOlsiMTEzODEzNzQ3MDMiXSwiayI6MCwicCI6MiwiciI6W10sInMiOiJzdWJtaXNzaW9uLWRlc2MiLCJ1IjoiaHR0cHM6Ly93d3cud2FsbWFydC5jb20vaXAvQXBwbGUtQWlyUG9kcy00LzExMzgxMzc0NzAzIiwidiI6MX0"
  }
}
```

## Response fields

| Field | Type | Example | Description |
|---|---|---|---|
| `urls` | string | `https://www.walmart.com/ip/Apple-AirPods-4/11…` |  |
| `item_id` | string | `11381374703` |  |
| `product_name` | string | `Apple AirPods 4` |  |
| `product_url` | string | `https://www.walmart.com/ip/Apple-AirPods-4/11…` |  |
| `page` | integer | `1` |  |
| `page_size` | integer | `10` |  |
| `total_reviews` | integer | `6698` |  |
| `total_pages` | integer | `670` |  |
| `sort` | string | `submission-desc` |  |
| `rating_filter` | array | `[]` | The results. |
| `reviews` | array | `[1 item]` |  |
| `next_cursor` | string | `eyJpZHMiOlsiMTEzODEzNzQ3MDMiXSwiayI6MCwicCI6M…` | Pass back as `cursor` for the next page. `null` on the last page. |

## Pagination

Pass `data.next_cursor` back as `cursor` until it is `null`. Required inputs are ignored once a cursor is sent. Each page is one billed call.

```python
import requests

URL = "https://api.scrapier.io/api/v2/walmart-reviews/"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}
params = {"urls": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703"}
items = []

for _ in range(10):  # each page is one billed call
    resp = requests.get(URL, headers=HEADERS, params=params, timeout=210)
    resp.raise_for_status()
    data = resp.json()["data"]
    items.extend(data.get("rating_filter") or [])
    if not data.get("next_cursor"):  # None = last page
        break
    params = {"cursor": data["next_cursor"]}
```

## Errors

Failed calls are free. Branch on HTTP status; the message is in `error` (or `detail`). See https://docs.scrapier.io/errors.md

- **400** Bad input. The exact message varies by endpoint. `{"success":false,"error":"…"}`
- **402** Balance below the endpoint's price. `{"error":"Insufficient credits. Buy more to scrape more.","balance":1,"required":2}`
- **403** Invalid or unknown API key. `{"detail":"Authentication service unavailable or invalid API key."}`
- **429** Throttled — wait for Retry-After. `{"detail":"Request was throttled. Expected available in N seconds."}`
- **404** unknown slug · **503** busy (retry after `Retry-After`) · **5xx** upstream failure or timeout (retry with backoff).

## Notes

- Nothing special: send the inputs, read the result.

## Related

- [Walmart Category](https://docs.scrapier.io/api-reference/walmart/walmart-category.md): Structured Walmart data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [Walmart Data Extractor](https://docs.scrapier.io/api-reference/walmart/walmart-data-extractor.md): Structured Walmart data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [Walmart Search Scraper](https://docs.scrapier.io/api-reference/walmart/walmart-search-scraper.md): Structured Walmart data: send `queries`. Cursor-paginated, 1 credit per successful call.
