Smart meter volume trend
Returns the trend of measured volume (meter reading difference) for a selected smart meter in 6-hour steps. The endpoint is intended for volume meters (water, gas); for the photovoltaic plants in Trnava it returns timestamps only, without values.
Publisher
Chief Executive's Office, City of Trnava
Format
API JSON
License
CC BY 4.0
Last modified
11. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"id": "654a4dc16290fa00010a0c28",
"from": "2026-11-10T00:00:00.000Z",
"to": "2026-11-10T23:59:59.999Z"
}
id – smart meter identifier (required)
from – start of the time interval, ISO 8601 (required)
to – end of the time interval, ISO 8601 (required)
Request
POST https://opendata.trnava.sk/api/datasets/v1/smart-metering/statistics/volume-trend
Answer
[
{
"timestamp": "2026-10-13T00:00:00.000Z"
},
{
"timestamp": "2026-10-13T06:00:00.000Z"
},
{
"timestamp": "2026-10-13T12:00:00.000Z"
},
{
"timestamp": "2026-10-13T18:00:00.000Z"
}
]
timestamp – start of the 6-hour interval, ISO 8601 UTC
value – measured volume difference for the first hour of the interval (missing for photovoltaic plants)
Request
GET https://opendata.trnava.sk/api/datasets/v1/smart-metering/statistics/volume-trend?outputType=csv
Answer
"value","timestamp"
,"2026-10-13T00:00:00.000Z"
,"2026-10-13T06:00:00.000Z"
timestamp – start of the 6-hour interval, ISO 8601 UTC
value – measured volume difference for the first hour of the interval (missing for photovoltaic plants)
Request
GET https://opendata.trnava.sk/api/datasets/v1/smart-metering/statistics/volume-trend?outputType=xml
Answer
<root><item><value></value><timestamp>2026-10-13T00:00:00.000Z</timestamp></item><item><value></value><timestamp>2026-10-13T06:00:00.000Z</timestamp></item><item><value></value><timestamp>2026-10-13T12:00:00.000Z</timestamp></item><item><value></value><timestamp>2026-10-13T18:00:00.000Z</timestamp></item></root>
timestamp – start of the 6-hour interval, ISO 8601 UTC
value – measured volume difference for the first hour of the interval (missing for photovoltaic plants)