!

API recipes

Practical examples for using the Houski API.

Examples

Find areas with poor broadband coverage

Programming language

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

Find areas with poor broadband coverage
Internet score is derived from public broadband coverage data. Score below 5 means underserved - ideal for satellite ISP marketing (Starlink, Xplore), fixed-wireless expansion, and rural connectivity grants.
Request
Shell session
curl -X GET "https://api.houski.ca/properties?api_key=YOUR_API_KEY&country_abbreviation=ca&page=1&property_type_in=House,Townhouse&province_abbreviation=sk&results_per_page=5&score_internet_lt=5&select=address,city,score_internet,demographic_municipal_population_density_sq_km,estimate_list_price"
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('https://api.houski.ca/properties');
    url.searchParams.set('api_key', 'YOUR_API_KEY');
    url.searchParams.set('country_abbreviation', 'ca');
    url.searchParams.set('page', '1');
    url.searchParams.set('property_type_in', 'House,Townhouse');
    url.searchParams.set('province_abbreviation', 'sk');
    url.searchParams.set('results_per_page', '5');
    url.searchParams.set('score_internet_lt', '5');
    url.searchParams.set('select', 'address,city,score_internet,demographic_municipal_population_density_sq_km,estimate_list_price');

    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": 1.6499998569488523,
  "data": [
    {
      "address": "Tomlinson 3 Quarters",
      "city": "Bengough No. 40",
      "estimate_list_price": 238699,
      "property_id": "100984a25dcafe10",
      "score_internet": 2
    },
    {
      "address": "Highway 220 West Of Bulyea",
      "city": "McKillop No. 220",
      "demographic_municipal_population_density_sq_km": 1.399999976158142,
      "estimate_list_price": 249612,
      "property_id": "100b579d103b4c33",
      "score_internet": 2
    },
    {
      "address": "46 Airport Drive",
      "city": "Candle Lake",
      "demographic_municipal_population_density_sq_km": 18.399999618530273,
      "estimate_list_price": 302363,
      "property_id": "101923963eebbfa5",
      "score_internet": 4
    },
    {
      "address": "107 Sandy Beach",
      "city": "Britannia No. 502",
      "demographic_municipal_population_density_sq_km": 4.099999904632568,
      "estimate_list_price": 460284,
      "property_id": "101c106555cd09e5",
      "score_internet": 4
    },
    {
      "address": "18 Cessna Street E",
      "city": "Candle Lake",
      "demographic_municipal_population_density_sq_km": 18.399999618530273,
      "estimate_list_price": 155154,
      "property_id": "1020adf9269a0ebd",
      "score_internet": 4
    }
  ],
  "error": "",
  "pagination": {
    "current_page": 1,
    "has_next_page": true,
    "has_previous_page": false,
    "page_total": 1587
  },
  "price_quote": false,
  "result_total": 7933,
  "time_ms": 60,
  "ui_info": {
    "country": "Canada",
    "country_abbreviation": "CA",
    "country_abbreviation_id": "9ace2b6431b7f1be",
    "country_abbreviation_link": "ca",
    "country_slug": "canada",
    "province": "Saskatchewan",
    "province_abbreviation": "SK",
    "province_abbreviation_id": "9e918fc836441859",
    "province_abbreviation_link": "ca/sk",
    "province_slug": "saskatchewan"
  }
}