Walmart Category
Extract a Walmart category browse page — title, breadcrumbs, filters, and array of products.
API usage
Add &scraper=walmart-category to a Crawling API request. URL-encode the target URL in the url parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.walmart.com/browse/home/dorm-decor/4044_1225301_1225229_7471338' \
--data-urlencode 'scraper=walmart-category' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.walmart.com/browse/home/dorm-decor/4044_1225301_1225229_7471338',
{'scraper': 'walmart-category'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.walmart.com/browse/home/dorm-decor/4044_1225301_1225229_7471338',
{ scraper: 'walmart-category' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.walmart.com/browse/home/dorm-decor/4044_1225301_1225229_7471338', scraper: 'walmart-category')
data = JSON.parse(res.body)Example input URL
The URL passed in the url parameter (URL-decoded for readability):
https://www.walmart.com/browse/home/dorm-decor/4044_1225301_1225229_7471338Response shape
JSON response body. Field types may be null when the source page omits the value.
Breadcrumb from root to current.
Category title.
Total products.
Filter options.
Product summaries (same shape as walmart-serp).
Sample response
{
"category_path": ["Home", "Dorm Decor"],
"category_title": "Dorm Decor",
"total_products": 1240,
"products": [
{
"product_id": "3551794083",
"title": "LED String Lights",
"price": "$12.99"
}
]
}
