Skip to content
GET /v1/consumption

Pellets for a heat demand

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/pellet-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/pellet-api/v1/consumption" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pellet-api/v1/consumption", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pellet-api/v1/consumption");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/pellet-api/v1/consumption",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "The pellets to meet a heat demand = the demand ÷ the usable heat per kilo, where usable = the calorific value × the boiler efficiency. ENplus wood pellets hold about 4.8 kWh/kg, and a modern pellet boiler runs ~90 %, so each kilo delivers ~4.3 kWh of heat. A 10,000 kWh annual demand then needs about 2.3 tonnes of pellets — roughly 154 fifteen-kilo bags, or a bulk delivery.",
        "inputs": {
            "efficiency_pct": 90,
            "heat_demand_kwh": 10000,
            "calorific_value_kwh_kg": 4.8
        },
        "bags_15kg": 155,
        "pellet_kg": 2314.81,
        "pellet_tonnes": 2.3148,
        "usable_kwh_per_kg": 4.32
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:48.522Z",
        "request_id": "b14840cb-679d-4c1a-80a0-532ae7340bfa"
    },
    "status": "ok",
    "message": "Consumption",
    "success": true
}