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=vancouver&country_abbreviation=ca&demographic_age_25_to_29_years_percent_gt=0.15&demographic_employment_industries_professional_scientific_and_technical_services_percent_gte=0.1&province_abbreviation=bc&select=demographic_age_25_to_29_years_percent,demographic_employment_industries_professional_scientific_and_technical_services_percent,demographic_education_level_bachelors_degree_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('city', 'vancouver'); url.searchParams.set('country_abbreviation', 'ca'); url.searchParams.set('demographic_age_25_to_29_years_percent_gt', '0.15'); url.searchParams.set('demographic_employment_industries_professional_scientific_and_technical_services_percent_gte', '0.1'); url.searchParams.set('province_abbreviation', 'bc'); url.searchParams.set('select', 'demographic_age_25_to_29_years_percent,demographic_employment_industries_professional_scientific_and_technical_services_percent,demographic_education_level_bachelors_degree_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": 6.000000953674316, "data": [ { "address": "1105 565 Smithe Street", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_age_25_to_29_years_percent": 0.19465649127960205, "demographic_education_level_bachelors_degree_percent": 0.5091533064842224, "demographic_employment_industries_professional_scientific_and_technical_services_percent": 0.23560209572315216, "den": 0, "interior_sq_m": 67.16886901855469, "property_id": "100120044d260142" }, { "address": "212 1929 3 Avenue W", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_age_25_to_29_years_percent": 0.16949152946472168, "demographic_education_level_bachelors_degree_percent": 0.4888888895511627, "demographic_employment_industries_professional_scientific_and_technical_services_percent": 0.1411764770746231, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "10026618466d3d48" }, { "address": "816 1330 Burrard Street", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_age_25_to_29_years_percent": 0.21311475336551663, "demographic_education_level_bachelors_degree_percent": 0.3703703582286834, "demographic_employment_industries_professional_scientific_and_technical_services_percent": 0.151162788271904, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "1003178db4bbff69" }, { "address": "704 2324 1 Avenue W", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_age_25_to_29_years_percent": 0.2028985470533371, "demographic_education_level_bachelors_degree_percent": 0.39855071902275085, "demographic_employment_industries_professional_scientific_and_technical_services_percent": 0.2888889014720917, "den": 0, "interior_sq_m": 112.2268295288086, "property_id": "10033c2781960eca" }, { "address": "305 1790 10 Avenue W", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_age_25_to_29_years_percent": 0.1818181872367859, "demographic_education_level_bachelors_degree_percent": 0.5189620852470398, "demographic_employment_industries_professional_scientific_and_technical_services_percent": 0.17204301059246063, "den": 0, "interior_sq_m": 62.430816650390625, "property_id": "10047e40825d85db" }, { "address": "1207 1133 Homer Street", "bathroom_full": 2, "bathroom_half": 0, "bedroom": 3, "demographic_age_25_to_29_years_percent": 0.15458936989307404, "demographic_education_level_bachelors_degree_percent": 0.4679144322872162, "demographic_employment_industries_professional_scientific_and_technical_services_percent": 0.21935483813285828, "den": 0, "interior_sq_m": 58.15727996826172, "property_id": "10057b4a0acdb132" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 11777 }, "price_quote": false, "result_total": 70657, "time_ms": 2263, "ui_info": { "city": "Vancouver", "city_id": "3d4b9ab2229768be", "city_link": "ca/bc/vancouver", "city_slug": "vancouver", "country": "Canada", "country_abbreviation": "CA", "country_abbreviation_id": "9ace2b6431b7f1be", "country_abbreviation_link": "ca", "country_slug": "canada", "province": "British Columbia", "province_abbreviation": "BC", "province_abbreviation_id": "84b27e64bc119a2", "province_abbreviation_link": "ca/bc", "province_slug": "british-columbia" } }