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=edmonton&country_abbreviation=ca&province_abbreviation=ab&results_per_page=1&select=demographic_education_level_no_certificate_diploma_or_degree_percent,demographic_education_level_high_school_diploma_or_equivalency_certificate_percent,demographic_education_level_apprenticeship_or_trades_certificate_or_diploma_percent,demographic_education_level_bachelors_degree_percent,demographic_education_level_degree_in_medicine_dentistry_veterinary_medicine_or_optometry_percent,demographic_education_level_masters_degree_percent,demographic_education_level_earned_doctorate_percent"
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', 'edmonton'); url.searchParams.set('country_abbreviation', 'ca'); url.searchParams.set('province_abbreviation', 'ab'); url.searchParams.set('results_per_page', '1'); url.searchParams.set('select', 'demographic_education_level_no_certificate_diploma_or_degree_percent,demographic_education_level_high_school_diploma_or_equivalency_certificate_percent,demographic_education_level_apprenticeship_or_trades_certificate_or_diploma_percent,demographic_education_level_bachelors_degree_percent,demographic_education_level_degree_in_medicine_dentistry_veterinary_medicine_or_optometry_percent,demographic_education_level_masters_degree_percent,demographic_education_level_earned_doctorate_percent'); 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": 0.9000000953674316, "data": [ { "address": "433 1818 Rutherford Road SW", "demographic_education_level_apprenticeship_or_trades_certificate_or_diploma_percent": 0.09378763288259506, "demographic_education_level_bachelors_degree_percent": 0.2571210563182831, "demographic_education_level_degree_in_medicine_dentistry_veterinary_medicine_or_optometry_percent": 0.012262598611414433, "demographic_education_level_earned_doctorate_percent": 0.015985455363988876, "demographic_education_level_high_school_diploma_or_equivalency_certificate_percent": 0.3576696217060089, "demographic_education_level_masters_degree_percent": 0.07530715316534042, "demographic_education_level_no_certificate_diploma_or_degree_percent": 0.1878664791584015, "property_id": "10001f3bac65c527" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 503108 }, "price_quote": false, "result_total": 503108, "time_ms": 95, "ui_info": { "city": "Edmonton", "city_id": "ba0db02120e894c9", "city_link": "ca/ab/edmonton", "city_slug": "edmonton", "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" } }