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.

API Examples

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"
        ],
      }
    ]
  }
  ...
}

Results for: filters

Results for: filters

JSON Example

{
  ...
  "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
    },
    ...
  ]
  ...
}