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_employment_industries_agriculture_forestry_fishing_and_hunting_percent,demographic_employment_industries_mining_quarrying_and_oil_and_gas_extraction_percent,demographic_employment_industries_utilities_percent,demographic_employment_industries_construction_percent,demographic_employment_industries_manufacturing_percent,demographic_employment_industries_wholesale_trade_percent,demographic_employment_industries_retail_trade_percent,demographic_employment_industries_transportation_and_warehousing_percent,demographic_employment_industries_information_and_cultural_industries_percent,demographic_employment_industries_finance_and_insurance_percent,demographic_employment_industries_real_estate_and_rental_and_leasing_percent,demographic_employment_industries_professional_scientific_and_technical_services_percent,demographic_employment_industries_management_of_companies_and_enterprises_percent,demographic_employment_industries_administrative_and_support_waste_management_and_remediation_services_percent,demographic_employment_industries_educational_services_percent,demographic_employment_industries_health_care_and_social_assistance_percent,demographic_employment_industries_arts_entertainment_and_recreation_percent,demographic_employment_industries_accommodation_and_food_services_percent,demographic_employment_industries_other_services_percent,demographic_employment_industries_public_administration_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_employment_industries_agriculture_forestry_fishing_and_hunting_percent,demographic_employment_industries_mining_quarrying_and_oil_and_gas_extraction_percent,demographic_employment_industries_utilities_percent,demographic_employment_industries_construction_percent,demographic_employment_industries_manufacturing_percent,demographic_employment_industries_wholesale_trade_percent,demographic_employment_industries_retail_trade_percent,demographic_employment_industries_transportation_and_warehousing_percent,demographic_employment_industries_information_and_cultural_industries_percent,demographic_employment_industries_finance_and_insurance_percent,demographic_employment_industries_real_estate_and_rental_and_leasing_percent,demographic_employment_industries_professional_scientific_and_technical_services_percent,demographic_employment_industries_management_of_companies_and_enterprises_percent,demographic_employment_industries_administrative_and_support_waste_management_and_remediation_services_percent,demographic_employment_industries_educational_services_percent,demographic_employment_industries_health_care_and_social_assistance_percent,demographic_employment_industries_arts_entertainment_and_recreation_percent,demographic_employment_industries_accommodation_and_food_services_percent,demographic_employment_industries_other_services_percent,demographic_employment_industries_public_administration_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": 2.200000047683716, "data": [ { "address": "433 1818 Rutherford Road SW", "demographic_employment_industries_accommodation_and_food_services_percent": 0.06625417619943619, "demographic_employment_industries_administrative_and_support_waste_management_and_remediation_services_percent": 0.04429426044225693, "demographic_employment_industries_agriculture_forestry_fishing_and_hunting_percent": 0.004521159455180168, "demographic_employment_industries_arts_entertainment_and_recreation_percent": 0.017682133242487907, "demographic_employment_industries_construction_percent": 0.09503795951604845, "demographic_employment_industries_educational_services_percent": 0.07307803630828857, "demographic_employment_industries_finance_and_insurance_percent": 0.034325242042541504, "demographic_employment_industries_health_care_and_social_assistance_percent": 0.1446302980184555, "demographic_employment_industries_information_and_cultural_industries_percent": 0.013928540982306004, "demographic_employment_industries_management_of_companies_and_enterprises_percent": 0.001347923302091658, "demographic_employment_industries_manufacturing_percent": 0.05528357997536659, "demographic_employment_industries_mining_quarrying_and_oil_and_gas_extraction_percent": 0.019142383709549904, "demographic_employment_industries_other_services_percent": 0.04733644798398018, "demographic_employment_industries_professional_scientific_and_technical_services_percent": 0.0769907608628273, "demographic_employment_industries_public_administration_percent": 0.06763017922639847, "demographic_employment_industries_real_estate_and_rental_and_leasing_percent": 0.018683714792132378, "demographic_employment_industries_retail_trade_percent": 0.11810242384672164, "demographic_employment_industries_transportation_and_warehousing_percent": 0.058400653302669525, "demographic_employment_industries_utilities_percent": 0.009500987827777864, "demographic_employment_industries_wholesale_trade_percent": 0.03382913023233414, "property_id": "10001f3bac65c527" } ], "error": "", "pagination": { "current_page": 1, "has_next_page": true, "has_previous_page": false, "page_total": 503195 }, "price_quote": false, "result_total": 503195, "time_ms": 146, "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" } }