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_language_most_spoken_first,demographic_language_most_spoken_second,demographic_language_most_spoken_third,demographic_language_most_spoken_fourth,demographic_language_most_spoken_fifth,demographic_language_most_spoken_first_percent,demographic_language_most_spoken_second_percent,demographic_language_most_spoken_third_percent,demographic_language_most_spoken_fourth_percent,demographic_language_most_spoken_fifth_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_language_most_spoken_first,demographic_language_most_spoken_second,demographic_language_most_spoken_third,demographic_language_most_spoken_fourth,demographic_language_most_spoken_fifth,demographic_language_most_spoken_first_percent,demographic_language_most_spoken_second_percent,demographic_language_most_spoken_third_percent,demographic_language_most_spoken_fourth_percent,demographic_language_most_spoken_fifth_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": 1.2000001668930054, "data": [ { "address": "433 1818 Rutherford Road SW", "demographic_language_most_spoken_fifth": "Yue (Cantonese)", "demographic_language_most_spoken_fifth_percent": 0.014019625261425972, "demographic_language_most_spoken_first": "English", "demographic_language_most_spoken_first_percent": 0.745883047580719, "demographic_language_most_spoken_fourth": "Mandarin", "demographic_language_most_spoken_fourth_percent": 0.014394348487257956, "demographic_language_most_spoken_second": "Punjabi (Panjabi)", "demographic_language_most_spoken_second_percent": 0.030572377145290375, "demographic_language_most_spoken_third": "Tagalog (Pilipino, Filipino)", "demographic_language_most_spoken_third_percent": 0.022858085110783577, "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": 97, "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" } }