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_transportation_public_transit_percent_gt=0.20&select=demographic_transportation_public_transit_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_transportation_public_transit_percent_gt', '0.20'); url.searchParams.set('select', 'demographic_transportation_public_transit_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": "4140 Adam Rue", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_transportation_public_transit_percent": 0.3243243098258972, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "1000019f9b0cf9c8" }, { "address": "41 2202 Rosemont Boulevard", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_transportation_public_transit_percent": 0.3382352888584137, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "10000874d2ccb6ea" }, { "address": "2202 62 Forest Manor Road", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 1, "demographic_transportation_public_transit_percent": 0.4784946143627167, "den": 1, "interior_sq_m": 74.22891235351562, "property_id": "10000a939ca95e87" }, { "address": "20 2880 De Darlington Place", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_transportation_public_transit_percent": 0.4642857015132904, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "10000f273ba648" }, { "address": "504 35 Walmer Road", "bathroom_full": 4, "bathroom_half": 0, "bedroom": 3, "demographic_transportation_public_transit_percent": 0.523809552192688, "den": 1, "interior_sq_m": 185.7116241455078, "property_id": "100016a8f4f4f1a9" }, { "address": "1165 Saintaubin Rue", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_transportation_public_transit_percent": 0.25, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "1000192535c67928" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 556318 }, "price_quote": false, "result_total": 3337907, "time_ms": 83, "ui_info": { "country": "Canada", "country_abbreviation": "CA", "country_abbreviation_id": "9ace2b6431b7f1be", "country_abbreviation_link": "ca", "country_slug": "canada" } }