# Example API calls

### Minimal Input

{% hint style="info" %}
*<mark style="color:red;">**Specifying both the position and the floors of the apartment is recommended for optimal results.**</mark>*
{% endhint %}

```html
{
    "postcode": "3024XL",
    "housenumber":227,
    "houseaddition": "B",
    "position": 3,
    "floors": 1
}
```

### Adding Building Parameters

<pre><code><strong>{
</strong>    "postcode": "3024XL",
    "housenumber":227,
    "houseaddition": "B",
    "position": 3,
    "floors": 1,
    "build_year" : 1961,
    "apartment_type": 1,
    "inner_surface_area": 131
}
</code></pre>

### Adding Current Measures

```
{
    "postcode": "3024XL",
    "housenumber":227,
    "houseaddition": "B",
    "position": 3,
    "floors": 1,
    "wall_insulation": 1,
    "floor_insulation": 1,
    "roof_insulation": 1,
    "living_room_windows": 1,
    "shower": 1,
    "cooling": 1,
    "electric_cooking": 1,
    "ventilation": 1,
    "installation": 4,
    "inhabitants" : 3
}
```

### Adding Solar Panels

<pre><code><strong>{
</strong>    "postcode": "3024XL",
    "housenumber":227,
    "houseaddition": "B",
    "position": 3,
    "floors": 1,
    "solar_panels": [{"pv_total_watt_peak":2000,
                      "angle":45,
                      "orientation":180},
                     {"pv_area": 20,     
                      "specific_watt_peak": 150,
                      "angle":45,
                      "orientation":180}]        
}
</code></pre>

or

<pre><code><strong>{
</strong>    "postcode": "3024XL",
    "housenumber":227,
    "houseaddition": "B",
    "number_of_solar_panels": 10     
}
</code></pre>
