Average smart bin fill level by waste type

Returns the average fill level (in %) of smart bins with Sensoneo sensors per waste type (residual, paper, plastic, glass …) in hourly or daily breakdown. Can be limited to selected bins, waste types and fill level range.

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

Parameters

{
  "from": "2026-10-11T22:00:00.000Z",
  "to": "2026-10-14T21:59:59.999Z",
  "type": "daily"
}
from – interval start (ISO 8601, required)
to – interval end (ISO 8601, required)
type – aggregation: hourly, daily, monthly (required; monthly returns daily values, same as daily)
itemId – array of smart bin identifiers (optional; all bins if omitted)
category – array of waste types: Residual, Organic, Paper, Metal, Glass, ColorGlass, WhiteGlass, Electronic, Plastic (optional)
level – array of fill level ranges {levelFrom, levelTo} in %; only averages falling into one of the ranges are returned (optional)

Request

POST https://opendata.trnava.sk/api/datasets/v2/smart-bins/history-total

Answer

[
  {
    "timestamp": "2026-10-11T22:00:00.000Z",
    "residual": 56.99904870624049,
    "paper": 43.75067750677506,
    "glass": 42.91465053763441,
    "plastic": 54.37466124661246
  },
  {
    "timestamp": "2026-10-12T22:00:00.000Z",
    "residual": 43.72735920852359,
    "paper": 41.209688346883475,
    "glass": 43.91801075268817,
    "plastic": 42.53624661246612
  },
  {
    "timestamp": "2026-10-13T22:00:00.000Z",
    "residual": 42.40696347031963,
    "paper": 38.78353658536585,
    "glass": 44.720766129032256,
    "plastic": 37.0010162601626
  }
]
timestamp – start of the hour or day (daily values start at local midnight, e.g. 22:00 UTC)
residual – average fill level of residual waste bins in %
paper – average fill level of paper bins in %
plastic – average fill level of plastic bins in %
glass – average fill level of glass bins in %
organic, metal, colorglass, whiteglass, electronic – other waste types (no data in Trnava)

Request

GET https://opendata.trnava.sk/api/datasets/v2/smart-bins/history-total?outputType=csv

Answer

"timestamp","residual","organic","paper","metal","glass","colorglass","whiteglass","electronic","plastic"
"2026-10-11T22:00:00.000Z",56.99904870624049,,43.75067750677506,,42.91465053763441,,,,54.37466124661246
"2026-10-12T22:00:00.000Z",43.72735920852359,,41.209688346883475,,43.91801075268817,,,,42.53624661246612
timestamp – start of the hour or day (daily values start at local midnight, e.g. 22:00 UTC)
residual – average fill level of residual waste bins in %
paper – average fill level of paper bins in %
plastic – average fill level of plastic bins in %
glass – average fill level of glass bins in %
organic, metal, colorglass, whiteglass, electronic – other waste types (no data in Trnava)

Request

GET https://opendata.trnava.sk/api/datasets/v2/smart-bins/history-total?outputType=xml

Answer

<root>
  <item>
    <timestamp>2026-10-11T22:00:00.000Z</timestamp>
    <residual>56.99904870624049</residual>
    <organic/>
    <paper>43.75067750677506</paper>
    <metal/>
    <glass>42.91465053763441</glass>
    <colorglass/>
    <whiteglass/>
    <electronic/>
    <plastic>54.37466124661246</plastic>
  </item>
  <item>
    <timestamp>2026-10-12T22:00:00.000Z</timestamp>
    <residual>43.72735920852359</residual>
    <organic/>
    <paper>41.209688346883475</paper>
    <metal/>
    <glass>43.91801075268817</glass>
    <colorglass/>
    <whiteglass/>
    <electronic/>
    <plastic>42.53624661246612</plastic>
  </item>
  <item>
    <timestamp>2026-10-13T22:00:00.000Z</timestamp>
    <residual>42.40696347031963</residual>
    <organic/>
    <paper>38.78353658536585</paper>
    <metal/>
    <glass>44.720766129032256</glass>
    <colorglass/>
    <whiteglass/>
    <electronic/>
    <plastic>37.0010162601626</plastic>
  </item>
</root>
timestamp – start of the hour or day (daily values start at local midnight, e.g. 22:00 UTC)
residual – average fill level of residual waste bins in %
paper – average fill level of paper bins in %
plastic – average fill level of plastic bins in %
glass – average fill level of glass bins in %
organic, metal, colorglass, whiteglass, electronic – other waste types (no data in Trnava)