There are 2 methods available:
- Summary Totals
Get Market Stats Totals based on a filter.
For example:- Summary of Markets Stats for a Neighborhood
- Comparison Table
Create a comparison table with Market Stats Totals for all the values in a field.
For example:- See comparison data for Property Types
- Compare Neighborhoods in this city
- Compare Cities in this Zip Code
In each case, the following 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:
- Your Account API-Authcode (See Account Settings)
- The mls_id and filter names of the fields you wish to use
- Decide how to display values in your HTML.
- Summary Totals: Gets values and updates the named span or div element in your html.
- Comparison Table: Adds rows to a named table on your page.
- Add the appropriate JavaScript block to your page and customize.
Summary Totals
This method gets market data totals for listings defined by the filter.
Create a filter using the using the Wizard. Copy the filter string generated and use as needed (remove and quotation marks around the filter string).
Comparison Table
This method creates a comparison of data across values in the following fields:
- 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.