Smart bin waste collections
Returns the list of recorded collections (emptyings) of smart bins with Sensoneo sensors, with the collection time and the fill level before and after the collection. Can be filtered by container station, bins and time interval.
Publisher
Chief Executive's Office, City of Trnava
Format
API JSON
License
CC BY 4.0
Update frequency
Irregular
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"areaId": "6544b8716290fa0001001698",
"from": "2026-10-13T00:00:00.000Z",
"to": "2026-10-15T00:00:00.000Z",
"limit": 3
}
areaId – container station identifier (optional; id from the Waste collection points fill level dataset)
binIds – array of bin identifiers (optional)
from – interval start (ISO 8601, optional)
to – interval end (ISO 8601, optional)
limit – maximum number of records (optional)
page – page number for paging (optional, together with limit)
sort – sorting, default -timestamp (newest first)
expand – true returns an object {meta, data} with the total record count and paging
Request
POST https://opendata.trnava.sk/api/datasets/v1/smart-bins/collection/list
Answer
[
{
"id": "6acff587b157642bf864a3f0",
"item": {
"id": "6544b8716290fa00010016a2",
"type": "Container",
"producer": "Sensoneo",
"model": null,
"name": "Kontejner Komunál Hlavná 27/32",
"class": "SmartBin",
"parentId": "6544b8716290fa0001001698"
},
"eventId": "6acff5875ad6170001089f28",
"timestamp": "2026-10-14T19:28:19.000Z",
"levelBefore": 82,
"levelAfter": 14
},
{
"id": "6acf5ee7b157642bf858b8be",
"item": {
"id": "6544b8716290fa00010016a2",
"type": "Container",
"producer": "Sensoneo",
"model": null,
"name": "Kontejner Komunál Hlavná 27/32",
"class": "SmartBin",
"parentId": "6544b8716290fa0001001698"
},
"eventId": "6acf5ee75ad6170001f64255",
"timestamp": "2026-10-14T08:51:46.000Z",
"levelBefore": 41,
"levelAfter": 0
},
{
"id": "6acf28bbb157642bf85409b1",
"item": {
"id": "6544bb026290fa00010044ec",
"type": "Container",
"producer": "Sensoneo",
"model": null,
"name": "Kontejner Papír Hlavná 27/32",
"class": "SmartBin",
"parentId": "6544b8716290fa0001001698"
},
"eventId": "6acf28ba5ad6170001ef10e7",
"timestamp": "2026-10-14T04:56:47.000Z",
"levelBefore": 100,
"levelAfter": 0
}
]
id – collection record identifier
item.id – bin identifier
item.type – device type (Container)
item.producer – sensor manufacturer
item.model – model
item.name – bin name
item.class – device class (SmartBin)
item.parentId – container station identifier
eventId – collection event identifier
timestamp – collection time
levelBefore – fill level before the collection in %
levelAfter – fill level after the collection in %
Request
GET https://opendata.trnava.sk/api/datasets/v1/smart-bins/collection/list?outputType=csv
Answer
"id","item.id","item.type","item.producer","item.model","item.name","item.class","item.parentId","eventId","timestamp","levelBefore","levelAfter"
"6acff587b157642bf864a3f0","6544b8716290fa00010016a2","Container","Sensoneo",,"Kontejner Komunál Hlavná 27/32","SmartBin","6544b8716290fa0001001698","6acff5875ad6170001089f28","2026-10-14T19:28:19.000Z",82,14
"6acf5ee7b157642bf858b8be","6544b8716290fa00010016a2","Container","Sensoneo",,"Kontejner Komunál Hlavná 27/32","SmartBin","6544b8716290fa0001001698","6acf5ee75ad6170001f64255","2026-10-14T08:51:46.000Z",41,0
id – collection record identifier
item.id – bin identifier
item.type – device type (Container)
item.producer – sensor manufacturer
item.model – model
item.name – bin name
item.class – device class (SmartBin)
item.parentId – container station identifier
eventId – collection event identifier
timestamp – collection time
levelBefore – fill level before the collection in %
levelAfter – fill level after the collection in %
Request
GET https://opendata.trnava.sk/api/datasets/v1/smart-bins/collection/list?outputType=xml
Answer
<root>
<item>
<id>6acff587b157642bf864a3f0</id>
<item>
<id>6544b8716290fa00010016a2</id>
<type>Container</type>
<producer>Sensoneo</producer>
<model/>
<name>Kontejner Komunál Hlavná 27/32</name>
<class>SmartBin</class>
<parentId>6544b8716290fa0001001698</parentId>
</item>
<eventId>6acff5875ad6170001089f28</eventId>
<timestamp>2026-10-14T19:28:19.000Z</timestamp>
<levelBefore>82</levelBefore>
<levelAfter>14</levelAfter>
</item>
<item>
<id>6acf5ee7b157642bf858b8be</id>
<item>
<id>6544b8716290fa00010016a2</id>
<type>Container</type>
<producer>Sensoneo</producer>
<model/>
<name>Kontejner Komunál Hlavná 27/32</name>
<class>SmartBin</class>
<parentId>6544b8716290fa0001001698</parentId>
</item>
<eventId>6acf5ee75ad6170001f64255</eventId>
<timestamp>2026-10-14T08:51:46.000Z</timestamp>
<levelBefore>41</levelBefore>
<levelAfter>0</levelAfter>
</item>
<item>
<id>6acf28bbb157642bf85409b1</id>
<item>
<id>6544bb026290fa00010044ec</id>
<type>Container</type>
<producer>Sensoneo</producer>
<model/>
<name>Kontejner Papír Hlavná 27/32</name>
<class>SmartBin</class>
<parentId>6544b8716290fa0001001698</parentId>
</item>
<eventId>6acf28ba5ad6170001ef10e7</eventId>
<timestamp>2026-10-14T04:56:47.000Z</timestamp>
<levelBefore>100</levelBefore>
<levelAfter>0</levelAfter>
</item>
</root>
id – collection record identifier
item.id – bin identifier
item.type – device type (Container)
item.producer – sensor manufacturer
item.model – model
item.name – bin name
item.class – device class (SmartBin)
item.parentId – container station identifier
eventId – collection event identifier
timestamp – collection time
levelBefore – fill level before the collection in %
levelAfter – fill level after the collection in %