Energy Statistics

The energy-statistics endpoints aggregate raw event data into time-bucketed readings for a specific building. Three temporal resolutions are available: hourly, daily, and monthly.

circle-info

The building's local time zone is taken into account for all energy-statistics endpoints. The time window can be up to 1 year.

Hourly Energy Statistics

Returns energy data aggregated on an hourly basis. Use this for intraday charts (e.g. "Today's energy").

A building’s energy data with hourly readings

get

Get energy related data of a building, aggregated on a hourly basis.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
customerBuildingIdstringRequiredPattern: ^[a-zA-Z0-9:._-]{1,100}$
Query parameters
fromstringRequired

The starting date of the time window for selecting event data.
Remark: The building's local time zone is taken into account.

Example: 2024-01-01Pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}
tostringRequired

The final date of the time window for selecting event data.
Remark: the time window can be up to 1 year.

Example: 2024-01-31Pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}
Responses
chevron-right
200

OK

application/json
startTimestampinteger · int64Optional
energyGenerationnumber · floatOptional
energyConsumptionnumber · floatOptional
gridEnergyConsumptionnumber · floatOptional
get
/buildings/{customerBuildingId}/energy-statistics/hourly/v1
200

OK

Daily Energy Statistics

Returns energy data aggregated on a daily basis. Use this for "this month" charts and seasonal analysis.

A building’s energy data with daily readings

get

Get energy related data of a building, aggregated on a daily basis.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
customerBuildingIdstringRequiredPattern: ^[a-zA-Z0-9:._-]{1,100}$
Query parameters
fromstringRequired

The starting date of the time window for selecting event data.
Remark: The building's local time zone is taken into account.

Example: 2024-01-01Pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}
tostringRequired

The final date of the time window for selecting event data.
Remark: the time window can be up to 1 year.

Example: 2024-01-31Pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}
Responses
chevron-right
200

OK

application/json
daystringOptional
energyGenerationnumber · floatOptional
energyConsumptionnumber · floatOptional
gridEnergyConsumptionnumber · floatOptional
energyBaseConsumptionnumber · floatOptional
gridEnergyBaseConsumptionnumber · floatOptional
get
/buildings/{customerBuildingId}/energy-statistics/daily/v1
200

OK

circle-exclamation

Monthly Energy Statistics

Returns energy data aggregated on a monthly basis. Use this for yearly overview charts and 12-month trend cards.

A building’s energy data with monthly readings

get

Get energy related data of a building, aggregated on a monthly basis.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
customerBuildingIdstringRequiredPattern: ^[a-zA-Z0-9:._-]{1,100}$
Query parameters
fromstringRequired

The starting month of the time window for selecting event data.
Remark: The building's local time zone is taken into account.

Example: 2024-01Pattern: [0-9]{4}-[0-9]{2}
tostringRequired

The final month of the time window for selecting event data.
Remark: the time window can be up to 1 year.

Example: 2024-12Pattern: [0-9]{4}-[0-9]{2}
Responses
chevron-right
200

OK

application/json
monthstringOptional
energyGenerationnumber · floatOptional
energyConsumptionnumber · floatOptional
gridEnergyConsumptionnumber · floatOptional
get
/buildings/{customerBuildingId}/energy-statistics/monthly/v1
200

OK

Last updated