Example API calls

A collection of example API calls to the service.

Simple call only house address

{
        "postcode": "2771DS",
        "housenumber": 87,
        "houseaddition": ""
}

Using building parameters

{
        "postcode": "2771DS",
        "housenumber": 87,
        "houseaddition": "",
        "build_year" : 1961,
        "house_type": 1,
	"roof_type": 1,
	"inner_surface_area": 131
}

Using measures

{
        "postcode": "2771DS",
        "housenumber": 87,
        "houseaddition": "",
        "wall_insulation": 1,
        "floor_insulation": 1,
        "sloped_roof_insulation": 1,
        "flat_roof_insulation": 1,
        "living_room_windows": 1,
        "bedroom_windows": 1,
        "shower": 1,
        "cooling": 1,
        "electric_cooking": 1,
        "ventilation": 1,
        "installation": 4
}

If no target measures are applied, the target situation is the same as the current situation!

e.g. "target_wall_insulation" = "wall_insulation"

Adding target measures

{
        "postcode": "2771DS",
        "housenumber": 87,
        "houseaddition": "",
        "wall_insulation": 1,
        "floor_insulation": 1,
        "sloped_roof_insulation": 1,
        "flat_roof_insulation": 1,
        "living_room_windows": 1,
        "bedroom_windows": 1,
        "shower": 1,
        "cooling": 1,
        "electric_cooking": 1,
        "ventilation": 1,
        "installation": 4,
        "target_wall_insulation": 3,
        "target_floor_insulation": 4,
        "target_sloped_roof_insulation": 3,
        "target_flat_roof_insulation": 3,
        "target_living_room_windows": 3,
        "target_bedroom_windows":3,
        "target_shower": 1,
        "target_cooling": 2,
        "target_electric_cooking": 2,
        "target_ventilation": 3,
        "target_installation": 5   
}

Adding solar panels

{
        "postcode": "2771DS",
        "housenumber": 87,
        "houseaddition": "",
        "solar_panels": [{"pv_total_watt_peak":2000,
                          "target_pv_total_watt_peak":2500,
                          "angle":45,
                          "orientation":180,
                          "roof_type": 1},
                         {"pv_area": 20,     
                          "target_pv_area": 20,
                          "specific_watt_peak": 150,
                          "target_specific_watt_peak": 200,
                          "angle":45,
                          "orientation":180,
                          "roof_type": 1}]        
}

Adding more features

{
        "postcode": "2771DS",
        "housenumber": 87,
        "houseaddition": "",
        "wall_insulation": 1,
        "floor_insulation": 1,
        "sloped_roof_insulation": 1,
        "flat_roof_insulation": 1,
        "living_room_windows": 1,
        "bedroom_windows": 1,
        "shower": 1,
        "cooling": 1,
        "electric_cooking": 1,
        "ventilation": 1,
        "installation": 4,
        "target_wall_insulation": 3,
        "target_floor_insulation": 4,
        "target_sloped_roof_insulation": 3,
        "target_flat_roof_insulation": 3,
        "target_living_room_windows": 3,
        "target_bedroom_windows":3,
        "target_shower": 1,
        "target_cooling": 2,
        "target_electric_cooking": 2,
        "target_ventilation": 3,
        "target_installation": 5,
        "inhabitants":4,
        "gas_usage": 800,
        "heat_usage": 40,
        "electricity_usage":3000,
        "electricity_generation": 100,
        "exclude_vat":false,
        "cost_indicators":{"fixed_gas_price":100},
	      "lock_measures": {
        	"lock": ["floor_insulation"]},
        "wall_filters": {"biobased": true, "cavity": true, "material":[4]},
        "sloped_roof_filters": {"biobased": false, "insulation_side": 2, "replace_roof": true, "material":[1]},
        "flat_roof_filters": {"biobased": false, "insulation_side": 2, "replace_roof": true, "material":[1]},
        "floor_filters": {"floor_type": 1, "crawl_space": true, "material":[2]}
}

Last updated