Walmart category API
The items of a Walmart browse category, with the same sort and filters as search.
GET /v1/walmart/categories/{category_id}Beta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/walmart/categories/3944",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "country": "US", "query": "air fryer", "category_id": null, "title": "Results for \"air fryer\"", "page": 1, "max_page": 13, "total": 2192, "items": [ { "usItemId": "14678059894", "name": "Chefman Air Fryer 1500W, 6 Quart, 4 Functions with Touch Controls, Stainless Steel", "__typename": "Product", "buyBoxSuppression": false, "similarItems": false, "id": "7GXM655MAE4G", "isDE": false, "showDrawCTA": null, "isBadSplit": false, "fitmentLabel": null, "checkStoreAvailabilityATC": false, "seeShippingEligibility": false, "productBrand": null, "brand": null, "showLikeButton": true, "type": "REGULAR", "shortDescription": null, "averageWeight": null, "weightIncrement": 1, "topResult": null, "additionalOfferCount": 3, "availabilityInNearbyStore": null, "availabilityType": "CURRENT", "startDate": null, "…": "115 more fields" }, { "usItemId": "17707154629", "name": "HoninJoy 13 QT Stack Double Basket Air Fryer, Space Saving Design, 10-in1 Air Fryer, Roast, Bake & More, Easy to Clean, …", "__typename": "Product", "buyBoxSuppression": false, "similarItems": false, "id": "3X2MDK2TEV2Q", "isDE": false, "showDrawCTA": null, "isBadSplit": false, "fitmentLabel": null, "checkStoreAvailabilityATC": false, "seeShippingEligibility": false, "productBrand": null, "brand": null, "showLikeButton": true, "type": "REGULAR", "shortDescription": null, "averageWeight": null, "weightIncrement": 1, "topResult": null, "additionalOfferCount": null, "availabilityInNearbyStore": null, "availabilityType": "CURRENT", "startDate": null, "…": "116 more fields" }, "… 4 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
category_idpath · required | string | Browse id, e.g. 3944 or 3944_1060825. Example: 3944. |
pagequery | integer | Page, from 1. |
sort_byquery | "best_match" | "price_low" | "price_high" | "best_seller" | "top_rated" | best_match (default), price_low, price_high, best_seller, top_rated. One of best_match, price_low, price_high, best_seller, top_rated. |
min_pricequery | number | null | |
max_pricequery | number | null | |
store_idquery | string | Only items at this Walmart store. |
facetquery | string | Walmart facet filter as in its URLs, e.g. brand:Ninja. |
countryquery | "US" | "CA" | US (default) or CA. One of US, CA. |
limitquery | integer |
Response fields
200 with a WalmartListing, in Walmart’s own product, review and search item objects.
| Field | Type | Description |
|---|---|---|
country | string | |
query | string | null | |
category_id | string | null | |
title | string | null | |
page | number | |
max_page | number | null | |
total | number | null | |
items | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | A page of the category. |
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.