Example API calls

A collection of example API calls to the service.

Using all input features

{"data": {
    "lock_measures": {
      "lock": [
        "wall_insulation"
      ]
    },
    "max_investment": 60000,
    "gas_usage": 3000,
    "post_code": "2771DS",
    "house_number": "87",
    "house_addition": "",
    "target_label": "A",
    "inner_surface_area": 130,
    "inhabitants": 3,
    "replace_boiler": true,
    "heat_pump_allowed": true,
    "search_criteria": 1,
    "house_type": null,
    "natural_gas": 0,
    "solar_panels_surface": 1,
    "watt_panels": true,
    "wall_insulation": 2,
    "roof_insulation": 2,
    "floor_insulation": 2,
    "living_room_windows": 2,
    "exclude_measure": [8004, 8005, 8006, 8007, 8008, 8009, 8029],
    "minimum_solar_panels": 3,
    "heatpump_insulation_req": 2, 
    "bedroom_windows": 1,
    "installation": 4,
    "build_year": 2000,
    "heat_usage": null,
    "energylabel_strict": 1,
    "shower": 0,
    "ventilation": 1,
    "fetch_definitive_label": 1,
    "electricity_usage": 4500,
    "solar_panels": 10,
    "eco_delta": 1,
    "solarpanel_watt_peak": 250,
    "custom_costs":[{"code":2,"value":1.79808},{"code":3,"value":2.31534},{"code":4,"value":0.45455},{"code":5,"value":0.56027}],
    "improvement_costs":[{"code":70000,"material":159,"work":187}]
}}

Adding current object and usage data

{"data": {
  "post_code": "2771DS",
  "house_number": "87",
  "house_addition": "",
  "build_year": 2000,
  "inner_surface_area": 130,
  "house_type": null,
  "heat_usage": null,
  "electricity_usage": 4500,
  "gas_usage": 750
}}

Adding current status of measures

{"data": {
  "post_code": "2771DS",
  "house_number": "87",
  "house_addition": "",
  "wall_insulation": 2,
  "roof_insulation": 2,
  "floor_insulation": 2,
  "living_room_windows": 2,
  "bedroom_windows": 1,
  "installation": 4,
  "shower": 0,
  "ventilation": 1,
  "solar_panels": 10,
  "watt_panels": false
}}

Adding requirements from the customer and/or supplier

{"data": {
  "post_code": "2771DS",
  "house_number": "87",
  "house_addition": "",
  "target_label": "A",
  "lock_measures": {
      "lock": [
        "wall_insulation"
      ]
    },
  "exclude_measure": [8004, 8005],
  "minimum_solar_panels": 3,
  "heatpump_insulation_req": 2, 
  "replace_boiler": true,
  "heat_pump_allowed": true,
  "natural_gas": 0,
  "solar_panels_surface": 1,
  "solarpanel_watt_peak": 250,
  "custom_costs":[{"code":2,"value":1.79808},{"code":3,"value":2.31534},{"code":4,"value":0.45455},{"code":5,"value":0.56027}],
  "improvement_costs":[{"code":70000,"material":159,"work":187}]
}}

Using advanced functions

{"data": {
  "post_code": "2771DS",
  "house_number": "87",
  "house_addition": "",
  "eco_delta": 1,
  "fetch_definitive_label": 1,
  "search_criteria": 1,
  "energylabel_strict": 1
}}

Last updated