!

API recipes

Practical examples for using the Houski API.

Examples

Find walkout basement suite candidates

Programming language

Select the programming language you want to display the code examples in.

Find walkout basement suite candidates
Walkout capability and separate entrance are tracked per basement - both prerequisites for legal secondary suite conversion. Prime leads for renovation contractors, income-property investors, and mortgage brokers.
Request
Shell session
curl -X GET "http://127.0.0.1:8080/properties?api_key=YOUR_API_KEY&basement_is_walkout_eq=true&city=calgary&country_abbreviation=ca&page=1&property_type_eq=House&province_abbreviation=ab&results_per_page=5&select=address,basement_has_entrance,basement_is_walkout,basement_type,interior_sq_m,estimate_list_price,estimate_rent_monthly"
TypeScript code
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('http://127.0.0.1:8080/properties');
    url.searchParams.set('api_key', 'YOUR_API_KEY');
    url.searchParams.set('basement_is_walkout_eq', 'true');
    url.searchParams.set('city', 'calgary');
    url.searchParams.set('country_abbreviation', 'ca');
    url.searchParams.set('page', '1');
    url.searchParams.set('property_type_eq', 'House');
    url.searchParams.set('province_abbreviation', 'ab');
    url.searchParams.set('results_per_page', '5');
    url.searchParams.set('select', 'address,basement_has_entrance,basement_is_walkout,basement_type,interior_sq_m,estimate_list_price,estimate_rent_monthly');

    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);
})();
Response
JSON
{
  "cache_hit": false,
  "cost_cents": 3.0999999046325684,
  "data": [
    {
      "address": "6 1744 7 Street SW",
      "basement_has_entrance": true,
      "basement_is_walkout": true,
      "basement_type": "Full",
      "estimate_list_price": 821955,
      "estimate_rent_monthly": 3204,
      "interior_sq_m": 126.53394317626952,
      "property_id": "10004f7afe0c1946"
    },
    {
      "address": "384 Copperpond Landng SE",
      "basement_has_entrance": true,
      "basement_is_walkout": true,
      "basement_type": "Full",
      "estimate_list_price": 448902,
      "estimate_rent_monthly": 2442,
      "interior_sq_m": 126.53394317626952,
      "property_id": "10007f9761f49940"
    },
    {
      "address": "239 Dalhurst Way NW",
      "basement_has_entrance": true,
      "basement_is_walkout": true,
      "basement_type": "Full",
      "estimate_list_price": 1099481,
      "estimate_rent_monthly": 3204,
      "interior_sq_m": 112.41268157958984,
      "property_id": "100086f6bc064d3f"
    },
    {
      "address": "52 Cedargrove Way SW",
      "basement_has_entrance": true,
      "basement_is_walkout": true,
      "basement_type": "Full",
      "estimate_list_price": 625630,
      "estimate_rent_monthly": 2386,
      "interior_sq_m": 119.8449249267578,
      "property_id": "1000c277cd905d3b"
    },
    {
      "address": "28 Sundown Gr SE",
      "basement_has_entrance": true,
      "basement_is_walkout": true,
      "basement_type": "Full",
      "estimate_list_price": 685316,
      "estimate_rent_monthly": 2875,
      "interior_sq_m": 177.81494140625,
      "property_id": "1001109ab2aebbc0"
    }
  ],
  "error": "",
  "pagination": {
    "current_page": 1,
    "has_next_page": true,
    "has_previous_page": false,
    "page_total": 79750
  },
  "price_quote": false,
  "result_total": 398750,
  "time_ms": 103,
  "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"
  }
}