API · Walmart
GET /walmart/products/{product_id}/reviews
Walmart reviews of a product, paged, with sort and star filters.
| |
|---|
| Request | GET /v1/walmart/products/{product_id}/reviews |
| Operation id | walmart.reviews.get |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Walmart reviews of a product, paged, with sort and star filters.
| Name | Type | Required | Description |
|---|
product_id | string | yes | Walmart item id (the number in /ip/…/<id>), or a product URL. Example: 5113175776. |
| Name | Type | Required | Description |
|---|
page | integer | no | |
limit | integer | no | At most this many of the page’s 10. |
sort | "relevancy" | "recent" | "rating_high_low" | "rating_low_high" | "oldest" | "most_helpful" | no | relevancy (default), recent, rating_high_low, rating_low_high, oldest, most_helpful. One of relevancy, recent, rating_high_low, rating_low_high, oldest, most_helpful. |
rating | integer | no | |
aspect | string | no | |
verified_only | "true" | "false" | no | One of true, false. |
country | "US" | "CA" | no | US (default) or CA. One of US, CA. |
since | string | no | Only items published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. |
until | string | no | Only items published on or before this date: YYYY-MM-DD (that whole UTC day included) or an ISO 8601 timestamp. |
| Status | Meaning | Schema |
|---|
200 | A page of reviews. | WalmartReviews |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The product or category does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Walmart is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
product_id | string | |
country | string | |
page | number | |
total_pages | number | null | |
total_reviews | number | null | |
average_rating | number | null | |
rating_counts | object | |
aspects | object[] | |
reviews | object[] | |
Errors use one shape everywhere; see Errors for every code and what to do.