List of HeatpumpMonitor.org API end points
| URL | Params | Description |
|---|---|---|
| System list & meta data | ||
| /system/list/public.json | List of public systems with all system form meta data | |
| /system/list/user.json | When logged in this returns the system list for the logged in user | |
| Single system meta data | ||
| system/get.json?id=1 | id=SYSTEM_ID (required) | Returns meta data for selected system |
| Stats | ||
| /system/stats/last7 | id=SYSTEM_ID (optional) | Stats summary for all systems or specified system for the last 7 days |
| /system/stats/last30 | id=SYSTEM_ID (optional) | Stats summary for all systems or specified system for the last 30 days |
| /system/stats/last90 | id=SYSTEM_ID (optional) | Stats summary for all systems or specified system for the last 90 days |
| /system/stats/last365 | id=SYSTEM_ID (optional) | Stats summary for all systems or specified system for the last 365 days |
| /system/stats/all | id=SYSTEM_ID (optional) | Stats summary for all systems or specified system for all time |
| /system/stats?start=2024-01-01&end=2024-02-01 | id=SYSTEM_ID (optional) start=2024-01-01&end=2024-02-01 |
Stats summary for all systems or specified system for specified time window |
| /system/stats/daily?id=1 | id=SYSTEM_ID (required) | Currently returns all daily data for the specified user. Will have option to select specific date range in future. Data is returned as CSV. |
| /system/stats/monthly?id=1 | id=SYSTEM_ID (required) | Returns a monthly data summary for the specified user. Data is returned as JSON. |
| Measurements | ||
| /measurement/list.json | mode=user or admin (optional) | Design parameters worked out nightly from each system's monitoring data, for all public systems, keyed by system id. Values only, with an m_ prefix as in the system list columns, e.g. m_heat_loss_design. With mode=user when logged in, your own systems. |
| /measurement/system.json?id=2 | id=SYSTEM_ID (required) | All measurements for one system, keyed by name, each with value, lower and upper (80% prediction interval where there is one), unit, samples, start_time and end_time (unix time of the day or 4 hour window it comes from), details (method, inputs and selected days with their timestamps) and updated. Public systems, or your own when logged in. |
| Timeseries | ||
| /timeseries/available?id=2 | id=SYSTEM_ID (required) | Returns a list of available timeseries feeds. |
| /timeseries/data?id=2 &feeds=heatpump_outsideT &start=01-06-2024 &end=02-06-2024 &interval=3600 &average=1 &timeformat=notime |
id=SYSTEM_ID (required) feeds=CSV list of feeds by key (e.g heatpump_elec,heatpump_outsideT) start= end= interval=3600 average=1 delta=0 timeformat=notime |
Returns timeseries data for a given system. |
Worked out nightly for each system from its own monitoring data: heat loss from daily heat against inside - outside temperature difference, design outside temperature from hourly outside temperature, and heat output and space heating flow temperature on the coldest days. Design values are at the design outside temperature on the system form (or the measured one if the form has none) and 20 °C inside.
| Name | Unit | Description |
|---|---|---|
heat_loss_design | kW | Heat demand at the design temperature |
heat_loss_design_measured | kW | Heat demand at the measured 99.6% design outside temperature |
heat_loss_htc | W/K | Heat transfer coefficient, the slope of the heat loss fit |
heat_loss_base_dT | K | Balance point, the temperature difference where the fit reaches zero heat |
heat_coldest_days | kW | Highest day of heat output divided by 24, all modes, of the 3 coldest days of the last year (the same days as flowT_coldest_days). Lower and upper are the lowest and highest of those days, listed in details |
heat_peak_4h | kW | Highest 4 hour mean heat output on those days |
design_outsideT_996, design_outsideT_990 | °C | Hourly outside temperature equalled or exceeded for 99.6% / 99.0% of hours, complete years only |
flowT_coldest_days | °C | Highest daily space heating flow temperature, weighted by heat output, of the 3 coldest days of the last year (by outside temperature weighted the same way). Lower and upper are the lowest and highest of those days, listed in details |
flowT_peak_4h | °C | Highest 4 hour space heating flow temperature on those days |
dT_coldest_days | K | Space heating mean flow - return temperature on those days, from the daily stats, weighted by space heating heat. Lower and upper are the lowest and highest day, listed in details |
flowrate_coldest_days | l/min | Space heating flow rate on those days, implied as mean heat / (cp × mean flow - return) rather than read from the flow meter |
coldest_day | °C | Coldest day of the last year, outside temperature weighted by heat output (in /measurement/system.json only) |
This python example replicates the last 90 days stats view on HeatpumpMonitor.org
# HeatPumpMonitor.org API example
# Part of the OpenEnergyMonitor project:
# https://openenergymonitor.org
import requests
from tabulate import tabulate
# Useful meta fields:
# location, installer_name, installer_url, installer_logo, heatgeek, ultimaterenewables, heatingacademy, betateach, youtube, url, share,
# hp_model, hp_type, hp_output, refrigerant,
# dhw_method, cylinder_volume, dhw_coil_hex_area,
# new_radiators, old_radiators, fan_coil_radiators, UFH, hydraulic_separation,
# flow_temp, design_temp, flow_temp_typical, wc_curve, freeze, zone_number, space_heat_control_type,
# dhw_control_type, dhw_target_temperature, legionella_frequency, legionella_target_temperature,
# property, floor_area, heat_demand, water_heat_demand, EPC_spaceheat_demand, EPC_waterheat_demand, heat_loss, age, insulation, kwh_m2,
# electricity_tariff, electricity_tariff_type, electricity_tariff_unit_rate_all, solar_pv_generation, solar_pv_self_consumption, solar_pv_divert, battery_storage_capacity,
# mid_metering, electric_meter, heat_meter, metering_inc_boost, metering_inc_central_heating_pumps, metering_inc_brine_pumps, metering_inc_controls, indoor_temperature,
# notes
url = "https://heatpumpmonitor.org/system/list/public.json"
response = requests.get(url)
meta = response.json()
# Useful stats fields:
# timestamp
# combined_elec_kwh, combined_heat_kwh, combined_cop, combined_data_length, combined_elec_mean, combined_heat_mean, combined_flowT_mean, combined_returnT_mean, combined_outsideT_mean, combined_roomT_mean, combined_prc_carnot, combined_cooling_kwh
# running_elec_kwh, running_heat_kwh, running_cop, running_data_length, running_elec_mean, running_heat_mean, running_flowT_mean, running_returnT_mean, running_outsideT_mean, running_roomT_mean, running_prc_carnot
# space_elec_kwh, space_heat_kwh, space_cop, space_data_length, space_elec_mean, space_heat_mean, space_flowT_mean, space_returnT_mean, space_outsideT_mean, space_roomT_mean, space_prc_carnot
# water_elec_kwh, water_heat_kwh, water_cop, water_data_length, water_elec_mean, water_heat_mean, water_flowT_mean, water_returnT_mean, water_outsideT_mean, water_roomT_mean, water_prc_carnot
# from_energy_feeds_elec_kwh, from_energy_feeds_heat_kwh, from_energy_feeds_cop
# quality_elec, quality_heat, quality_flowT, quality_returnT, quality_outsideT, quality_roomT
url = "https://heatpumpmonitor.org/system/stats/last90"
response = requests.get(url)
stats = response.json()
# Compile list of systems with stats
systems = []
for system in meta:
if str(system['id']) in stats:
system['stats'] = stats[str(system['id'])]
systems.append(system)
# Sort by combined_cop
systems.sort(key=lambda x: x['stats']['combined_cop'] if x['stats']['combined_cop'] is not None else float('-inf'), reverse=True)
# Filter and prepare data for tabulation
table = []
headers = ["ID", "Location", "Output", "Model", "COP", "FlowT", "OutsideT", "Days"]
for system in systems:
# Only include systems with a valid COP figure
if system['stats']['combined_cop']!=None:
# Combined COP
cop = "%.2f" % system['stats']['combined_cop'] if system['stats'] else "N/A"
# flow temperature and outside temperature when the heat pump is running
flowT_when_running = "%.1f" % system['stats']['running_flowT_mean'] if system['stats'] else "N/A"
outsideT_when_running = "%.1f" % system['stats']['running_outsideT_mean'] if system['stats'] else "N/A"
# combined_data_length in seconds converted to days
days = "%.0f" % (system['stats']['combined_data_length'] / 86400) if system['stats'] else "N/A"
# Append to table
table.append([system['id'], system['location'], f"{system['hp_output']} kW", system['hp_model'], cop, flowT_when_running, outsideT_when_running, days])
# Print title
print ("HeatPumpMonitor.org systems (sorted by COP, descending, last 90 days)")
# Use tabulate to print the table
print(tabulate(table, headers=headers, tablefmt="psql"))