Road Status – Total Measurement History
Returns the hourly history of numeric measurements of the road weather station at the Hospodárska × Študentská × Radlinského intersection (K9) in Trnava for the last day or week, separately for each quantity (currently the road friction coefficient).
Publisher
Transport Department, City of Trnava
Format
API JSON
License
CC BY 4.0
Update frequency
Hourly
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"period": "day",
"item": [
"6544eb4a6290fa000100a5f6"
]
}
period (string, required) – Period back from the current time: day (last 24 hours), week (last week).
item (array of strings, optional) – List of station identifiers; the K9 road weather station has the ID 6544eb4a6290fa000100a5f6. Without it, all active stations including environmental sensors are averaged.
Request
POST https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/history-total
Answer
{
"aqi": null,
"trend": null,
"environment": {
"friction": {
"history": [
{
"timestamp": "2026-10-19T08:00:00.000Z",
"value": 0.75
},
{
"timestamp": "2026-10-19T09:00:00.000Z",
"value": 0.75
},
{
"timestamp": "2026-10-19T10:00:00.000Z",
"value": 0.75
}
],
"trend": null,
"current": null
}
}
}
aqi – Air quality index (always null for a road weather station).
trend – Overall trend (always null).
environment – Object keyed by measured numeric quantity (e.g. friction – road friction coefficient 0–1).
environment.[measurement].history.timestamp – Start of the hour (ISO 8601, UTC).
environment.[measurement].history.value – Hourly average value.
environment.[measurement].trend – Trend of the current value in % (currently null).
environment.[measurement].current – Current value (currently null).
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/history-total?outputType=csv
Answer
"aqi","trend","environment.friction.history.0.timestamp","environment.friction.history.0.value","environment.friction.history.1.timestamp","environment.friction.history.1.value","environment.friction.history.2.timestamp","environment.friction.history.2.value","environment.friction.history.3.timestamp","environment.friction.history.3.value","environment.friction.history.4.timestamp","environment.friction.history.4.value","environment.friction.history.5.timestamp","environment.friction.history.5.value","environment.friction.history.6.timestamp","environment.friction.history.6.value","environment.friction.history.7.timestamp","environment.friction.history.7.value","environment.friction.history.8.timestamp","environment.friction.history.8.value","environment.friction.history.9.timestamp","environment.friction.history.9.value","environment.friction.history.10.timestamp","environment.friction.history.10.value","environment.friction.history.11.timestamp","environment.friction.history.11.value","environment.friction.history.12.timestamp","environment.friction.history.12.value","environment.friction.history.13.timestamp","environment.friction.history.13.value","environment.friction.history.14.timestamp","environment.friction.history.14.value","environment.friction.history.15.timestamp","environment.friction.history.15.value","environment.friction.history.16.timestamp","environment.friction.history.16.value","environment.friction.history.17.timestamp","environment.friction.history.17.value","environment.friction.history.18.timestamp","environment.friction.history.18.value","environment.friction.history.19.timestamp","environment.friction.history.19.value","environment.friction.history.20.timestamp","environment.friction.history.20.value","environment.friction.history.21.timestamp","environment.friction.history.21.value","environment.friction.history.22.timestamp","environment.friction.history.22.value","environment.friction.trend","environment.friction.current"
,,"2026-10-19T08:00:00.000Z",0.75,"2026-10-19T09:00:00.000Z",0.75,"2026-10-19T10:00:00.000Z",0.75,"2026-10-19T11:00:00.000Z",0.75,"2026-10-19T12:00:00.000Z",0.74,"2026-10-19T13:00:00.000Z",0.75,"2026-10-19T14:00:00.000Z",0.749,"2026-10-19T15:00:00.000Z",0.745,"2026-10-19T16:00:00.000Z",0.75,"2026-10-19T17:00:00.000Z",0.75,"2026-10-19T18:00:00.000Z",0.75,"2026-10-19T19:00:00.000Z",0.75,"2026-10-19T20:00:00.000Z",0.75,"2026-10-19T21:00:00.000Z",0.75,"2026-10-19T22:00:00.000Z",0.75,"2026-10-19T23:00:00.000Z",0.75,"2026-10-20T00:00:00.000Z",0.75,"2026-10-20T01:00:00.000Z",0.75,"2026-10-20T02:00:00.000Z",0.75,"2026-10-20T03:00:00.000Z",0.75,"2026-10-20T04:00:00.000Z",0.75,"2026-10-20T05:00:00.000Z",0.75,"2026-10-20T06:00:00.000Z",0.75,NaN,NaN
aqi – Air quality index (always null for a road weather station).
trend – Overall trend (always null).
environment – Object keyed by measured numeric quantity (e.g. friction – road friction coefficient 0–1).
environment.[measurement].history.timestamp – Start of the hour (ISO 8601, UTC).
environment.[measurement].history.value – Hourly average value.
environment.[measurement].trend – Trend of the current value in % (currently null).
environment.[measurement].current – Current value (currently null).
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/history-total?outputType=xml
Answer
<root>
<aqi/>
<trend/>
<environment>
<friction>
<history>
<item>
<timestamp>2026-10-19T08:00:00.000Z</timestamp>
<value>0.75</value>
</item>
<item>
<timestamp>2026-10-19T09:00:00.000Z</timestamp>
<value>0.75</value>
</item>
<item>
<timestamp>2026-10-19T10:00:00.000Z</timestamp>
<value>0.75</value>
</item>
</history>
<trend>NaN</trend>
<current>NaN</current>
</friction>
</environment>
</root>
aqi – Air quality index (always null for a road weather station).
trend – Overall trend (always null).
environment – Object keyed by measured numeric quantity (e.g. friction – road friction coefficient 0–1).
environment.[measurement].history.timestamp – Start of the hour (ISO 8601, UTC).
environment.[measurement].history.value – Hourly average value.
environment.[measurement].trend – Trend of the current value in % (currently null).
environment.[measurement].current – Current value (currently null).