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=calgary&community_in=Riverbend,McKenzie Towne&country_abbreviation=ca&expand=listings&expand_listing_date_gt=2025-03-08&filter_expand_match=all&province_abbreviation=ab&results_per_page=3&select=latitude,longitude,community,interior_sq_m"
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', 'calgary'); url.searchParams.set('community_in', 'Riverbend,McKenzie Towne'); url.searchParams.set('country_abbreviation', 'ca'); url.searchParams.set('expand', 'listings'); url.searchParams.set('expand_listing_date_gt', '2025-03-08'); url.searchParams.set('filter_expand_match', 'all'); url.searchParams.set('province_abbreviation', 'ab'); url.searchParams.set('results_per_page', '3'); url.searchParams.set('select', 'latitude,longitude,community,interior_sq_m'); 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.8600000143051147, "data": [ { "address": "103 60 Promenade Way SE", "community": "McKenzie Towne", "interior_sq_m": 103.21441650390624, "latitude": 50.91394805908203, "listings": [ { "expand_estimate_list_price": 335000, "expand_listing_date": "2025-03-23", "expand_listing_event": "Listed", "property_id": "11c049805d12b6d" }, { "expand_estimate_list_price": 330000, "expand_listing_date": "2025-04-16", "expand_listing_event": "Price decrease", "property_id": "11c049805d12b6d" } ], "longitude": -113.9660873413086, "property_id": "11c049805d12b6d" }, { "address": "1309 310 McKenzie Towne Gate SE", "community": "McKenzie Towne", "interior_sq_m": 85.8416976928711, "latitude": 50.91392517089844, "listings": [ { "expand_estimate_list_price": 414500, "expand_listing_date": "2025-03-23", "expand_listing_event": "Price decrease", "property_id": "121c14cbfabad2a5" }, { "expand_estimate_list_price": 399500, "expand_listing_date": "2025-04-02", "expand_listing_event": "Price decrease", "property_id": "121c14cbfabad2a5" } ], "longitude": -113.95619201660156, "property_id": "121c14cbfabad2a5" }, { "address": "537 McKenzie Towne Close SE", "community": "McKenzie Towne", "interior_sq_m": 106.93051147460938, "latitude": 50.912628173828125, "listings": [ { "expand_estimate_list_price": 399900, "expand_listing_date": "2025-03-12", "expand_listing_event": "Price decrease", "property_id": "121e1bf4e4b4554a" }, { "expand_estimate_list_price": 399900, "expand_listing_date": "2025-03-22", "expand_listing_event": "Unlisted", "property_id": "121e1bf4e4b4554a" } ], "longitude": -113.95468139648438, "property_id": "121e1bf4e4b4554a" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 58 }, "price_quote": false, "result_total": 174, "time_ms": 331, "ui_info": { "city": "Calgary", "city_id": "6ec95b53075d062c", "city_link": "ca/ab/calgary", "city_slug": "calgary", "country": "Canada", "country_abbreviation": "CA", "country_abbreviation_id": "9ace2b6431b7f1be", "country_abbreviation_link": "ca", "country_slug": "canada", "province": "Alberta", "province_abbreviation": "AB", "province_abbreviation_id": "aae1f05a0f89d2c7", "province_abbreviation_link": "ca/ab", "province_slug": "alberta" } }