# smootify:filter_changed

> the visitor changed a filter (`name: "query"` for the search text)

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/api/events/filter-changed  
Updated: 2026-10-13

the visitor changed a filter (`name: "query"` for the search text) Since 1.x.

## Listen

```js
window.Smootify = window.Smootify || [];
window.Smootify.push((api) => {
  api.on("filter_changed", (payload) => {
    // …
  });
});
```

## Payload

```ts
{ name: string; value: string | string[] }
```
