Current Parking Occupancy
Returns the current occupancy of the selected parking system or zone in Trnava – the total number of parking spaces and the number of free spaces, optionally broken down by floor. Data come from parking space occupancy sensors.
Publisher
Transport Department, City of Trnava
Format
API JSON
License
CC BY 4.0
Update frequency
Continuously updated
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"id": "6abf3bf05ad617000142eebf"
}
id – identifier of the parking system or zone (24-character hexadecimal ID, e.g. from the Parking Spaces and Parking Areas dataset), required
Request
POST https://opendata.trnava.sk/api/datasets/v1/parking/statistics/parking-occupancy-state
Answer
{
"floors": [],
"overall": {
"total": 2,
"free": 2
}
}
floors – occupancy by floor (only for multi-storey car parks)
floors.level – floor number
floors.name – floor name
floors.total – total number of spaces on the floor
floors.free – number of free spaces on the floor
overall.total – total number of parking spaces
overall.free – number of free parking spaces
Request
GET https://opendata.trnava.sk/api/datasets/v1/parking/statistics/parking-occupancy-state?outputType=csv
Answer
"floors","overall.total","overall.free"
,2,2
floors – occupancy by floor (only for multi-storey car parks)
floors.level – floor number
floors.name – floor name
floors.total – total number of spaces on the floor
floors.free – number of free spaces on the floor
overall.total – total number of parking spaces
overall.free – number of free parking spaces
Request
GET https://opendata.trnava.sk/api/datasets/v1/parking/statistics/parking-occupancy-state?outputType=xml
Answer
<root>
<floors/>
<overall>
<total>2</total>
<free>2</free>
</overall>
</root>
floors – occupancy by floor (only for multi-storey car parks)
floors.level – floor number
floors.name – floor name
floors.total – total number of spaces on the floor
floors.free – number of free spaces on the floor
overall.total – total number of parking spaces
overall.free – number of free parking spaces