!

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


Sold in the last year
Gets properties sold 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_sold_gte=2024-06-27&select=estimate_sale_date_sold,interior_sq_m,estimate_sale_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_sold_gte', '2024-06-27');
    url.searchParams.set('select', 'estimate_sale_date_sold,interior_sq_m,estimate_sale_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_sale_date_sold": "2025-03-21",
      "estimate_sale_price": 266907,
      "interior_sq_m": 97.2686767578125,
      "property_id": "10001f3bac65c527"
    },
    {
      "address": "1 9877 Seventh Street",
      "estimate_sale_date_sold": "2024-07-03",
      "estimate_sale_price": 946690,
      "interior_sq_m": 173.07691955566406,
      "property_id": "100028f0efcf409c"
    },
    {
      "address": "8576 Cushing Place SW SW",
      "estimate_sale_date_sold": "2025-05-30",
      "estimate_sale_price": 477375,
      "interior_sq_m": 140.9327392578125,
      "property_id": "10003670d98a296b"
    },
    {
      "address": "2419 Lomond Place",
      "estimate_sale_date_sold": "2025-04-11",
      "estimate_sale_price": 796410,
      "interior_sq_m": 144.9275360107422,
      "property_id": "10004d296b85e8d6"
    },
    {
      "address": "6162 Lawrence Street",
      "estimate_sale_date_sold": "2024-06-27",
      "estimate_sale_price": 797521,
      "interior_sq_m": 112.2268295288086,
      "property_id": "10007128027e4a16"
    },
    {
      "address": "104 470 Gordon Krantz Avenue",
      "estimate_sale_date_sold": "2025-04-26",
      "estimate_sale_price": 517677,
      "interior_sq_m": 112.2268295288086,
      "property_id": "10007c22faee6513"
    }
  ],
  "error": "",
  "pagination": {
    "current_page": 1,
    "has_next_page": true,
    "has_previous_page": false,
    "page_total": 99001
  },
  "price_quote": false,
  "result_total": 594002,
  "time_ms": 184,
  "ui_info": {
    "country": "Canada",
    "country_abbreviation": "CA",
    "country_abbreviation_id": "9ace2b6431b7f1be",
    "country_abbreviation_link": "ca",
    "country_slug": "canada"
  }
}