Aller au contenu
GET /v1/rehydrate

Rehydration target

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/hydration-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}