Walmart reviews API
Walmart reviews, ten a page, with Walmart’s sort, star and aspect filters, star counts and aspects.
GET /v1/walmart/products/{product_id}/reviewsBeta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/walmart/products/5113175776/reviews?sort=recent",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "product_id": "5113175776", "country": "US", "page": 1, "total_pages": 430, "total_reviews": 20817, "average_rating": 4.3, "rating_counts": { "1": 1907, "2": 561, "3": 990, "4": 2147, "5": 15212 }, "aspects": [ { "id": "48", "name": "Value For Money", "score": null, "snippetCount": 762 }, { "id": "658", "name": "Screen", "score": null, "snippetCount": 298 }, "… 20 more" ], "reviews": [ { "reviewId": "450991475", "rating": 5, "authorId": "8ef2765f815d44d41a6cb5d029a9a864c295d5bd2ce5565a328cb8728965fa8cbff27bf9e6de41a1131d47cf01a241ae", "badges": [ { "badgeType": "Custom", "contentType": "REVIEW", "id": "VerifiedPurchaser", "glassBadge": { "id": "VerifiedPurchaser", "text": "Verified Purchase" } } ], "userBadges": [], "conditionGroupCode": null, "condition": null, "userLocation": null, "negativeFeedback": 0, "positiveFeedback": 0, "recommended": null, "reviewReferenceId": "16cc1b11-cd28-51c3-9556-7f81c5cd355a", "originalLanguage": "English", "originalLocale": "en_US", "translatedLanguage": "English", "translatedLocale": "en", "showTranslationCTA": false, "reviewSubmissionTime": "11/22/2026", "reviewText": "2nd chrome book I have bought", "reviewTitle": null, "reviewAspects": [], "reviewAspectStart": null, "reviewAspectEnd": null, "reviewSentimentStart": null, "…": "18 more fields" }, { "reviewId": "450969088", "rating": 1, "authorId": "098d1ec75fc9b687a38afcd77f24ef2a808a4e2587ea825f0504f31134f73f85bff27bf9e6de41a1131d47cf01a241ae", "badges": [ { "badgeType": "Custom", "contentType": "REVIEW", "id": "VerifiedPurchaser", "glassBadge": { "id": "VerifiedPurchaser", "text": "Verified Purchase" } } ], "userBadges": [ { "badgeId": "REVIEW_COUNT", "badgeValue": "250" } ], "conditionGroupCode": null, "condition": null, "userLocation": null, "negativeFeedback": 0, "positiveFeedback": 0, "recommended": null, "reviewReferenceId": "8e79810d-2615-5c10-a12f-e42a45864a02", "originalLanguage": "English", "originalLocale": "en_US", "translatedLanguage": "English", "translatedLocale": "en", "showTranslationCTA": false, "reviewSubmissionTime": "11/22/2026", "reviewText": "never arrived", "reviewTitle": null, "reviewAspects": [], "reviewAspectStart": null, "reviewAspectEnd": null, "reviewSentimentStart": null, "…": "18 more fields" }, "… 8 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
product_idpath · required | string | Walmart item id (the number in /ip/…/<id>), or a product URL. Example: 5113175776. |
pagequery | integer | |
limitquery | integer | At most this many of the page’s 10. |
sortquery | "relevancy" | "recent" | "rating_high_low" | "rating_low_high" | "oldest" | "most_helpful" | 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. |
ratingquery | integer | |
aspectquery | string | |
verified_onlyquery | "true" | "false" | One of true, false. |
countryquery | "US" | "CA" | US (default) or CA. One of US, CA. |
sincequery | string | Only items published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. |
untilquery | string | Only items published on or before this date: YYYY-MM-DD (that whole UTC day included) or an ISO 8601 timestamp. |
Response fields
200 with a WalmartReviews, in Walmart’s own product, review and search item objects.
| 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[] |
Status codes
| Status | Meaning |
|---|---|
200 | A page of reviews. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The product or category does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Walmart is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Walmart is a trademark of Walmart Apollo, LLC. We are not affiliated with or endorsed by Walmart.