Get time series data for a specific facility.
This endpoint returns time series data for a facility, with data grouped by unit. The data can be aggregated by different time intervals.
Args: network_code: The network the facility belongs to facility_code: The facility code to get data for metrics: List of metrics to query (e.g. energy, power, emissions) interval: The time interval to aggregate by date_start: Start time for the query date_end: End time for the query client: ClickHouse client dependency
Returns: APIV4ResponseSchema: Time series data response containing a list of TimeSeries objects, one per requested metric, with data for each unit
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The metrics to get data for
Types of metrics that can be queried in OpenNEM.
Each metric represents a different type of measurement or calculation that can be performed on the data.
Attributes: POWER: Instantaneous power output/consumption (MW) ENERGY: Energy generated/consumed over time (MWh) PRICE: Price per unit of energy ($/MWh) DEMAND: Demand for energy (MW) MARKET_VALUE: Total market value ($) EMISSIONS: CO2 equivalent emissions (tonnes) RENEWABLE_PROPORTION: Percentage of renewable energy (%)
power, energy, price, market_value, demand, demand_energy, emissions, renewable_proportion The time interval to aggregate data by
5m, 1h, 1d, 7d, 1M, 3M, season, 1y, fy The facility code to get data for
Start time for the query
End time for the query