/v1/loss
Roast weight loss
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/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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}