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&country_abbreviation=ca&demographic_employment_industries_real_estate_and_rental_and_leasing_percent_gt=0.05&select=demographic_employment_industries_real_estate_and_rental_and_leasing_percent,interior_sq_m,bedroom,den,bathroom_full,bathroom_half"
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('demographic_employment_industries_real_estate_and_rental_and_leasing_percent_gt', '0.05'); url.searchParams.set('select', 'demographic_employment_industries_real_estate_and_rental_and_leasing_percent,interior_sq_m,bedroom,den,bathroom_full,bathroom_half'); 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": 4.800000190734863, "data": [ { "address": "31 Hawkside Park NW", "bathroom_full": 2, "bathroom_half": 1, "bedroom": 1, "demographic_employment_industries_real_estate_and_rental_and_leasing_percent": 0.0634920671582222, "den": 1, "interior_sq_m": 112.87625122070312, "property_id": "10000f97f5cb7b9f" }, { "address": "6 2132 Galtcrescent Rue", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_employment_industries_real_estate_and_rental_and_leasing_percent": 0.05263157933950424, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "100020e698a2fb97" }, { "address": "403 400 Kingston Road", "bathroom_full": 3, "bathroom_half": 0, "bedroom": 2, "demographic_employment_industries_real_estate_and_rental_and_leasing_percent": 0.050847455859184265, "den": 0, "interior_sq_m": 102.09959411621094, "property_id": "10002bf78e847f9d" }, { "address": "13264 15 Avenue", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_employment_industries_real_estate_and_rental_and_leasing_percent": 0.06451612710952759, "den": 0, "interior_sq_m": 284.6548156738281, "property_id": "10002c1a33507f4" }, { "address": "1698 Ira Morgan Way", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_employment_industries_real_estate_and_rental_and_leasing_percent": 0.05050504952669144, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "100052ea37da91c7" }, { "address": "7850 Nixon Road", "bathroom_full": 3, "bathroom_half": 0, "bedroom": 4, "demographic_employment_industries_real_estate_and_rental_and_leasing_percent": 0.0535714291036129, "den": 0, "interior_sq_m": 189.1505126953125, "property_id": "100053f16c7b9136" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 197603 }, "price_quote": false, "result_total": 1185618, "time_ms": 176, "ui_info": { "country": "Canada", "country_abbreviation": "CA", "country_abbreviation_id": "9ace2b6431b7f1be", "country_abbreviation_link": "ca", "country_slug": "canada" } }