Docs
Log in

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' -G
from 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_7471338

Response shape

JSON response body. Field types may be null when the source page omits the value.

category_path
array
Breadcrumb from root to current.
category_title
string
Category title.
total_products
integer | null
Total products.
filters
array
Filter options.
products
array
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"
    }
  ]
}