Filter options
https://idx.ruuster.com/v1/filters/optionspublishable or secret key · 1 unit · cached 3600 s
Get the choices of one filter, with counts, to fill a dropdown or a type-ahead in your filter bar.
The values of one filter, with how many listings have each, for a dropdown or a list of checkboxes.
What to know
filterKeyis a key from/v1/filters. A key it doesn't list answers 422filter_not_supported.filters, a JSON object of the search's other filters, makes the counts reflect the current search, andfilterByValuenarrows the choices to what the visitor typed.filterByMlsnarrows the choices to some of your boards.- The list holds up to 200 choices, and
truncatedsays when there were more.
Query parameters
| Name | Type | Description |
|---|---|---|
filterKey |
string | The filter key whose options to list (a key from /v1/filters). Required. |
filterType |
enum | The widget's filter type hint (the numeric index type names integer, long, short, byte, float, double, half_float and scaled_float read as number). Accepted, never trusted: the API picks the field from its own filter definitions. Values: text, keyword, boolean, number, date, integer, long, short, byte, float, double, half_float, scaled_float. |
filterByMls |
string, comma list | Only options from these boards: a comma list of MLS search names inside this key's scope. At most 20 values. |
filterByValue |
string | Type-ahead text: only options containing it (case-insensitive). At most 60 characters. |
filters |
json | The current search's other filters, as a JSON object { key: value | [values] } of at most 20 public filter keys, so the options reflect them. At most 2048 characters. |
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 | |
options |
array of object | |
options[].value |
string | |
options[].label |
string | |
options[].count |
integer | |
truncated |
boolean | true when the 200-option cap cut the list. |
Errors
These are the error codes this endpoint can answer. Every error has the same body; 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