/v1/duration
Time to burn target
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}