GET
/api/external/v3/statistics/facility/month/key/{key}/{start}/{end}
Get monthly statistics data for a specific facility between start and end date.
Request Information
Permissions
The user must be authorized and must have at least one of these operations to access this api method.
| Operation (significant name) | Description |
|---|---|
| Access external API (acc_extapi) | Gives the user access to the external API. |
Embeded Resource Parameters
None
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key |
Identifier of the desired facility. |
string |
Required |
| start |
Start date of the period. Max period length is 5 years. |
date |
Required |
| end |
End date of the period. Max period length is 5 years. |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
A list with consumption and energy data if any, otherwise an empty list.
DataResultOfFacilityStatsDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of FacilityStatsDto |
None. |
|
| Total | integer |
None. |
|
| Take | integer |
None. |
|
| Skip | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": [
{
"facilityId": 1,
"facilityNo": "sample string 2",
"facilityName": "sample string 3",
"facilitySynchronizationKey": "sample string 4",
"facilityType": "sample string 5",
"date": "2025-10-28T02:14:17.4014191+01:00",
"usageClass": "sample string 7",
"usageType": "sample string 8",
"mediaClass": "sample string 9",
"consumptionUnit": "sample string 10",
"consumption": 1.1,
"consumptionNormalized": 1.1,
"consumptionClimateNeutral": 1.1,
"energyUnit": "sample string 11",
"energy": 1.1,
"energyNormalized": 1.1,
"energyClimateNeutral": 1.1,
"costTotal": 1.0,
"costFixed": 1.0,
"costCons": 1.0,
"costDeb1": 1.0,
"costDeb2": 1.0,
"cO2": 1.1,
"lastUpdated": "2025-10-28T02:14:17.4014191+01:00"
},
{
"facilityId": 1,
"facilityNo": "sample string 2",
"facilityName": "sample string 3",
"facilitySynchronizationKey": "sample string 4",
"facilityType": "sample string 5",
"date": "2025-10-28T02:14:17.4014191+01:00",
"usageClass": "sample string 7",
"usageType": "sample string 8",
"mediaClass": "sample string 9",
"consumptionUnit": "sample string 10",
"consumption": 1.1,
"consumptionNormalized": 1.1,
"consumptionClimateNeutral": 1.1,
"energyUnit": "sample string 11",
"energy": 1.1,
"energyNormalized": 1.1,
"energyClimateNeutral": 1.1,
"costTotal": 1.0,
"costFixed": 1.0,
"costCons": 1.0,
"costDeb1": 1.0,
"costDeb2": 1.0,
"cO2": 1.1,
"lastUpdated": "2025-10-28T02:14:17.4014191+01:00"
}
],
"total": 1,
"take": 2,
"skip": 3
}