This page contains examples of common use cases for the Houski API.
You can copy and paste the code examples into your own application.
Select the programming language you want to display the code examples in.
curl -X GET "https://api.houski.ca/properties?api_key=YOUR_API_KEY&city=toronto&country_abbreviation=ca&expand=listings&expand_listing_date_gt=2025-04-28&expand_listing_event_eq=Price decrease&filter_expand_match=all&province_abbreviation=on"
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('city', 'toronto'); url.searchParams.set('country_abbreviation', 'ca'); url.searchParams.set('expand', 'listings'); url.searchParams.set('expand_listing_date_gt', '2025-04-28'); url.searchParams.set('expand_listing_event_eq', 'Price decrease'); url.searchParams.set('filter_expand_match', 'all'); url.searchParams.set('province_abbreviation', 'on'); 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); })();
{ "cache_hit": false, "cost_cents": 1.28000009059906, "data": [ { "address": "311 211 Randolph Road", "listings": [ { "expand_estimate_list_price": 565000, "expand_listing_date": "2025-05-27", "expand_listing_event": "Price decrease", "property_id": "103a9ea463a501dc" }, { "expand_estimate_list_price": 539000, "expand_listing_date": "2025-06-10", "expand_listing_event": "Price decrease", "property_id": "103a9ea463a501dc" } ], "property_id": "103a9ea463a501dc" }, { "address": "78 Wheeler Avenue", "listings": [ { "expand_estimate_list_price": 2149000, "expand_listing_date": "2025-06-22", "expand_listing_event": "Price decrease", "property_id": "10808baf8477b76e" } ], "property_id": "10808baf8477b76e" }, { "address": "707 19 Grand Trunk Crescent", "listings": [ { "expand_estimate_list_price": 520000, "expand_listing_date": "2025-06-16", "expand_listing_event": "Price decrease", "property_id": "109644932243c52e" } ], "property_id": "109644932243c52e" }, { "address": "330 25 Bamburgh Circle", "listings": [ { "expand_estimate_list_price": 475000, "expand_listing_date": "2025-06-19", "expand_listing_event": "Price decrease", "property_id": "109fedf69fe48c1b" } ], "property_id": "109fedf69fe48c1b" }, { "address": "96 Highfield Road", "listings": [ { "expand_estimate_list_price": 1549900, "expand_listing_date": "2025-05-15", "expand_listing_event": "Price decrease", "property_id": "10a6fa9e7321d355" }, { "expand_estimate_list_price": 1490000, "expand_listing_date": "2025-06-15", "expand_listing_event": "Price decrease", "property_id": "10a6fa9e7321d355" } ], "property_id": "10a6fa9e7321d355" }, { "address": "1901 3151 Bridletowne Circle", "listings": [ { "expand_estimate_list_price": 485000, "expand_listing_date": "2025-06-20", "expand_listing_event": "Price decrease", "property_id": "10ae80cc9ba77db7" } ], "property_id": "10ae80cc9ba77db7" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 1003 }, "price_quote": false, "result_total": 6013, "time_ms": 610, "ui_info": { "city": "Toronto", "city_id": "6cdbdee2492718ed", "city_link": "ca/on/toronto", "city_slug": "toronto", "country": "Canada", "country_abbreviation": "CA", "country_abbreviation_id": "9ace2b6431b7f1be", "country_abbreviation_link": "ca", "country_slug": "canada", "province": "Ontario", "province_abbreviation": "ON", "province_abbreviation_id": "146699ee774499d3", "province_abbreviation_link": "ca/on", "province_slug": "ontario" } }