/v1/duration
Time to burn target
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/calorieburn-api/v1/duration" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/calorieburn-api/v1/duration", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/calorieburn-api/v1/duration");
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/calorieburn-api/v1/duration",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Minutes = target ÷ (MET × weight ÷ 60). The time of this activity needed to burn the target calories.",
"inputs": {
"met": 9.8,
"weight": 70,
"activity": "running",
"target_calories": 500
},
"duration_hours": 0.7289,
"duration_minutes": 43.73,
"calories_per_minute": 11.4333
},
"meta": {
"timestamp": "2026-06-04T18:38:20.342Z",
"request_id": "c2f97f79-8ce2-473c-bcf3-e2f8238f326e"
},
"status": "ok",
"message": "Time to burn target",
"success": true
}