Smart bin fill level trend

Returns the fill level trend (in %) of the selected smart bin or Sensoneo fill level sensor in the chosen time interval. Values are sampled from hourly data (every 6th hourly value).

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

{
  "id": "6544b644feb6f7000149dcf7",
  "from": "2026-10-14T00:00:00.000Z",
  "to": "2026-10-14T23:59:59.999Z"
}
id – smart bin or fill level sensor identifier (required)
from – interval start (ISO 8601, required)
to – interval end (ISO 8601, required)

Request

POST https://opendata.trnava.sk/api/datasets/v1/smart-bins/statistics/garbage-level-trend

Answer

[
  {
    "value": 74,
    "timestamp": "2026-10-14T00:00:00.000Z"
  },
  {
    "value": 73,
    "timestamp": "2026-10-14T03:00:00.000Z"
  },
  {
    "value": 77,
    "timestamp": "2026-10-14T06:00:00.000Z"
  },
  {
    "value": 78,
    "timestamp": "2026-10-14T09:00:00.000Z"
  }
]
timestamp – time (start of the hour)
value – fill level in %

Request

GET https://opendata.trnava.sk/api/datasets/v1/smart-bins/statistics/garbage-level-trend?outputType=csv

Answer

"value","timestamp"
74,"2026-10-14T00:00:00.000Z"
73,"2026-10-14T03:00:00.000Z"
timestamp – time (start of the hour)
value – fill level in %

Request

GET https://opendata.trnava.sk/api/datasets/v1/smart-bins/statistics/garbage-level-trend?outputType=xml

Answer

<root>
  <item>
    <value>74</value>
    <timestamp>2026-10-14T00:00:00.000Z</timestamp>
  </item>
  <item>
    <value>73</value>
    <timestamp>2026-10-14T03:00:00.000Z</timestamp>
  </item>
  <item>
    <value>77</value>
    <timestamp>2026-10-14T06:00:00.000Z</timestamp>
  </item>
  <item>
    <value>78</value>
    <timestamp>2026-10-14T09:00:00.000Z</timestamp>
  </item>
</root>
timestamp – time (start of the hour)
value – fill level in %