100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
category_idpath · requiredstringBrowse id, e.g. 3944 or 3944_1060825. Example: 3944.
pagequeryintegerPage, 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_pricequerynumber | null
max_pricequerynumber | null
store_idquerystringOnly items at this Walmart store.
facetquerystringWalmart facet filter as in its URLs, e.g. brand:Ninja.
countryquery"US" | "CA"US (default) or CA. One of US, CA.
limitqueryinteger
Response fields

200 with a WalmartListing, in Walmart’s own product, review and search item objects.

FieldTypeDescription
countrystring
querystring | null
category_idstring | null
titlestring | null
pagenumber
max_pagenumber | null
totalnumber | null
itemsobject[]
Status codes
StatusMeaning
200A page of the category.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The product or category does not exist.
429Too many requests. Wait for Retry-After seconds.
503Walmart 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.