/v1/consumption
Pellets for a heat demand
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}