!

API Recipes

Learn how to use the Houski API with practical examples.

Get automated property valuation

Programming language

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

Get Automated Property Valuation (AVM)
Get an instant automated valuation for a specific property using machine learning models. Note you can visit the URL in the response to see the AVM report.
Request
Shell session
curl -X GET "https://api.houski.ca/avm?api_key=YOUR_API_KEY&avm_type=detailed&country_abbreviation=ca&property_id=10004f7afe0c1946"
TypeScript code
const houski_recipe_data = async (): Promise<AvmResponse> => {

    // You must copy the AvmResponse type declarations from the 
    // Houski API documentation to strongly type the response

    const url = new URL('https://api.houski.ca/avm');
    url.searchParams.set('api_key', 'YOUR_API_KEY');
    url.searchParams.set('avm_type', 'detailed');
    url.searchParams.set('country_abbreviation', 'ca');
    url.searchParams.set('property_id', '10004f7afe0c1946');

    const response = await fetch(url);
    const data = await response.json();

    return data;
}

(async () => {
let data: AvmResponse = await houski_recipe_data();

// Log the response
console.log(data);
})();
Response
JSON
{
  "cache_hit": false,
  "cost_cents": 500.0,
  "data": {
    "address": "6 1744 7 Street SW",
    "bathroom_full": 2,
    "bathroom_half": 0,
    "bedroom": 3,
    "city": "Calgary",
    "comparable_properties": [
      {
        "address": "301 823 19 Avenue SW",
        "distance_km": 0.11489412933588028,
        "estimate_sale_date_sold": "2025-04-28",
        "image": "36426a7ec80c7bda_5dfb12",
        "latitude": 51.035789489746094,
        "list_price": 259900,
        "longitude": -114.08078002929688
      },
      {
        "address": "308 836 Royal Avenue SW",
        "distance_km": 0.15445956587791443,
        "estimate_sale_date_sold": "2025-05-24",
        "image": "fba3ae8b904dfbcb_7eed05",
        "latitude": 51.03544616699219,
        "list_price": 485000,
        "longitude": -114.08116149902344
      },
      {
        "address": "2102 7 Street SW",
        "distance_km": 0.2328130304813385,
        "estimate_sale_date_sold": "2025-05-16",
        "image": "430c9387f766326b_85dc6f",
        "latitude": 51.034027099609375,
        "list_price": 1699000,
        "longitude": -114.07892608642578
      },
      {
        "address": "101 910 18 Avenue SW",
        "distance_km": 0.25221025943756104,
        "estimate_sale_date_sold": "2025-05-16",
        "image": "ed0d284b15cb589a_7192f8",
        "latitude": 51.03719329833984,
        "list_price": 390000,
        "longitude": -114.0824203491211
      },
      {
        "address": "203 1730 5A Street SW",
        "distance_km": 0.2851831316947937,
        "estimate_sale_date_sold": "2025-05-24",
        "image": "93ae7eed8a7e6369_9423f3",
        "latitude": 51.036712646484375,
        "list_price": 519000,
        "longitude": -114.07518005371094
      },
      {
        "address": "103 1730 5A Street SW",
        "distance_km": 0.2851831316947937,
        "estimate_sale_date_sold": "2025-05-21",
        "image": "e7ae33695c32cb3b_567dc5",
        "latitude": 51.036712646484375,
        "list_price": 475000,
        "longitude": -114.07518005371094
      },
      {
        "address": "205 1500 7 Street SW",
        "distance_km": 0.2935606837272644,
        "estimate_sale_date_sold": "2025-05-24",
        "image": "9f3d851aa24f52a_d4e32a",
        "latitude": 51.03875732421875,
        "list_price": 230000,
        "longitude": -114.07894134521484
      },
      {
        "address": "405 1500 7 Street SW",
        "distance_km": 0.2935606837272644,
        "estimate_sale_date_sold": "2025-05-21",
        "image": "94a40e9bc2821812_de30c9",
        "latitude": 51.03875732421875,
        "list_price": 314990,
        "longitude": -114.07894134521484
      },
      {
        "address": "1106 1501 6 Street SW",
        "distance_km": 0.31714415550231934,
        "estimate_sale_date_sold": "2025-07-04",
        "image": "97ac4d349449d9b4_0a5a07",
        "latitude": 51.03870391845703,
        "list_price": 309900,
        "longitude": -114.0772476196289
      },
      {
        "address": "305 545 18 Avenue SW",
        "distance_km": 0.39099568128585815,
        "estimate_sale_date_sold": "2025-07-04",
        "image": "daa09f7dadd9b96d_8bbf19",
        "latitude": 51.03668594360352,
        "list_price": 324900,
        "longitude": -114.0736083984375
      }
    ],
    "comparable_properties_total": 74407,
    "construction_year": 2008,
    "country": "Canada",
    "den": 0,
    "estimate_list_price": {
      "confidence_score": 95.35098266601562,
      "model_metrics": {
        "coefficient_of_variation": 15.057430027277164,
        "error_10th_percentile": 3801.465576171875,
        "error_25th_percentile": 9678.03125,
        "error_50th_percentile": 22613.0625,
        "error_75th_percentile": 46919.5625,
        "error_90th_percentile": 92492.8984375,
        "error_95th_percentile": 145699.890625,
        "forecast_std_dev": 88236.3046875,
        "mae": 43213.0,
        "mape": 6.816648960113525,
        "mean_bias": -1990.883056640625,
        "median_bias": 1133.375,
        "median_mape": 4.649014949798584,
        "mse": 7789621760.0,
        "over_prediction_rate": 51.45864236773328,
        "pct_error_10th": 0.8333106637001038,
        "pct_error_90th": 14.370776176452637,
        "rmse": 88258.8359375,
        "testing_r_squared": 0.95,
        "training_r_squared": 0.99,
        "under_prediction_rate": 48.54135763226672,
        "within_10_pct": 80.1158437522074,
        "within_15_pct": 91.00091827364557,
        "within_20_pct": 95.12608603517695,
        "within_5_pct": 52.949071130889315
      },
      "value": 1186037.875
    },
    "estimate_rent_monthly": {
      "confidence_score": 89.26136016845703,
      "model_metrics": {
        "coefficient_of_variation": 32.41887117805409,
        "error_10th_percentile": 9804.6064453125,
        "error_25th_percentile": 25677.0,
        "error_50th_percentile": 61442.65625,
        "error_75th_percentile": 133960.75,
        "error_90th_percentile": 271068.40625,
        "error_95th_percentile": 419131.8125,
        "forecast_std_dev": 222409.078125,
        "mae": 119684.9921875,
        "mape": 18.42319679260254,
        "mean_bias": -23911.404296875,
        "median_bias": 3579.9375,
        "median_mape": 10.738637924194336,
        "mse": 50037477376.0,
        "over_prediction_rate": 51.85999999999999,
        "pct_error_10th": 1.819237232208252,
        "pct_error_90th": 41.48579788208008,
        "rmse": 223690.578125,
        "testing_r_squared": 0.8,
        "training_r_squared": 0.87,
        "under_prediction_rate": 48.14,
        "within_10_pct": 47.528749999999995,
        "within_15_pct": 61.93875,
        "within_20_pct": 71.7,
        "within_5_pct": 26.4225
      },
      "value": 2936.3466796875
    },
    "estimate_sale_price": {
      "confidence_score": 95.26663208007812,
      "model_metrics": {
        "coefficient_of_variation": 15.073419287977208,
        "error_10th_percentile": 3737.099853515625,
        "error_25th_percentile": 9773.21875,
        "error_50th_percentile": 22599.0625,
        "error_75th_percentile": 46561.8125,
        "error_90th_percentile": 90113.65625,
        "error_95th_percentile": 143924.03125,
        "forecast_std_dev": 86177.1875,
        "mae": 42484.9921875,
        "mape": 6.937364101409912,
        "mean_bias": -2037.603759765625,
        "median_bias": 1074.3125,
        "median_mape": 4.733366012573242,
        "mse": 7430647808.0,
        "over_prediction_rate": 51.47276965458784,
        "pct_error_10th": 0.8347779512405396,
        "pct_error_90th": 14.488654136657717,
        "rmse": 86201.203125,
        "testing_r_squared": 0.95,
        "training_r_squared": 0.98,
        "under_prediction_rate": 48.52723034541216,
        "within_10_pct": 79.64257964257965,
        "within_15_pct": 90.5982905982906,
        "within_20_pct": 95.2108497563043,
        "within_5_pct": 52.13675213675214
      },
      "value": 1228165.75
    },
    "image": "10004f7afe0c1946_15fae2",
    "interior_sq_m": 109.99715423583984,
    "latitude": 51.03611755371094,
    "longitude": -114.0792007446289,
    "property_id": "10004f7afe0c1946",
    "property_type": "House",
    "property_warning_flags": [],
    "province": "Alberta",
    "valuation_date": "2025-07-16"
  },
  "error": "",
  "price_quote": false,
  "time_ms": 206,
  "url": "https://www.houski.ca/avm-report/10004f7afe0c1946_657a19"
}