!

Recipes

This page contains examples of common use cases for the Houski API.

You can copy and paste the code examples into your own application.

Programming language

Select the programming language you want to display the code examples in.

Choose a recipe


Quick-selling properties
Gets recently sold properties with low days on market.
Request
Shell session
curl -X GET "https://api.houski.ca/properties?api_key=YOUR_API_KEY&country_abbreviation=ca&demographic_household_type_family_with_children_percent_gte=0.2&estimate_days_on_market_until_sale_lte=21&estimate_sale_date_sold_gte=2025-05-28&select=estimate_sale_date_sold,estimate_days_on_market_until_sale,demographic_household_type_family_with_children_percent,interior_sq_m,bedroom,den,bathroom_full,bathroom_half"
TypeScript code
const houski_recipe_data = async (): Promise<PropertiesResponse> => {

    // You must copy the PropertiesResponse type declarations from the 
    // Houski API documentation to strongly type the response

    const url = new URL('https://api.houski.ca/properties');
    url.searchParams.set('api_key', 'YOUR_API_KEY');
    url.searchParams.set('country_abbreviation', 'ca');
    url.searchParams.set('demographic_household_type_family_with_children_percent_gte', '0.2');
    url.searchParams.set('estimate_days_on_market_until_sale_lte', '21');
    url.searchParams.set('estimate_sale_date_sold_gte', '2025-05-28');
    url.searchParams.set('select', 'estimate_sale_date_sold,estimate_days_on_market_until_sale,demographic_household_type_family_with_children_percent,interior_sq_m,bedroom,den,bathroom_full,bathroom_half');

    const response = await fetch(url);
    const data = await response.json();

    return data;
}

(async () => {
let data: PropertiesResponse = await houski_recipe_data();

// Log the response
console.log(data);
})();
Response
JSON
{
  "cache_hit": false,
  "cost_cents": 6.000000953674316,
  "data": [
    {
      "address": "8576 Cushing Place SW SW",
      "bathroom_full": 3,
      "bathroom_half": 1,
      "bedroom": 4,
      "demographic_household_type_family_with_children_percent": 0.4551495015621186,
      "den": 0,
      "estimate_days_on_market_until_sale": 15,
      "estimate_sale_date_sold": "2025-05-30",
      "interior_sq_m": 140.9327392578125,
      "property_id": "10003670d98a296b"
    },
    {
      "address": "707 26 Norton Avenue",
      "bathroom_full": 2,
      "bathroom_half": 0,
      "bedroom": 2,
      "demographic_household_type_family_with_children_percent": 0.26923078298568726,
      "den": 0,
      "estimate_days_on_market_until_sale": 15,
      "estimate_sale_date_sold": "2025-06-16",
      "interior_sq_m": 83.51913452148438,
      "property_id": "10017b8fb9a9b39c"
    },
    {
      "address": "15022 Swallow Drive",
      "bathroom_full": 2,
      "bathroom_half": 0,
      "bedroom": 4,
      "demographic_household_type_family_with_children_percent": 0.4761904776096344,
      "den": 0,
      "estimate_days_on_market_until_sale": 12,
      "estimate_sale_date_sold": "2025-06-04",
      "interior_sq_m": 191.2857666015625,
      "property_id": "1004a58256bde40f"
    },
    {
      "address": "285 Mockingbird Drive",
      "bathroom_full": 1,
      "bathroom_half": 1,
      "bedroom": 2,
      "demographic_household_type_family_with_children_percent": 0.3050847351551056,
      "den": 1,
      "estimate_days_on_market_until_sale": 13,
      "estimate_sale_date_sold": "2025-06-09",
      "interior_sq_m": 102.09959411621094,
      "property_id": "100529ef86d55f76"
    },
    {
      "address": "1 Hind Avenue",
      "bathroom_full": 2,
      "bathroom_half": 0,
      "bedroom": 3,
      "demographic_household_type_family_with_children_percent": 0.2083333283662796,
      "den": 0,
      "estimate_days_on_market_until_sale": 7,
      "estimate_sale_date_sold": "2025-06-08",
      "interior_sq_m": 112.2268295288086,
      "property_id": "1006fb7914546518"
    },
    {
      "address": "35 Redcastle Street",
      "bathroom_full": 2,
      "bathroom_half": 1,
      "bedroom": 4,
      "demographic_household_type_family_with_children_percent": 0.7037037014961243,
      "den": 2,
      "estimate_days_on_market_until_sale": 21,
      "estimate_sale_date_sold": "2025-06-16",
      "interior_sq_m": 185.7116241455078,
      "property_id": "100fe9e8e370073a"
    }
  ],
  "error": "",
  "pagination": {
    "current_page": 1,
    "has_next_page": true,
    "has_previous_page": false,
    "page_total": 2743
  },
  "price_quote": false,
  "result_total": 16456,
  "time_ms": 225,
  "ui_info": {
    "country": "Canada",
    "country_abbreviation": "CA",
    "country_abbreviation_id": "9ace2b6431b7f1be",
    "country_abbreviation_link": "ca",
    "country_slug": "canada"
  }
}