API & MCP

Everything a person can do on Ledgerly Heat Pump Estimate, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Ledgerly Heat Pump Estimate

Turns your past gas, oil, LPG or pellet use into heat demand, spreads it over the year with the outdoor temperatures (DWD climate normals or your own), and estimates the heat pump’s electricity from a temperature-dependent COP and heating curve. Compares running costs and CO₂ with your boiler, and shows the heat load on the coldest day and the payback of the investment. Part of Ledgerly’s Solar & Heat.

Inputs of Ledgerly Heat Pump Estimate
FieldTypeDefaultDescription
currencytext"EUR"Currency
latitudenumber52.52Latitude (°, south negative)
longitudenumber13.405Longitude (°, west negative)
climateselect (auto, manual)"auto"Outdoor temperatures
monthlyTemperaturestext—Monthly mean temperatures (°C, 12 values, Jan–Dec)
elevationnumber—Height of the house above sea level (m; empty = like the station)
fuelselect (gas, oil, lpg, pellets)"gas"Current heating
fuelUsenumber20000Fuel used per year (from your bills)
fuelUnitselect (kwh, m3, litre, kg)"kwh"Unit of the fuel use
boilerEfficiencyPercentnumber90Efficiency of the old boiler (%). Condensing gas boilers about 90–95 %, older boilers 75–85 %.
hotWaterPercentnumber15Share for hot water (%)
heatingLimitCnumber15Heating limit temperature (°C). Above this outdoor temperature the house needs no heating.
designTempCnumber-12Coldest design temperature (°C)
heatPumpTypeselect (air, ground)"air"Heat pump type
flowTempCnumber50Flow temperature on the coldest day (°C). Underfloor heating 30–35 °C, large radiators 45–55 °C, small old radiators 60–70 °C.
hotWaterTempCnumber50Hot water temperature (°C)
carnotEfficiencyPercentnumber40Heat pump quality (% of the ideal Carnot COP). Good current units reach about 40–50 % of the ideal value; 40 % is a cautious default that also covers defrosting.
fuelPricenumber—Fuel price per unit of the fuel use (empty = example price). Example prices when empty: gas 0.11 per kWh, oil 1.00 per litre, LPG 0.80 per litre, pellets 0.35 per kg (per kWh: about a tenth). Enter your own price.
boilerFixedPerYearnumber350Fixed boiler costs per year (standing charge, service, chimney sweep)
electricityPricenumber0.28Heat pump electricity price per kWh
heatPumpFixedPerYearnumber200Fixed heat pump costs per year (meter, service)
investmentnumber30000Heat pump price incl. installation (0 = skip payback)
subsidynumber0Subsidies
fuelCo2number—CO₂ of the fuel (kg per kWh; empty = German GEG value)
electricityCo2number0.406CO₂ of grid power (kg per kWh). Default: German mix 2025 incl. upstream emissions (Umweltbundesamt).

Example request

Berlin, 20,000 kWh gas, radiators at 50 °C

curl -X POST https://ledgerlyheatpumpestimate.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"latitude":52.52,"longitude":13.405,"fuel":"gas","fuelUse":20000,"fuelUnit":"kwh","flowTempC":50,"fuelPrice":0.11}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "ledgerly-heat-pump-estimate": { "type": "http", "url": "https://ledgerlyheatpumpestimate.usefulweb.app/mcp" }
  }
}