Display Market Data based on filters
There are 2 methods available:
- Display summary market data based on a filter
- e.g. "here is some summary data for this market.."
- Create a comparison table
This method displays a table of data comparing market data across a group of field values- e.g. "here is some some summary data across property types.."
In each case, the following summary data is provided:
- Count of active properties (num_props)
- Average price (price_avg)
- Highest price (price_max)
- Lowest price (price_min)
- Average days on market (age_avg)
- Average number of bedrooms (bedrooms_avg)
- Lowest number of bedrooms (beds_min)
- Highest number of bedrooms (beds_max)
- Lowest number of bathrooms (baths_min)
- Highest number of bathrooms (baths_max)
Overview
The general approach is as follows:
- First, you will need the following:
- The API-Authode ("auth_key") from your Account Settings
- The mls_id and filter names of the fields you wish to use.
- Decide how to display values in your HTML. You will use unique CSS class names in the <span> or <div> which will show the data. On runtime, the JavaScript replaces those elements with the data.
- Add the appropriate JavaScript block to your page and customize.
Summary Market Data
Display summary of the following based on a filter.
The filter should contain:
- mls_id (mandatory)
- + any other filter options such as a city, area, or feature
You can create a filter using any of the Widget Wizards. On the last page of the Wizard, simply copy the filter string generated and use as needed (remove and quotation marks around the filter string).
Market Comparison Data
This method allows comparison of summary data across the following fields (the 'group'):
- City (city)
- Neighborhood / subdivision (sub_area)
- Zip (zip_code)
- Type of Property (property_type)
- Property Status (listing_status)
Example Code
See the Pen (#ex3) Example of Market Summary Stats API Method by Buying Buddy (@bluefiregroup) on CodePen.