Similar homes
https://idx.ruuster.com/v1/listings/{listingId}/similarpublishable or secret key · 2 units · cached 600 s
Get homes like one listing, best match first, with the reasons each ranked where it did, including for a listing that left the market in the last 30 days.
Up to 12 homes like one listing: the same boards and type, a similar price, size and bedroom count,
nearby. Each comes with why, the reasons it ranked where it did, and a score from 0 to 100.
What to know
limitis up to 12, and 6 when you leave it out.include=soldadds recent sales on boards that show sold data, andinclude=sold_onlyreturns recent sales alone.shapelooks only inside one of your saved shapes.maxMiles(0.25 to 5) sets how far from the listing a home may be, andmaxPriceGapPct(1 to 50) how far its price may be from the listing's. Left out, they are 5 miles and 20 percent.- For a listing that left the market in the last 30 days, the answer has
subjectRemovedset to true, so its "no longer available" page can offer homes like it. After that it answers 410. data.areasays whether candidates came from a box around the listing, its ZIP code (for a hidden address) or your shape.- Similar homes has the matching rules.
Path parameters
| Name | Type | Description |
|---|---|---|
listingId |
uuid | The listing's id (a uuid), as id on every listing the API returns. An MLS number is not an id: find it with /v1/suggest groups=listing. |
Query parameters
| Name | Type | Description |
|---|---|---|
limit |
integer 1 to 12, default 6 | At most this many similar homes (1 to 12), best match first. |
include |
enum, default active | active = homes for sale now (the default); sold = homes for sale now and recent sales, on the boards that show sold listings; sold_only = recent sales only (an empty list on a board that shows no sold listings). Values: active, sold, sold_only. |
maxMiles |
number 0.25 to 5, default 5 | How far from the listing a similar home may be, in miles (0.25 to 5). The search starts within 1.5 miles (or this, when smaller) and widens once, up to this, when it finds fewer than 6 homes. When you send it, homes past that distance and homes whose location is not shown are left out. It has no effect when the listing's own address is hidden (its ZIP code is searched) or with shape. |
maxPriceGapPct |
number 1 to 50, default 20 | How far a similar home's price may be from the listing's price, in percent either way (1 to 50). |
shape |
string | Only similar homes inside this saved shape (shp_…, from /v1/shapes), in place of the area around the listing. |
detailHref |
string | Override the account's detail URL template for this call: an http(s) URL or a path starting with /, containing {slug} or {id} (also allowed: {mlsNumber}). Drives each listing's href and canonical; a path is made absolute against your site for the canonical, og:url and JSON-LD. At most 500 characters. |
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 |
|---|---|---|
subjectId |
string | The listing these homes are similar to. |
listings |
array of object | Similar homes, best match first (at most limit). |
listings[].listing |
object | A listing card (view=card). |
listings[].listing.id |
string | The listing's platform UUID (the API id). |
listings[].listing.slug |
string | Permanent URL slug, {address-slug}-{id}, or {id} when the address is hidden. |
listings[].listing.href |
string or null | Your detail URL from the detailHref template; null when none is configured. |
listings[].listing.mls |
object | The board the listing comes from; its compliance block is in meta.mls. |
listings[].listing.mls.id |
string | The board's MLS id. |
listings[].listing.mls.name |
string | The board's name. |
listings[].listing.mlsNumber |
string or null | The MLS number as the board prints it. |
listings[].listing.status |
string (enum) | Listing status (the public vocabulary). One of active, coming_soon, pending, under_contract, closed. |
listings[].listing.statusLabel |
string | Status as the board names it (NWMLS: Contingent). |
listings[].listing.price |
number or null | The listing's price: the list price, or the sold price on a closed listing. |
listings[].listing.closePrice |
number or null | Sold price (closed listings on boards that show sold); equals price on a closed listing. |
listings[].listing.listPrice |
number or null | Original list price when the source carries it. |
listings[].listing.closeDate |
string or null | Sold date (closed listings on boards that show sold). |
listings[].listing.beds |
number or null | Bedrooms. |
listings[].listing.baths |
number or null | Bathrooms. |
listings[].listing.sqft |
number or null | Living area, square feet. |
listings[].listing.lotAcres |
number or null | Lot size, acres. |
listings[].listing.yearBuilt |
number or null | Year built. |
listings[].listing.type |
string or null | Property type. |
listings[].listing.subtype |
string or null | Residential subtype (house, condo, townhome, co-op, other). |
listings[].listing.address |
object | |
listings[].listing.address.display |
string | One display line, masked when the address is hidden (NWMLS hidden: empty). |
listings[].listing.address.street |
string or null | Street line; null when hidden. |
listings[].listing.address.unit |
string or null | Unit; null when hidden. |
listings[].listing.address.city |
string or null | City; null when the board hides the city line (NWMLS). |
listings[].listing.address.state |
string | State or province code. |
listings[].listing.address.postalCode |
string or null | Postal code; null when the board hides it. |
listings[].listing.address.hidden |
boolean | The address is hidden: render no street, no exact map pin. |
listings[].listing.geo |
object or null | The listing's exact coordinates. null (no coordinates at all, never approximate ones) when the address is hidden or the board doesn't allow maps. |
listings[].listing.geo.lat |
number | Latitude. |
listings[].listing.geo.lng |
number | Longitude. |
listings[].listing.geo.precision |
string (enum) | Always exact today: the listing's own point. approximate is reserved for a coarse public area centroid; a listing point is never shifted or blurred. One of exact, approximate. |
listings[].listing.photos |
array of object | Photos in order. |
listings[].listing.photos[].url |
string | https URL of the photo. |
listings[].listing.photos[].width |
integer or null | Pixels, when known. |
listings[].listing.photos[].height |
integer or null | Pixels, when known. |
listings[].listing.photos[].order |
integer | 0-based position. |
listings[].listing.photos[].alt |
string | Alt text (never the street when the address is hidden). |
listings[].listing.photoCount |
integer | How many photos the listing has. |
listings[].listing.openHouses |
array of object | Upcoming public open houses, soonest first. |
listings[].listing.openHouses[].start |
string | Start, ISO 8601 with the property's UTC offset. |
listings[].listing.openHouses[].end |
string | End, ISO 8601 with the property's UTC offset. |
listings[].listing.openHouses[].timeZone |
string or null | IANA zone of the listing, when known. |
listings[].listing.openHouses[].kind |
string (enum) | in_person or virtual. One of in_person, virtual. |
listings[].listing.openHouses[].remarks |
string or null | Public open-house remarks (agent-only remarks are never sent). |
listings[].listing.badges |
array of object | Badges as data (render relative times yourself). |
listings[].listing.badges[].kind |
string (enum) | Badge kind. One of new, back_on_market, price_change, coming_soon, open_house, sold. |
listings[].listing.badges[].since |
string or null | When the badge started (ISO), when known. |
listings[].listing.listedAt |
string or null | On-market date, when known. |
listings[].listing.updatedAt |
string | When the listing last changed (ISO). |
listings[].listing.modifiedAt |
string or null | When the MLS last changed the listing: its modificationTimestamp (ISO). The date a board's disclaimer states "as of" (MLS compliance). null when the board sent none; absent from older answers. |
listings[].listing.attribution |
object | What the board requires you to show with this listing (render it on every card / page). |
listings[].listing.attribution.listOfficeName |
string or null | Listing office, for attribution. |
listings[].listing.attribution.listAgentName |
string or null | Listing agent, for attribution. |
listings[].listing.attribution.contact |
object | Agent / office contact ONLY where the board requires it in attribution. Display only. |
listings[].listing.attribution.contact.agentEmail |
string | Listing agent email (board-required attribution). |
listings[].listing.attribution.contact.agentPhone |
string | Listing agent phone (board-required attribution). |
listings[].listing.attribution.contact.officeEmail |
string | Listing office email (board-required attribution). |
listings[].listing.attribution.contact.officePhone |
string | Listing office phone (board-required attribution). |
listings[].listing.attribution.line |
string or null | The exact attribution text to render with the listing. |
listings[].listing.attribution.courtesy |
string or null | The courtesy line, where the board requires one. |
listings[].why |
object | Why this home ranked where it did. |
listings[].why.distanceMiles |
number or null | Miles from the listing; null when either home's location is not shown. |
listings[].why.priceGapPct |
number or null | Price difference from the listing in percent (one decimal; negative = lower); null when either price is unknown. |
listings[].why.sqftGapPct |
number or null | Living-area difference from the listing in percent (one decimal); null when either size is unknown. |
listings[].why.bedsDiff |
number or null | Bedrooms more (positive) or fewer (negative) than the listing; null when either is unknown. |
listings[].why.bathsDiff |
number or null | Bathrooms more (positive) or fewer (negative) than the listing; null when either is unknown. |
listings[].why.sameSubtype |
boolean | true when both homes have the same subtype (house, condo, townhome, …). |
listings[].why.ageDays |
integer or null | Days since this home was listed (for sale) or sold (sold); null when the date is unknown. |
listings[].why.score |
integer | How alike the two homes are, 0 to 100 (higher is closer): distance 30, price 25, size 20, rooms 15, recency 10. |
area |
string (enum) | box: the area around the listing; zip: the listing's ZIP code; shape: the saved shape sent in shape. One of box, zip, shape. |
widened |
boolean | true when the area around the listing was widened to find enough homes. |
include |
string (enum) | active: homes for sale now; active_and_sold: homes for sale now and recent sales; sold: recent sales only (include=sold_only). One of active, active_and_sold, sold. |
subjectRemoved |
boolean | true when the listing left the market in the last 30 days (its own page answers 410): link these homes from that page. false otherwise. |
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, mls_not_in_scope, not_found, shape_not_found, listing_removed, sold_not_permitted, daily_quota_exceeded, rate_limited, internal_error, api_paused, source_unavailable