Market Stats API

This function is now included in the the "Market Stats" Widget.
NOTE: This is an advanced function, you will need skills using JavaScript, HTML and CSS.

There are 2 methods available:

  1. Summary Totals
    Get Market Stats Totals based on a filter.
    For example:
    • Summary of Markets Stats for a Neighborhood
  2. 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:

  1. First, you will need the following:
    1. Your Account API-Authcode (See Account Settings)
    2. The mls_id and filter names of the fields you wish to use
  2. 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.
  3. Add the appropriate JavaScript block to your page and customize.

IMPORTANT
Remember that JavaScript libraries will need to load before the APIs are called.
Either load libraries first, or add handlers to wait.

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.

Updated on March 1, 2025
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Buying Buddy Support