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=2024-12-04&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', '2024-12-04'); 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.830000042915344, "data": [ { "address": "159 McKenzie Towne Gate SE", "community": "McKenzie Towne", "interior_sq_m": 120.53511810302734, "latitude": 50.913719177246094, "listings": [ { "expand_estimate_list_price": 459000, "expand_listing_date": "2025-01-11", "expand_listing_event": "Listed", "property_id": "13670cd70d7a20b0" } ], "longitude": -113.9580307006836, "property_id": "13670cd70d7a20b0" }, { "address": "241 Elgin Meadows Park SE", "community": "McKenzie Towne", "interior_sq_m": 130.62059020996094, "latitude": 50.90977478027344, "listings": [ { "expand_estimate_list_price": 570000, "expand_listing_date": "2025-01-11", "expand_listing_event": "Listed", "property_id": "19c1e8ba2d2005a" } ], "longitude": -113.95014190673828, "property_id": "19c1e8ba2d2005a" }, { "address": "2221 10 Prestwick Bay SE", "community": "McKenzie Towne", "interior_sq_m": 77.4804916381836, "latitude": 50.92830276489258, "listings": [ { "expand_estimate_list_price": 309900, "expand_listing_date": "2025-01-08", "expand_listing_event": "Listed", "property_id": "24bd101a9b32624e" } ], "longitude": -113.95933532714844, "property_id": "24bd101a9b32624e" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 14 }, "price_quote": false, "result_total": 42, "time_ms": 321, "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" } }