Get emissions of medium consumption

GET {{baseUrl}}/medium-consumptions/:medium-consumption-id/emissions?unit=<string>&from=<string>&to=<string>&interval=<string>&relativeToArea=false&relativeToAreaUnit=<string>

Get emissions of medium consumption

Request Params

KeyDatatypeRequiredDescription
unitstring(Required) Target 'unit' of the emissions. See also QUDT
fromstring(Required) Only return items were 'timestamp' is equal to or greater than the specificed RFC3339 value, i.e. from-time.
tostringOnly return items were 'timestamp' is less than to the specificed RFC3339 value, i.e. to-time. Default is now-time.
intervalstringPossible aggregation intervals 15m, 30m, 1h, 1d. Default is "1d". Defined starts at UTC-00:00
relativeToAreabooleanThe return values are KPIs: values divided by the area of the location. Works only for medium consumption on a location.
relativeToAreaUnitstringUsed unit of the location area, required when relativeToArea=true. See also QUDT

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;timestamp&quot;:&quot;2023-09-27T00:00:00Z&quot;,&quot;value&quot;:1.5},{&quot;timestamp&quot;:&quot;2023-09-27T00:00:00Z&quot;,&quot;value&quot;:1.5}]}