listing Object
The listing object is a single property for sale or rent.
The listing object is a single property for sale or rent. It can be passed to any of the listing events supported by this package.
| Field | Type | Required | Description |
|---|---|---|---|
address | address | Yes | The listing address |
bedrooms | number | No | The number of bedrooms |
features | array of string | No | The MLS features on this property |
fullBaths | number | No | The number of full baths |
geoLocation | geo | No | The geoLocation (latitude/longitude) of this property |
halfBaths | number | No | The number of half baths |
isAcreage | boolean | No | This property contains acreage |
isCondo | boolean | No | This property is a condominium |
isForeclosure | boolean | No | This property is distressed |
isLot | boolean | No | This property is land or a lot |
isMultiFamily | boolean | No | This property is a multi-family residence |
isRental | boolean | No | This property is for lease |
isSingleFamily | boolean | No | This property is a single-family residence |
listingURL | uri | No | The link to the page containing details about this property |
mlsId | string | Yes | The unique ID of this property from the Multiple Listing Service |
neighborhood | No | The neighborhood (not subdivision) the property is within | |
photoURL | uri | No | The primary photo of the property |
price | number | Yes | The offered value of the property for sale or rent |
schoolElementary | string | No | The elementary school district in which this property resides |
schoolHigh | string | No | The high school district in which this property resides |
schoolMiddle | string | No | The middle school district in which this property resides |
squareFeet | number | No | The square footage of the property |
subdivision | string | No | The subdivision of which this property is a part |
1/* Example use of the listing object */23// Create a variable to store the address4var address = {5 "streetAddress": "196 Humperdink Lane",6 "city": "Florin City",7 "stateProvince": "Florin",8 "postalCode": "00990"9};1011// Create a variable to store the geoLocation12var geo = {13 "latitude": 33.859821,14 "longitude": -84.16822115};1617// Create a variable storing the listing object18var listing = {19 "address": address,20 "features": [21 "Interior: Master on main",22 "Interior: Hardwood floors",23 "Interior: Fireplace",24 "Exterior: Level lot",25 "Exterior: Deck/Patio",26 "Exterior: Fenced yard",27 "Garage/Parking: 3 car or more",28 "Garage/Parking: Attached"29 ],30 "fullBaths": 3,31 "geoLocation": geo,32 "halfBaths": 1,33 "isSingleFamily": true,34 "price": 349000,35 "listingURL": "http://www.yoursite.com/listings/2983599/",36 "mlsId": "2983599",37 "photoURL": "http://images.yoursite.com/2983599_1.jpg"38};3940// Build a data object41var data = {42 "listing": listing43};4445// Attach the save event to the saveButton click46document.getElementById('saveButton').addEventListener('click', function () {47 brytescore( "realestate.savedListing", data );48});4950// Log the viewedListing event on document load51document.addEventListener('DOMContentLoaded', function() {52 brytescore( "realestate.viewedListing", data );53});
Updated July 25, 2026