Zum Inhalt springen
GET /v1/rehydrate

Rehydration target

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/hydration-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}