Open data for research

Compost piles, country by country.

Readings from the bins on CompostIQ, summed up per country for each day or for a whole period: temperature, moisture, oxygen, CO₂ and ammonia, with how often each alert happens. Available to anyone with a free researcher account and an API key.

Terminal200 OK
$ curl -H "x-research-key: $COMPOSTIQ_KEY" \
    "https://api.compostiq.win/research/overview?country_code=ID"

{
  "start": "2026-09-19T08:00:00+00:00",
  "end": "2026-10-19T08:00:00+00:00",
  "country_code": "ID",
  "data": [{
    "country_code": "ID",
    "bin_count": 3,
    "reading_count": 25920,
    "temperature_c": 47.92,
    "temperature_c_max": 64.311,
    "moisture_percent": 53.274,
    …
  }]
}
–
Bins reporting
–
Countries
–
Readings
–
Period covered

Live figures from the CompostIQ API.

Every research endpoint also answers in CSV: add format=csv. · Changelog

What's in a row

One row per country, per day.

Readings from every bin in a country are summed up for each UTC day (/research/daily) or for the whole period you ask for (/research/overview). JSON and CSV carry the same fields.

FieldType · unitWhat it means
country_codeISO 3166-1 alpha-2Where the bins are, at country level only. For example ID.
dayISO 8601 · UTCThe UTC day the row covers. Daily rows only.
bin_countintegerHow many bins sent readings.
reading_countintegerHow many readings the row sums up.
temperature_cnumber · °CAverage core temperature of the piles.
moisture_percentnumber · %Average moisture content.
o2_percentnumber · %Average oxygen in the piles, 0 to 21.
co2_percentnumber · %Average carbon dioxide in the piles.
nh3_rationumber · 0–1Average relative ammonia intensity. Not a ppm value.
…_min, …_max, …_sdnumberFor each sensor above: its lowest and highest reading, and the standard deviation. Every figure is rounded to 3 decimals.

/research/alerts has one row per country and alert type instead:

FieldType · unitWhat it means
country_codeISO 3166-1 alpha-2Where the bins are.
typeenumtoo_hot, too_dry, too_wet, low_oxygen or high_co2.
alert_countintegerHow many alerts of this type were raised in the window.
bin_countintegerHow many bins raised them.
avg_hours_to_resolvenumber · hoursHow long they took to clear, on average. Alerts still open are left out of it, and it is null while none has cleared.
How we anonymise

Everything about the pile. Nothing about the person.

Removed
  • Names and email addresses
  • Bin names
  • Addresses and coordinates
  • Device MAC addresses and hardware IDs
  • Account, bin and device database IDs
Coarsened
  • Location becomes a country code
  • Time becomes UTC days, or the whole period you ask for
  • Every bin in a country becomes one row
Left out
  • Bins with no country set
  • Offline alerts, which are never stored
  • A deleted account's bins, at once: every request reads the live data
Know your sensors

Read this before you publish.

Averages hide spread

Every sensor comes with its minimum, maximum and standard deviation (_min, _max, _sd). Check them before comparing averages.

Ammonia is relative

nh3_ratio runs from 0 to 1. It shows when ammonia rises and falls, not how much is present.

Modelled, not measured

Today's readings come from the CompostIQ emulator and simulator, which model piles from the stage ranges below. Treat them as modelled data until physical sensors report.

A tropical baseline

The models use a 28 °C ambient, like the pilot site in Mataram, so piles start near 28 °C and cool back to it. Expect higher floors than temperate data.

Days are UTC

Daily rows follow UTC days. The pilot site is at UTC+8, so one local day spans two rows.

Phase definitions

The ranges behind each stage.

The ranges the emulator and simulator model piles from, and the stage model was trained on (simulator/composting_stages.py). Peak decomposition starts once the core has held 55 °C for 6 hours.

StageTemperatureMoistureOxygenCO₂Typical length
0 Early mesophilic28–45 °C60–65 %15.5–21 %0.5–5.5 %1–3 days
1 Active thermophilic45–60 °C55–60 %12–17.5 %3.5–9 %2–4 days
2 Peak decomposition55–65 °C50–58 %10–16.5 %4.5–11 %4–7 days
3 Cooling30–60 °C45–55 %11–20 %1–10 %5–10 days
4 Maturation28–32 °C40–50 %19–21 %0.3–2 %24–36 days
Cite

Using the figures? Cite them.

The figures change as bins report, so give the date you fetched them:

CompostIQ (2026). CompostIQ research API: country aggregates of compost bin readings. https://compostiq.win/open-data/ (retrieved on the date you fetched them)

Ready for your first request?

The quickstart takes about five minutes: get a key, then load a country's daily figures into a pandas DataFrame.