Daily weather averages
This dataset provides daily average weather values for a selected time period. It mainly contains the average daily temperature and a brief verbal description of the weather conditions. The data can be used for an overview of weather developments, comparison of individual days or for a longer-term analysis of climate trends. 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
Daily
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"from": "2026-10-22 07:00:00.000Z",
"to": "2026-10-22 13:00:00.000Z"
}
from (string, required, date and time) – The starting time point of the interval from which to load data (inclusive). The format corresponds to the date and time in UTC (e.g. "2025-12-08 07:00:00.000Z").
to (string, required, date and time) – The ending time point of the interval to which to load data (inclusive).
Request
POST https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/weather
Answer
[
{
"timestamp": "2026-10-21T22:00:00.000Z",
"temperature": 9.23,
"code": 804,
"weather": "overcast clouds"
}
]
timestamp (string) – Timestamp to which the daily weather average is related (typically the end of the relevant day in UTC).
temperature (number) – Average daily air temperature in degrees Celsius.
code (number) – Weather type code according to the meteorological/icon system used (e.g. 804 = “overcast clouds” – full cloud cover).
weather (string) – Text description of weather conditions on the given day (e.g. "overcast clouds").
The response contains an array of objects, each object representing one day in the specified time interval.
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/weather?outputType=csv
Answer
"timestamp","temperature","code","weather"
"2026-10-21T22:00:00.000Z",9.23,804,"overcast clouds"
timestamp (string) – Timestamp to which the daily weather average is related (typically the end of the relevant day in UTC).
temperature (number) – Average daily air temperature in degrees Celsius.
code (number) – Weather type code according to the meteorological/icon system used (e.g. 804 = “overcast clouds” – full cloud cover).
weather (string) – Text description of weather conditions on the given day (e.g. "overcast clouds").
The response contains an array of objects, each object representing one day in the specified time interval.
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/weather?outputType=xml
Answer
<root>
<item>
<timestamp>2026-10-21T22:00:00.000Z</timestamp>
<temperature>9.23</temperature>
<code>804</code>
<weather>overcast clouds</weather>
</item>
</root>
timestamp (string) – Timestamp to which the daily weather average is related (typically the end of the relevant day in UTC).
temperature (number) – Average daily air temperature in degrees Celsius.
code (number) – Weather type code according to the meteorological/icon system used (e.g. 804 = “overcast clouds” – full cloud cover).
weather (string) – Text description of weather conditions on the given day (e.g. "overcast clouds").
The response contains an array of objects, each object representing one day in the specified time interval.