/v1/daily
Daily fluid need
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/hydration-api/v1/daily" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydration-api/v1/daily", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydration-api/v1/daily");
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/hydration-api/v1/daily",
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": "≈ 35 ml/kg baseline + 12 ml per minute of exercise + climate adjustment (hot +500, very_hot +1000, cold −200 ml).",
"inputs": {
"weight": 70,
"climate": "temperate",
"ml_per_kg": 35,
"activity_minutes": 30
},
"total_ml": 2810,
"climate_ml": 0,
"activity_ml": 360,
"baseline_ml": 2450,
"total_litres": 2.81,
"glasses_250ml": 11.24
},
"meta": {
"timestamp": "2026-06-04T18:38:20.711Z",
"request_id": "1afd7374-cd5e-4daa-a80e-0e1ce7a67f83"
},
"status": "ok",
"message": "Daily fluid need",
"success": true
}