Walmart product API
One Walmart item as Walmart’s own product object, with price, availability, rating, seller, variants, specifications and the review summary.
GET /v1/walmart/products/{product_id}Beta3 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/walmart/products/5113175776",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 3 credits{ "country": "US", "product": { "primaryShelfId": "3484049", "canAddToList": true, "specialOrderQuantityEligible": true, "isPartOfLowReturnRateTest": false, "fulfillmentTypeClassification": null, "primaryProductId": "4D5SG689UM1X", "esrb": null, "ebooks": null, "eGiftCard": null, "isNative1PEgiftCard": null, "…": "176 more fields" }, "idml": { "arExperience": [ { "name": "Augmented Reality Experiences", "values": [ "…" ] } ], "genAiDetails": { "genAiDescriptionBullet": "<ul><li><strong>Streamlined ChromeOS</strong>: Runs Google's fast, secure Chrome…", "genAiConciseSummary": { "items": [ "…" ] } }, "sizeCharts": null, "chokingHazards": null, "productHighlights": [ { "name": "Screen size", "value": "15.6 in", "iconURL": "https://i5.walmartimages.com/dfw/4ff9c6c9-34f1/k2-_dd6647ce-7f0a-4c0a-8129-167c9…" }, "… 5 more" ], "ingredients": null, "longDescription": "<ul> <li><strong>Runs ChromeOS</strong>: The fast, secure operating system from…", "shortDescription": "The Acer Chromebook 315 features a 15.6-inch anti-glare screen designed to let y…", "interactiveProductVideo": null, "interactiveProductAssets": null, "…": "17 more fields" }, "reviews_summary": { "averageOverallRating": 4.3, "aspects": [ { "id": "48", "name": "Value For Money", "score": null, "snippetCount": 762 }, "… 21 more" ], "reviewSummary": { "summary": "Customers are pleased with the laptop's affordable price, considering it a great…", "summaryTitle": "Affordable laptop offers great value with user-friendly design", "summaryAspects": [ { "…": "4 fields" }, "… 4 more" ] }, "bulletReviewSummary": { "bulletSummaryAspects": [ { "…": "6 fields" }, "… 5 more" ], "thumbsUpCount": 1, "thumbsDownCount": 0 }, "lookupId": "1WU5T4S5PQU7", "condition": null, "selectedFilters": { "conditionTypeCodes": null }, "ratingValueFiveCount": 15212, "ratingValueFourCount": 2147, "ratingValueOneCount": 1907, "…": "20 more fields" }}Parameters
| Name | Type | Description |
|---|---|---|
product_idpath · required | string | Walmart item id (the number in /ip/…/<id>), or a product URL. Example: 5113175776. |
countryquery | "US" | "CA" | US (default) or CA. One of US, CA. |
Response fields
200 with a WalmartProductResponse, in Walmart’s own product, review and search item objects.
| Field | Type | Description |
|---|---|---|
country | string | |
product | WalmartProduct | Walmart’s own product object, every field it sends. |
idml | object | null | Walmart’s item details: specifications, long and short description, highlights, warranty. |
reviews_summary | object | null |
Status codes
| Status | Meaning |
|---|---|
200 | The product. |
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.