# List filters

Source: https://help.ruuster.com/idx/filters

> List the advanced filters your account can use, with their labels, types, operators and the boards that show them.

```http
GET https://idx.ruuster.com/v1/filters
```

publishable or secret key · 1 unit · cached 3600 s

The advanced filters your search bar can offer, the ones your boards support. Each has a
`key` (send it as `f.<key>` on search), a `label`, a `type`, a `group` (`based` for the main bar,
`advanced` for More filters), the boards that show it and the operators it takes.

## What to know

- `keys` narrows the answer to some filters, as a comma list.
- A filter that only some of your boards show matches only their listings.
- [Filters and keyword search](https://help.ruuster.com/idx/guide-filters) shows how to send them.

## Query parameters

| Name | Type | Description |
|---|---|---|
| `keys` | string, comma list | Only these filter keys (a comma list of filter key names). At most 50 values. |
| `format` | enum, default json | json = the public API shapes; widget = the shapes the Ruuster widget reads (for the widget and its adapters). Values: `json`, `widget`. |

## Response

The answer is `{ ok: true, data, meta }`. These are the fields of `data`; `meta` carries `brokerageId`, `freshness.asOf`, `mls` (each board's display rules) and `canonical`.

| Field | Type | Description |
|---|---|---|
| `[].key` | string | The filter key: send f.<key> (and f.<key>Min / f.<key>Max / f.<key>_o) to /v1/listings. |
| `[].label` | string |  |
| `[].type` | string or null | The input the key takes (the meta filterType, e.g. "Min/Max/Range - Number"). Values: /v1/filters/options. |
| `[].group` | string (enum) | One of `based`, `advanced`. |
| `[].mlsIds` | array of string | The boards in scope that show this key. |
| `[].operators` | array of string (enum) |  |

## Errors

These are the error codes this endpoint can answer. Every error has the same body; [Errors](https://help.ruuster.com/idx/reference-errors) explains each code and what to show.

`invalid_parameter`, `secret_key_in_url`, `invalid_credentials`, `missing_credentials`, `payment_required`, `access_revoked`, `brokerage_not_enabled`, `origin_not_allowed`, `origin_required`, `secret_key_in_browser`, `filter_not_supported`, `daily_quota_exceeded`, `rate_limited`, `internal_error`, `api_paused`, `source_unavailable`

## Example request

cURL:

```bash
curl -s "https://idx.ruuster.com/v1/filters" \
  -H "Authorization: Bearer $IDX_SECRET_KEY"
```

TypeScript:

```typescript
import { createClient } from "@ruuster/idx";

const idx = createClient({ secretKey: process.env.IDX_SECRET_KEY });

const r = await idx.filters();
if (!r.ok) throw new Error(`${r.error.code}: ${r.error.message}`);
console.log(r.data);
```

Python:

```python
import os

import requests

res = requests.get(
    "https://idx.ruuster.com/v1/filters",
    headers={"Authorization": "Bearer " + os.environ["IDX_SECRET_KEY"]},
    timeout=30,
)
body = res.json()
if not body["ok"]:
    raise RuntimeError(body["error"]["code"] + ": " + body["error"]["message"])
print(body["data"])
```

PHP:

```php
<?php

$ch = curl_init('https://idx.ruuster.com/v1/filters');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('IDX_SECRET_KEY')],
    CURLOPT_TIMEOUT => 30,
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
if (!$body['ok']) {
    throw new RuntimeException($body['error']['code'] . ': ' . $body['error']['message']);
}
print_r($body['data']);
```

## Example response

```json
{
  "ok": true,
  "data": [
    {
      "key": "status",
      "label": "Property Status",
      "type": "Free Text Field",
      "group": "based",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": []
    },
    {
      "key": "price",
      "label": "Price",
      "type": "Min/Max/Range - $",
      "group": "based",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": []
    },
    {
      "key": "bedrooms",
      "label": "Bedrooms",
      "type": "Min/Max/Range - Number",
      "group": "based",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": []
    },
    {
      "key": "bathrooms",
      "label": "Total Bathrooms",
      "type": "Min/Max/Range - Number",
      "group": "based",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": []
    },
    {
      "key": "type",
      "label": "Property Type",
      "type": "Drop Down - Predefined Multi-Select",
      "group": "based",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": [
        "and",
        "or",
        "not"
      ]
    },
    {
      "key": "square",
      "label": "Square Feet",
      "type": "Min/Max/Range - List",
      "group": "advanced",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": []
    },
    {
      "key": "hasVirtualTour",
      "label": "Virtual Tour",
      "type": "Drop Down - Yes No",
      "group": "advanced",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": []
    },
    {
      "key": "daysOnMarket",
      "label": "Days on Market",
      "type": "Min/Max/Range - Number",
      "group": "advanced",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444"
      ],
      "operators": []
    },
    {
      "key": "yearBuilt",
      "label": "Year Built",
      "type": "Min/Max/Range - List",
      "group": "advanced",
      "mlsIds": [
        "11111111-1111-4111-8111-111111111111",
        "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "33333333-3333-4333-8333-333333333333",
        "44444444-4444-4444-8444-444444444444",
        "802219ea-d7ac-46cf-b3e2-83e78ef13f68"
      ],
      "operators": []
    }
  ],
  "meta": {
    "brokerageId": "bbbbbbbb-0000-4000-8000-000000000001",
    "freshness": {
      "asOf": "2026-10-22T15:00:00.000Z"
    },
    "mls": [
      {
        "mlsId": "11111111-1111-4111-8111-111111111111",
        "mlsName": "Fixture MLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "Fixture MLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "Fixture MLS logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [
          {
            "kind": "dmca",
            "text": "To report content that you believe infringes your copyright, write to the MLS's designated copyright agent.",
            "html": null
          }
        ],
        "draft": true
      },
      {
        "mlsId": "43c8a0ee-4ac7-48e3-b684-72f1770ccb58",
        "mlsName": "NWMLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "NWMLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "NWMLS logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [],
        "draft": true
      },
      {
        "mlsId": "33333333-3333-4333-8333-333333333333",
        "mlsName": "No-Map MLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "No-Map MLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "No-Map MLS logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [],
        "draft": true
      },
      {
        "mlsId": "44444444-4444-4444-8444-444444444444",
        "mlsName": "Contact MLS",
        "displayType": "IDX",
        "disclaimer": {
          "text": "Contact MLS data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "Contact MLS logo"
        },
        "attributionTemplate": "Listed by {listAgentName}, {agentPhone}, {agentEmail}, {listOfficeName}",
        "required": [
          {
            "element": "listing_agent",
            "placement": "detail"
          },
          {
            "element": "agent_contact",
            "placement": "detail"
          },
          {
            "element": "courtesy_line",
            "placement": "card"
          }
        ],
        "notices": [],
        "draft": true
      },
      {
        "mlsId": "802219ea-d7ac-46cf-b3e2-83e78ef13f68",
        "mlsName": "Maine Listings",
        "displayType": "IDX",
        "disclaimer": {
          "text": "Maine Listings data is deemed reliable but not guaranteed. CLIENTOK-disclaimer",
          "html": null
        },
        "logo": {
          "url": "https://ruuster-public.s3.amazonaws.com/mls-logo/fixture.png",
          "width": 80,
          "height": 40,
          "alt": "Maine Listings logo"
        },
        "attributionTemplate": null,
        "required": [
          {
            "element": "listing_office",
            "placement": "card"
          },
          {
            "element": "disclaimer",
            "placement": "page"
          }
        ],
        "notices": [],
        "draft": true
      }
    ],
    "canonical": null,
    "audience": "display"
  }
}
```
