Naar de inhoud
GET /v1/bmi

Body mass index

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/bmi-api/v1/bmi" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bmi-api/v1/bmi", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bmi-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/bmi-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.69,
        "note": "BMI = kg/m². WHO bands: <18.5 underweight, 18.5–24.9 normal, 25–29.9 overweight, ≥30 obese.",
        "inputs": {
            "height": 180,
            "weight": 80
        },
        "category": "normal",
        "healthy_weight_max_kg": 80.68,
        "healthy_weight_min_kg": 59.94
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:21.571Z",
        "request_id": "ba38788d-8863-4ff9-93ec-675b7b45dfa8"
    },
    "status": "ok",
    "message": "Body mass index",
    "success": true
}