apidata.one docs Get a key

GET /v1/listings/{listingKey}

One listing, in full.

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

Path

Name Type Description
listingKey string Required. The listing's key. With ?mlsNumber=true, an MLS number, current or past, in its place.

Query

Name Type Description
mlsNumber string To look a listing up by an MLS number, current or past: "true", with the number in the path; or the number itself.

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.

Answers

200: The listing, with 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 ListingDetail.

Errors

Every error has the same body, and says how to fix it (responses and errors).

More

The detail is the listing object plus these. Each is listed with its type under ListingDetail; this table says more about when a field is filled:

Field Content
remarks the public remarks
directions, taxId only when the address is shown
virtualTourUrl the listing's tour link exactly as Bright sent it, with https:// in front only when it had no scheme (a value that names no website is null). Shown for a withheld address too; null for Coming Soon and under the off-market hide
media { links: [{ mediaKey, kind, url, order, caption }] }: the listing's virtual tours and videos as links, in display order. kind is tour, video or other (a link Bright filed as a photo that is neither, such as a document share). Each url is Bright's, unaltered except for https:// added where it had no scheme; an http:// link stays http://. Never in photos or its count; [] for Coming Soon and under the off-market hide. A listing whose address is withheld shows its links like any other
features an object of Bright's fields in lowerCamelCase, the YN suffix kept (basementYN, basement, heating, interiorFeatures, taxAnnualAmount, …): booleans, numbers and arrays of display strings; empty values are left out
rooms [{ type, level, length, width, area, dimensions, features, description, order }] in display order, for on-market listings ([] when the listing has none). null with the warning rooms_stale and details.syncedAt (the set's last complete pull, or null) when the set was never pulled or its refresh is more than 12 hours overdue: an old set is never served. A listing that isn't on the market has rooms: null with no warning
openHouses [{ id, date, startTime, endTime, method, virtualUrl, remarks }], public open houses that haven't ended; method is in_person, virtual or in_person_and_virtual; [] with the warning open_houses_stale while the open-house feed is more than 12 hours old
places [{ placeId, kind, displayName }] the listing belongs to; names only, never geometry; school districts on Premium only
schools Premium only (a Basic detail has no such key): the object GET /v1/listings/{listingKey}/schools serves, without its listingKey
priceHistory [{ date, price, kind }] (kind is list or close): dated events only. date is a calendar date, YYYY-MM-DD, in Eastern time (America/New_York), never a timestamp. A list entry is a list price on the Eastern date it took effect; the close entry is the close price on the close date, equal to closeDate, and only a Closed listing has one. Oldest first; on one date, list entries come before the close entry and keep the order they happened in. A listing whose record shows no dated price change has no list entry ([] when it also isn't closed): its current price is price.list. Nothing from a Coming Soon period is included, and no list price dated from the close on (a later day than the close date, or at or after the change that recorded the listing as closed). A listing that was closed and is back on the market has no close entry, and the list prices it gets from then on are shown. Absent for Coming Soon and when Bright hides the history
listingIdHistory [{ mlsNumber, firstSeenAt, lastSeenAt }]: MLS numbers the listing has carried
photos.items every gallery photo in order: { mediaKey, order, caption, urls }, Bright's five sizes on its media host over https

The path value is the listingKey. To look a listing up by its MLS number, current or past, send ?mlsNumber=true with the number in the path, or ?mlsNumber=<number>. A listing that isn't served (unknown, left the feed, or kept from display) is 404 listing_not_found.

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.

This page as Markdown