Naar de inhoud
GET /v1/spacing

Section spacing layout

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "note": "Outer bars sit at cover + ½d from each face; n = floor((width − 2·cover − d)/spacing) + 1.",
        "inputs": {
            "count": null,
            "cover": 25,
            "width": 1000,
            "spacing": 150,
            "diameter": 12
        },
        "spacing_mm": 150,
        "number_of_bars": 7,
        "total_area_mm2": 791.6813,
        "area_per_metre_mm2_m": 791.6813
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:25.181Z",
        "request_id": "1a8a6a1c-462a-409a-8365-df88acba3faa"
    },
    "status": "ok",
    "message": "Section spacing",
    "success": true
}