!

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


Listed in the last year
Gets properties listed for sale in the last year.
Request
Shell session
curl -X GET "https://api.houski.ca/properties?api_key=YOUR_API_KEY&country_abbreviation=ca&estimate_sale_date_listed_gte=2024-06-28&select=estimate_sale_date_listed,interior_sq_m,estimate_list_price"
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('estimate_sale_date_listed_gte', '2024-06-28');
    url.searchParams.set('select', 'estimate_sale_date_listed,interior_sq_m,estimate_list_price');

    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": 3.0,
  "data": [
    {
      "address": "433 1818 Rutherford Road SW",
      "estimate_list_price": 263308,
      "estimate_sale_date_listed": "2025-03-09",
      "interior_sq_m": 97.2686767578125,
      "property_id": "10001f3bac65c527"
    },
    {
      "address": "8576 Cushing Place SW SW",
      "estimate_list_price": 481279,
      "estimate_sale_date_listed": "2025-05-15",
      "interior_sq_m": 140.9327392578125,
      "property_id": "10003670d98a296b"
    },
    {
      "address": "2419 Lomond Place",
      "estimate_list_price": 812589,
      "estimate_sale_date_listed": "2025-02-05",
      "interior_sq_m": 144.9275360107422,
      "property_id": "10004d296b85e8d6"
    },
    {
      "address": "104 470 Gordon Krantz Avenue",
      "estimate_list_price": 560316,
      "estimate_sale_date_listed": "2025-03-29",
      "interior_sq_m": 112.2268295288086,
      "property_id": "10007c22faee6513"
    },
    {
      "address": "9199 Avenue Des Erables",
      "estimate_list_price": 403087,
      "estimate_sale_date_listed": "2025-05-14",
      "interior_sq_m": 97.08287048339844,
      "property_id": "10009fae0cce8503"
    },
    {
      "address": "715 Whetter Avenue S",
      "estimate_list_price": 644688,
      "estimate_sale_date_listed": "2025-04-09",
      "interior_sq_m": 112.2268295288086,
      "property_id": "1000cdd0b324a18a"
    }
  ],
  "error": "",
  "pagination": {
    "current_page": 1,
    "has_next_page": true,
    "has_previous_page": false,
    "page_total": 92238
  },
  "price_quote": false,
  "result_total": 553424,
  "time_ms": 2558,
  "ui_info": {
    "country": "Canada",
    "country_abbreviation": "CA",
    "country_abbreviation_id": "9ace2b6431b7f1be",
    "country_abbreviation_link": "ca",
    "country_slug": "canada"
  }
}