/v1/meta
Spec
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/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/calorieburn-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/calorieburn-api/v1/meta");
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/meta",
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": {
"notes": "Weight in kg, duration in minutes, height in cm. MET values from the Compendium of Physical Activities. Estimates only — actual burn varies with fitness and conditions.",
"service": "calorieburn-api",
"formulae": {
"steps": "distance = steps × stride; calories = distance·weight·(0.5/1.0)",
"activity": "calories = MET × weight(kg) × hours",
"duration": "minutes = target ÷ (MET × weight ÷ 60)"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/steps": "Distance and calories from a step count, weight and height.",
"GET /v1/activity": "Calories burned = MET × weight × hours, from a MET value or activity name.",
"GET /v1/duration": "Minutes of an activity needed to burn a target number of calories."
},
"activities": [
"walking",
"brisk_walking",
"running",
"cycling",
"swimming",
"yoga",
"weightlifting",
"hiit",
"rowing",
"elliptical",
"jumping_rope",
"hiking",
"dancing",
"basketball",
"soccer",
"tennis",
"stairs",
"pilates",
"boxing",
"skiing"
],
"description": "Exercise calorie-burn calculator (MET method): calories for an activity, calories and distance from steps, and time to burn a target."
},
"meta": {
"timestamp": "2026-06-04T18:38:20.577Z",
"request_id": "acb9e9f7-613b-4544-b960-5f63b80fcf39"
},
"status": "ok",
"message": "Meta",
"success": true
}