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.

FieldTypeRequiredDescription
addressaddressYes

The listing address

bedroomsnumberNo

The number of bedrooms

featuresarray of stringNo

The MLS features on this property

fullBathsnumberNo

The number of full baths

geoLocationgeoNo

The geoLocation (latitude/longitude) of this property

halfBathsnumberNo

The number of half baths

isAcreagebooleanNo

This property contains acreage

isCondobooleanNo

This property is a condominium

isForeclosurebooleanNo

This property is distressed

isLotbooleanNo

This property is land or a lot

isMultiFamilybooleanNo

This property is a multi-family residence

isRentalbooleanNo

This property is for lease

isSingleFamilybooleanNo

This property is a single-family residence

listingURLuriNo

The link to the page containing details about this property

mlsIdstringYes

The unique ID of this property from the Multiple Listing Service

neighborhoodNo

The neighborhood (not subdivision) the property is within

photoURLuriNo

The primary photo of the property

pricenumberYes

The offered value of the property for sale or rent

schoolElementarystringNo

The elementary school district in which this property resides

schoolHighstringNo

The high school district in which this property resides

schoolMiddlestringNo

The middle school district in which this property resides

squareFeetnumberNo

The square footage of the property

subdivisionstringNo

The subdivision of which this property is a part

1/* Example use of the listing object */
2
3// Create a variable to store the address
4var address = {
5 "streetAddress": "196 Humperdink Lane",
6 "city": "Florin City",
7 "stateProvince": "Florin",
8 "postalCode": "00990"
9};
10
11// Create a variable to store the geoLocation
12var geo = {
13 "latitude": 33.859821,
14 "longitude": -84.168221
15};
16
17// Create a variable storing the listing object
18var 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};
39
40// Build a data object
41var data = {
42 "listing": listing
43};
44
45// Attach the save event to the saveButton click
46document.getElementById('saveButton').addEventListener('click', function () {
47 brytescore( "realestate.savedListing", data );
48});
49
50// Log the viewedListing event on document load
51document.addEventListener('DOMContentLoaded', function() {
52 brytescore( "realestate.viewedListing", data );
53});

Updated July 25, 2026