/v1/rehydrate
Rehydration target
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}