search Object

The object containing details about a specific real estate property search the user performed.

The object containing details about a specific real estate property search the user performed.

FieldTypeRequiredDescription
addressaddressNo

The address a user entered into the search

bedroomsMaxnumberNo

The maximum number of bedrooms used in this search

bedroomsMinnumberNo

The minimum number of bedrooms used in this search

citiesarray of stringNo

The cities the user searched within

countiesarray of stringNo

The counties the user searched within

descriptionstringNo

A human-readable text description of this search

driveTimeStartAddressaddressNo

Start location for the drive in a drive time search

driveTimeStartTimestringNo

Time of day of the drive in a drive time search

featuresarray of stringNo

The features the user selected for this search

fullBathsMaxnumberNo

The maximum number of full bathrooms used in this search

fullBathsMinnumberNo

The minimum number of full bathrooms used in this search

halfBathsMaxnumberNo

The maximum number of half bathrooms used in this search

halfBathsMinnumberNo

The minimum number of half bathrooms used in this search

idstringNo

The website's internal unique identifier for this search

isAcreagebooleanNo

This search was for acreage

isCondobooleanNo

This search was for condominiums

isDriveTimeSearchbooleanNo

This search contains "drive time" criteria

isForeclosureAcreagebooleanNo

This search was for distressed properties

isLotbooleanNo

This search was for land or lots

isMultiFamilybooleanNo

This search was for multi-family residences

isPointOfInterestSearchbooleanNo

This search returned results near a point of interest

isRadiusSearchbooleanNo

This search was for a specific radius

isRentalbooleanNo

This search was for leases

isSingleFamilybooleanNo

This search was for single-family residences

isWalkTimeSearchbooleanNo

This search contains "walk time" criteria

mlsIdsarray of stringNo

The list of MLS IDs used in the search

neighborhoodNo

The neighborhood the results are within

pointOfInterestpointOfInterestNo

The pointOfInterest used in a point of interest search

postalCodesarray of stringNo

The postal or zip codes passed to the search

priceMaxnumberNo

The maximum price of the search

priceMinnumberNo

The minimum price of the search

radiusGeoLocationgeoNo

The geoLocation used as the center of the radius search

radiusInMilesnumberNo

The radius of the radius search

radiusSearchAddressaddressNo

The address used as the center of a radius search

resultsCountnumberNo

The total number of results returned by the search

schoolElementarystringNo

The elementary school district the user searched within

schoolHighstringNo

The high school district the user searched within

schoolMiddlestringNo

The middle school district the user searched within

searchURLuriNo

The hyperlink to this search

similarTolistingNo

Searched for homes similar to provided listing

sortedByarray of accepted values†No

An array of items the results are sorted by

subdivisionstringNo

The name of the subdivision used in the search

walkTimeStartAddressaddressNo

Start location for the walk in a walk time search

walkTimeStartTimestringNo

Time of day of the walk in a walk time search

yearBuiltMaxnumberNo

The latest year homes in this search were built

yearBuiltMinnumberNo

The earliest year homes in this search were built

† Accepted Values for realestate.search.sortBy

FieldTypeRequiredDescription
priceHighestSorted by price, highest to lowestNo

Sorted by price, highest to lowest

priceLowestSorted by price, lowest to highestNo

Sorted by price, lowest to highest

addressSorted by street addressNo

Sorted by street address

distanceClosestSorted by proximity to radius or point of interestNo

Sorted by proximity to radius or point of interest

distanceFurthestSorted by distance from radius of point of interest, furthest to closestNo

Sorted by distance from radius of point of interest, furthest to closest

photoCountHighestSorted by number of photos, most to leastNo

Sorted by number of photos, most to least

photoCountLowestSorted by number of photos, least to mostNo

Sorted by number of photos, least to most

bedroomsHighestSorted by bathrooms, most to leastNo

Sorted by bathrooms, most to least

bedroomsLowestSorted by bedrooms, least to mostNo

Sorted by bedrooms, least to most

bathroomsHighestSorted by bathrooms, most to leastNo

Sorted by bathrooms, most to least

bathroomsLowestSorted by bathrooms, least to mostNo

Sorted by bathrooms, least to most

squareFeetHighestSorted by square feet, highest to lowestNo

Sorted by square feet, highest to lowest

squareFeetLowestSorted by square feet, lowest to highestNo

Sorted by square feet, lowest to highest

yearBuiltNewestSorted by year built, newest to oldestNo

Sorted by year built, newest to oldest

yearBuiltOldestSorted by year built, oldest to newestNo

Sorted by year built, oldest to newest

dateListedNewestSorted by listing date, newest to oldestNo

Sorted by listing date, newest to oldest

dateListedOldestSorted by listing date, oldest to newestNo

Sorted by listing date, oldest to newest

featuredListingsSorted by featured listingsNo

Sorted by featured listings

otherAny unlisted fieldNo

Any unlisted field

1/* Example use of the search object */
2
3// Create the search object
4var search = {
5 "bedroomsMin": 4,
6 "fullBathsMin": 2,
7 "isCondo": true,
8 "isSingeFamily": true,
9 "priceMax": 450000,
10 "searchURL": "http://www.yourwebsite.com/listings?beds=4&baths=2&condo=1&single=1&minprice=450000"
11};
12
13var data = {
14 "search": search
15};
16
17// Attach the save event to the saveButton click
18document.getElementById('saveButton').addEventListener('click', function () {
19 brytescore( "realestate.savedSearch", data );
20});
21
22// Log the viewedListing event on document load
23document.addEventListener('DOMContentLoaded', function() {
24 brytescore( "realestate.searchedListings", data );
25});

Updated July 25, 2026