Walmart Filters API
When SerpApi encounters filters, we add them to our JSON output as the filters array. We are able to extract its type, name, url, values.
The API endpoint is https://serpapi.com/search?engine=walmart
Head to the playground for a live and interactive demo.
API Examples
Results for: filters
{
...
"filters": [
{
"name": "Departments",
"type": "cat_id",
"values": [
{
"id": "976759",
"item_count": 56655,
"name": "Food",
"type": "cat_id",
"url": "https://www.walmart.com/search?query=coffee&cat_id=976759&grid=true&redirect=false",
"serpapi_url": "https://serpapi.com/search.json?cat_id=976759&device=desktop&engine=walmart&grid=true&query=coffee",
"values": [
{
"id": "976759_1086446",
"item_count": 56630,
"name": "Coffee",
"type": "cat_id",
"url": "https://www.walmart.com/search?query=coffee&cat_id=976759_1086446&grid=true&redirect=false",
"serpapi_url": "https://serpapi.com/search.json?cat_id=976759_1086446&device=desktop&engine=walmart&grid=true&query=coffee",
"values": [
{
"id": "976759_1086446_1229651",
"item_count": 0,
"name": "Ground Coffee",
"type": "cat_id",
"url": "https://www.walmart.com/search?query=coffee&cat_id=976759_1086446_1229651&grid=true&redirect=false",
"serpapi_url": "https://serpapi.com/search.json?cat_id=976759_1086446_1229651&device=desktop&engine=walmart&grid=true&query=coffee"
},
{
"id": "976759_1086446_1229653",
"item_count": 0,
"name": "Single-Serve Cups & Pods",
"type": "cat_id",
"url": "https://www.walmart.com/search?query=coffee&cat_id=976759_1086446_1229653&grid=true&redirect=false",
"serpapi_url": "https://serpapi.com/search.json?cat_id=976759_1086446_1229653&device=desktop&engine=walmart&grid=true&query=coffee"
}
]
},
{
"id": "976759_976780",
"item_count": 9,
"name": "Baking",
"type": "cat_id",
"url": "https://www.walmart.com/search?query=coffee&cat_id=976759_976780&grid=true&redirect=false",
"serpapi_url": "https://serpapi.com/search.json?cat_id=976759_976780&device=desktop&engine=walmart&grid=true&query=coffee"
},
]
}
]
},
{
"name": "Price",
"type": "price",
"min": 0,
"max": 30,
"step_size": 1
},
...
]
...
}
JSON structure overview
{
...
"filters": {
"name": "String",
"type": "String",
"values": [
{
"id": "String",
"item_count": "Integer",
"name": "String",
"type": "String",
"url": "String",
"serpapi_url": "String",
"min": "Integer",
"max": "Integer",
"step_size": "Integer",
"values": [
"id": "String",
"item_count": "Integer",
"name": "String",
"type": "String",
"url": "String",
"serpapi_url": "String",
"values": "Array"
],
}
]
}
...
}