Practical examples for using the Houski API.
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=calgary&country_abbreviation=ca&page=1&property_type_eq=Land&province_abbreviation=ab&results_per_page=3&select=address,land_area_sq_m,zoning,assessment_value,property_taxes"
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', 'calgary');
url.searchParams.set('country_abbreviation', 'ca');
url.searchParams.set('page', '1');
url.searchParams.set('property_type_eq', 'Land');
url.searchParams.set('province_abbreviation', 'ab');
url.searchParams.set('results_per_page', '3');
url.searchParams.set('select', 'address,land_area_sq_m,zoning,assessment_value,property_taxes');
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.2599999904632568,
"data": [
{
"address": "95 Creekview Garden SW",
"assessment_value": 613500,
"land_area_sq_m": 295.1000061035156,
"property_id": "100356cd86faab90",
"property_taxes": 3792,
"zoning": "R-G"
},
{
"address": "176 Carringwood Way NW",
"assessment_value": 143000,
"land_area_sq_m": 207.1999969482422,
"property_id": "10051cb22ed0ecc3",
"property_taxes": 884,
"zoning": "R-G"
},
{
"address": "37 Starling Place NW",
"assessment_value": 208000,
"land_area_sq_m": 312.8999938964844,
"property_id": "10064890b0e692d0",
"property_taxes": 1286,
"zoning": "R-G"
}
],
"error": "",
"pagination": {
"current_page": 1,
"has_next_page": true,
"has_previous_page": false,
"page_total": 5976
},
"price_quote": false,
"result_total": 17928,
"time_ms": 59,
"ui_info": {
"city": "Calgary",
"city_id": "6ec95b53075d062c",
"city_link": "ca/ab/calgary",
"city_slug": "calgary",
"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"
}
}