Zum Inhalt springen
GET /v1/ratio

Reinforcement ratio

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "ρ = As/(b·d). Typical RC beams run 0.4–2 %; check against the code minimum (≈0.13 %) and maximum (≈4 %).",
        "inputs": {
            "width": 300,
            "steel_area_mm2": 1005,
            "effective_depth": 450
        },
        "gross_area_mm2": 135000,
        "reinforcement_ratio": 0.007444,
        "reinforcement_percent": 0.7444
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:25.079Z",
        "request_id": "72de68b0-3c64-4e21-8b69-feaa1959f098"
    },
    "status": "ok",
    "message": "Reinforcement ratio",
    "success": true
}