Search and copy Walmart category IDs for SerpApi's walmart search engine. The dataset is included; the explorer is static and needs no build step.
npx --yes http-server . -p 8080 -c-1Open http://localhost:8080. Search by name or ID, filter by Browse/Departments, copy complete IDs, or export the JSON. Serve the directory locally because browsers cannot fetch the neighboring JSON from a file:// page.
Requires Node.js; no scraper dependencies to install.
node scrape.mjs
# Optional: write to a different file
node scrape.mjs --output /tmp/walmart-categories.jsonThe scraper reads Walmart's /all-departments navigation and updates walmart-categories.json. Refresh the explorer to see new data. This is a curated navigation list, not a complete product taxonomy.
Each flat category record includes:
cat_id: complete value for SerpApi'scat_idparametername: Walmart's displayed labelurl: source Walmart category URLkind:departmentfor/cp/orbrowsefor/browse/parent_cat_id: top-level department ID for browse categories
department IDs include permanent departments and promotional collections.