# Get product reviews (v1)

Returns 10 reviews per `page` for `product_id`, sorted by `sort` and optionally filtered to one `rating`, plus the product's star breakdown, review topics and Walmart's topic summaries. An unknown `product_id` returns `data: null`.

- Platform: Walmart
- Request: `GET https://api.toolzerhub.com/v1/walmart/product/reviews`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/walmart/product/get-walmart-product-reviews

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `product_id` | query | yes | string | Walmart item id: the number at the end of a product URL, or usItemId from search. |
| `page` | query | no | integer | Page of 10 reviews; total_pages says how many there are. Default: 1. |
| `sort` | query | no | enum: relevancy, helpful, submission-desc, submission-asc, rating-desc, rating-asc | relevancy (Walmart's default), helpful, submission-desc (newest), submission-asc, rating-desc or rating-asc. Default: relevancy. |
| `rating` | query | no | integer | Only reviews with this many stars. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/walmart/product/reviews?product_id=<product_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
