/v1/rehydrate
Rehydration target
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/hydration-api/v1/rehydrate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydration-api/v1/rehydrate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydration-api/v1/rehydrate");
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/rehydrate",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Drink about 1.5× the fluid deficit over the hours after exercise to fully rehydrate (extra covers ongoing urine loss).",
"inputs": {
"replacement_factor": 1.5,
"fluid_deficit_litres": 1.5
},
"sodium_note": "For losses over ~2 % body mass, include sodium (~0.5–0.7 g/L) to retain the fluid.",
"glasses_250ml": 9,
"rehydration_target_ml": 2250,
"rehydration_target_litres": 2.25
},
"meta": {
"timestamp": "2026-06-04T18:38:20.801Z",
"request_id": "f7eaae2b-f3b7-4ca5-b59c-5a62c518f434"
},
"status": "ok",
"message": "Rehydration target",
"success": true
}