/v1/loss
Roast weight loss
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/coffeeroast-api/v1/loss" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coffeeroast-api/v1/loss", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coffeeroast-api/v1/loss");
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/coffeeroast-api/v1/loss",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Weight loss % = (green − roasted) / green × 100. Light roasts lose ~12–14%, medium ~15–17%, dark ~18–20%. Green needed = roasted / (1 − loss%).",
"inputs": {
"green_weight": 1000,
"roasted_weight": 840
},
"green_weight": 1000,
"roasted_weight": 840,
"weight_loss_grams": 160,
"weight_loss_percent": 16
},
"meta": {
"timestamp": "2026-06-06T07:14:12.394Z",
"request_id": "a25525e0-f88d-43d9-aa3d-83734e56af50"
},
"status": "ok",
"message": "Weight loss",
"success": true
}