For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

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
200

OK

application/json
startTimestampinteger · int64Optional
energyGenerationnumber · floatOptional
energyConsumptionnumber · floatOptional
gridEnergyConsumptionnumber · floatOptional
get/buildings/{customerBuildingId}/energy-statistics/hourly/v1
GET /buildings/{customerBuildingId}/energy-statistics/hourly/v1?eventTypes=ENERGY_GENERATION&from=text&to=text HTTP/1.1
Host: api.moost.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

[
  {
    "startTimestamp": 1,
    "energyGeneration": 1,
    "energyConsumption": 1,
    "gridEnergyConsumption": 1
  }
]

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
200

OK

application/json
daystringOptional
energyGenerationnumber · floatOptional
energyConsumptionnumber · floatOptional
gridEnergyConsumptionnumber · floatOptional
energyBaseConsumptionnumber · floatOptional
gridEnergyBaseConsumptionnumber · floatOptional
get/buildings/{customerBuildingId}/energy-statistics/daily/v1
GET /buildings/{customerBuildingId}/energy-statistics/daily/v1?eventTypes=ENERGY_GENERATION_YESTERDAY&from=text&to=text HTTP/1.1
Host: api.moost.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

[
  {
    "day": "text",
    "energyGeneration": 1,
    "energyConsumption": 1,
    "gridEnergyConsumption": 1,
    "energyBaseConsumption": 1,
    "gridEnergyBaseConsumption": 1
  }
]

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
200

OK

application/json
monthstringOptional
energyGenerationnumber · floatOptional
energyConsumptionnumber · floatOptional
gridEnergyConsumptionnumber · floatOptional
get/buildings/{customerBuildingId}/energy-statistics/monthly/v1
GET /buildings/{customerBuildingId}/energy-statistics/monthly/v1?eventTypes=ENERGY_GENERATION_YESTERDAY&from=text&to=text HTTP/1.1
Host: api.moost.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

[
  {
    "month": "text",
    "energyGeneration": 1,
    "energyConsumption": 1,
    "gridEnergyConsumption": 1
  }
]

Last updated