Naar de inhoud
GET /v1/bmi

Body Mass Index + category

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/healthcalc-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/healthcalc-api/v1/bmi" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/healthcalc-api/v1/bmi", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/healthcalc-api/v1/bmi");
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/healthcalc-api/v1/bmi",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "bmi": 24.7,
        "category": "Normal",
        "height_cm": 180,
        "weight_kg": 80,
        "healthy_weight_range_kg": {
            "max": 80.7,
            "min": 59.9
        }
    },
    "meta": {
        "timestamp": "2026-05-30T14:35:19.394Z",
        "request_id": "b3e5bb26-a20d-47b6-971f-d10c2eb0d1ef"
    },
    "status": "ok",
    "message": "OK",
    "success": true
}