/v1/rehydrate
Rehydration target
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}