# Searching and filtering

> The search filters, and the handful that do not behave as their name suggests.

Source: https://platform.kite.sa/docs/guides/searching

`GET /listings` takes 42 filters. `city` and `listing_type` are the only required ones; everything else narrows. `GET /listings/count` accepts the same 42 and returns just a total, which is how you get one — search itself doesn't return a count.

Values that are lists, ids or slugs come from the reference endpoints rather than from this page, so they can't go stale: `GET /cities`, `GET /cities/{city}/neighborhoods`, and `GET /enums` for property types, amenities, sources and the rest.

| Group | Filters |
| --- | --- |
| Location | `city`, `neighborhood_id`, `neighborhood_id_exclude`, `bbox`, `compound`, `in_compound` |
| Type | `listing_type`, `listing_category`, `property_type` |
| Price | `price_min`, `price_max`, `rent_frequency` |
| Size | `area_min`, `area_max` |
| Rooms | `beds`, `beds_min`, `beds_max`, `bathrooms`, `bathrooms_min`, `bathrooms_max`, `livings_min` |
| Attributes | `amenities`, `amenities_exclude`, `photo_features`, `furnished`, `floor`, `max_age`, `verified` |
| Freshness | `updated_since`, `days_on_market_min`, `days_on_market_max` |
| Source | `source`, `source_exclude`, `advertiser_type` |
| Text | `q` |

## Things worth knowing before you rely on them

A few filters don't behave the way their name suggests. None of this is accidental, but none of it is guessable either.

- **`beds` is exact — at every value.** kite.sa's own filter treats `beds=5` as five-or-more, so the same number returns a different set there. Use `beds_min` when you want a range. The same applies to `bathrooms`.
- **`q` searches what the advertiser wrote**, meaning `title` and `description` — not `headline`, which Kite composes for the response. Several words must all appear; `"quote a phrase"` to match it whole; `|` between terms for either. Sources that post no title at all (Aqar among them) are matched on description alone.
- **`floor=ground` and `floor=upper` don't partition.** A listing whose floor the source never stated is in neither.
- **`verified=false` means "not marked verified"**, which includes every listing the source said nothing about — not only ones it marked unverified.
- **`neighborhood_id_exclude` keeps listings Kite couldn't place**; `neighborhood_id` drops them. Excluding three neighborhoods is therefore not the same as including all the others.
- **A misspelled `source` narrows to nothing.** Parameter *names* are validated, so a typo there is an `unknown_parameter` error — but source values aren't checked against the list, so `source=bayutt` quietly returns an empty page. `GET /enums` has the real ones.
- **Listings with no price never appear in search**, even though `price.yearly_sar` is nullable and a detail lookup can return one.
- **`property_type` with several values shifts the quality bounds.** The outlier filter calibrates per property type only when you ask for exactly one, so a villa excluded by `property_type=villa` can appear under `property_type=villa,apartment`.
- **`sort=price_drop` also filters**, to listings whose price actually fell. And `sort=recommended` is a ranking that gets retuned between releases, so the same query can reorder — page through it freely, but don't sync with it.
- **`compound=true` is a special case** meaning "in any compound", not a compound named "true". Use `in_compound` if that's what you meant.
- **`city` accepts a town inside a covered city.** `city=dammam`, `khobar`, `dhahran`, `jubail` or `qatif` searches `eastern_province`; `buraydah` and `unaizah` search `qassim`; `hofuf` searches `al_ahsa`. The `X-Resolved-City` response header names the slug used. A town outside coverage (`kharj`) is an error that names the nearest covered city.
- **List filters take commas or repeats.** `neighborhood_id=1,2` and `neighborhood_id=1&neighborhood_id=2` are the same request. A single-value parameter given twice is still an error.

## Counts won't match kite.sa exactly

Both now serve all live inventory, so the two should agree closely. Where they differ it's the ranking and the outlier filter, not a freshness window — kite.sa used to hide listings whose source hadn't restated an update date in 30 days, which turned out to exclude a fifth of live listings and to depend almost entirely on which source published them. That filter is gone.

## Site selection: comparing commercial rents

To compare what commercial space costs across neighborhoods, call `GET /market/commercial-rents` rather than paging through `/listings` and dividing rent by area yourself. For each neighborhood and property type (`shop`, `office`, `warehouse`, `land`, `building`) it returns the median and quartiles of asking rent per m² in SAR per year, the median unit size and rent, and the width of the street the unit faces where ads state it, with each type's city-wide figure as a benchmark. Lease takeovers, the same unit posted many times, areas that fail Kite's checks and implausible rents per m² are already removed; `city_totals[].exclusions` shows how many. Rent per m² falls as units get bigger, so pass the size you need (`property_type=shop&area_min=80&area_max=300`), and check `sample_size` before ranking: a neighborhood with fewer than `min_sample_size` listings (default 5) is listed with null statistics. These are asking rents, not signed leases.
