POST /v1/listings/search
Search listings, with the filters as a JSON body.
| Access | |
|---|---|
| Keys | publishable or secret |
| Plan | every plan |
| Environment | live and sandbox |
| Acts for | the account |
| While the account is suspended | refused |
| During a data stop | refused |
Headers
| Name | Description |
|---|---|
X-Client-Token |
Optional, with a publishable key: a token your server minted for a consumer with POST /v1/client-tokens. With it, each listing says whether it is a favorite of theirs (isFavorite). |
X-Client-Id |
Optional, with a secret key: your own opaque ID for a consumer, to the same end. |
Body
A SearchRequest, as JSON.
{
"status": [
"active"
],
"price": {
"max": 500000
},
"beds": {
"min": 3
},
"location": {
"placeIds": [
"pl_Hq2Lw9Xc4Vb7Nm1Kp6Tz3R"
]
},
"sort": "newest",
"limit": 24
}
Answers
200: One page of listings, with the count, the disclosures and any warnings
The answer is { data, meta, compliance, warnings }: meta holds requestId, environment and dataLastUpdatedAt; compliance is the block of notices to show; warnings is a list of Warning, empty when there is nothing to say.
data is a list of ListingSummary.
meta.page is a SearchPage.
Errors
Every error has the same body, and says how to fix it (responses and errors).
More
One search schema, two forms. POST /v1/listings/search takes it as a JSON body; GET /v1/listings takes it flattened into query keys (one request, cacheable, linkable):
| Body | Query |
|---|---|
{ "price": { "min": 300000, "max": 450000 } } |
price.min=300000&price.max=450000 |
{ "status": ["active", "pending"] } |
status=active,pending |
{ "location": { "placeIds": ["pl_a", "pl_b"] } } |
location.placeIds=pl_a,pl_b |
{ "location": { "bbox": [-75.42, 40.00, -75.30, 40.08] } } |
location.bbox=-75.42,40.00,-75.30,40.08 |
{ "location": { "cities": [{ "name": "Bryn Mawr", "state": "PA" }] } } |
location.cities=Bryn Mawr|PA |
{ "location": { "radius": { "center": [-75.3, 40.01], "meters": 1609 } } } |
location.radius.center=-75.3,40.01&location.radius.meters=1609 |
{ "hasPool": true } |
hasPool=true |
Dotted keys build nested objects, commas separate list items, and cities and subdivisions are
Name|ST items. A key outside the schema is 400 validation_failed naming it, in both forms;
every problem in a request is reported at once in fields. location.shape (a drawn shape)
exists in the body form only.
Filters
Each filter is described where it is listed: as a query key on the page of GET /v1/listings,
and as a field of the body under SearchRequest. Every filter is
optional, and they combine with AND.
location.schoolIds is not available: search by individual school waits for attendance-zone
data. It is 403 tier_insufficient on Basic and 400 validation_failed on Premium. Search a
school district with its place ID in location.placeIds (Premium).
A Premium field sent with a key on a Basic account is 403 tier_insufficient with
capability (shapes or schools), before anything else in the request is judged; it is
never ignored. location.schoolDistrictIds no longer exists (a school district is a place):
it is 400 validation_failed as an unknown key.
Location kinds combine with AND. Spatial kinds (bbox, radius, a drawn or saved shape, a
community place, the map) match listings with a shown address and a point inside the seven
jurisdictions only, so a hidden-address listing is found through its city, ZIP, subdivision or
place memberships, never through a shape. Filters that mean nothing for some classes (beds and baths for land and
commercial listings, living area for land) apply only where they mean something; those
listings stay in the results and the response carries the warning filter_not_applicable.
That warning is about the search, not about the page you got. It comes whenever beds,
baths or livingAreaSqft is sent and the search could return a class the filter means
nothing for, even when every listing on this page is a house. Its message names those
classes and its fix says how to leave them out: add a propertyClass filter with the
classes you want, such as propertyClass=residential. With that, the filter applies to
everything the search can return, and no warning comes. A site that searches homes only
should send propertyClass on every search; one that shows land and commercial listings
beside homes can ignore the warning.
Newest first
sort=newest orders every listing by its latest status change, newest first: a new
listing, one back on the market, a move under contract or a close. A listing back on the
market counts as new again.
- Every status is in the one timeline. A Coming Soon listing sorts by its status change like any other, not by its expected on-market date.
- A listing whose days on market Bright hides sorts like the rest. A sort shows an order,
never a date or a count: such a listing still has no
daysOnMarket. - Listings that changed at the same moment come in a fixed order, and a listing with no status change comes last.
- The sandbox sorts the same way as live.
Prices Bright hides
When Bright flags a listing's prices as not for display, its price fields are null, it can't
match a price filter, and price sorts put it last in both directions. Likewise a listing with
hidden price history has no priceHistory, and one with hidden days-on-site has no
daysOnMarket or on-market dates.
Response
{
"data": [ { "listingKey": "805454359664", "…": "a ListingSummary" } ],
"meta": {
"requestId": "req_…",
"page": { "limit": 24, "nextCursor": "c_…", "total": 1234, "totalIsCapped": false },
"dataLastUpdatedAt": "2026-11-10T14:59:00.000Z",
"environment": "live"
},
"compliance": { "…": "the compliance block" },
"warnings": [ { "code": "close_date_clamped", "message": "…", "fix": "…" } ]
}
total is exact up to 10,000 and totalIsCapped says when it stopped counting. Pages are
read with cursor (opaque, signed, bound to the filters and the sort: a cursor sent with other
filters or another sort, or altered, is 400 validation_failed on cursor). A search can page
through at most 10,000 results: the cursor that would start past that answers
400 pagination_limit_reached; narrow the filters or sort differently. nextCursor is null on
the last page.
If the meaning of a sort ever changes, cursors made before the change are refused the same way
(400 validation_failed on cursor): start again from the first page.
This page is made from the route's own declaration by npm run openapi. To change it, change the declaration or its explanation, never this file.