Environment Trend

Returns the environmental data trend for selected items within a specified time range. Graphical data visualization as well as the display of device locations on the map can be found on the public portal.

Publisher
Chief Executive's Office, City of Trnava

Format
API JSON

License
CC BY 4.0

Update frequency
Hourly

Last modified
3. 11. 2026

Download data

Parameters

{
  "itemId": [
    "6a6c4a682d0f29b249afb333",
    "6a6c4a682d0f29b249afb32f"
  ],
  "type": "hourly",
  "from": "2026-10-07T06:00:00.000Z",
  "to": "2026-10-07T12:00:00.000Z"
}

Request

POST https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/environment/trend

Answer

[
    {
        "type": "airTemperature",
        "trend": "increasing",
        "change": 100,
        "value": 16.25
    },
    {
        "type": "airPressure",
        "trend": "decreasing",
        "change": -100,
        "value": 1004.5
    }
]

Request

GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/environment/trend?outputType=csv

Answer

"type","trend","change","value"
"airTemperature","increasing",100,16.25
"airPressure","decreasing",-100,1004.5

Request

GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/environment/trend?outputType=xml

Answer

<root>
  <item>
    <type>airTemperature</type>
    <trend>increasing</trend>
    <change>100</change>
    <value>16.25</value>
  </item>
  <item>
    <type>airPressure</type>
    <trend>decreasing</trend>
    <change>-100</change>
    <value>1004.5</value>
  </item>
</root>